|
@@ -25,19 +25,19 @@
|
|
|
>{{ form_query.name }}</span>
|
|
|
</el-tooltip>
|
|
|
</div>
|
|
|
- <el-button v-show="getStatus.msg === 'Hold'" disabled plain size="mini">Hold</el-button>
|
|
|
- <el-dropdown v-show="getStatus.msg !== 'Hold'" placement="bottom" @command="updateStatus">
|
|
|
+ <el-button v-show="form_query.status === -2" disabled plain size="mini">Hold</el-button>
|
|
|
+ <el-dropdown v-show="form_query.status !== -2" placement="bottom" @command="updateStatus">
|
|
|
<el-button size="mini" plainclass="el-dropdown-link drop_down">
|
|
|
- {{ getStatus.msg }}
|
|
|
+ {{ getStatus.name }}
|
|
|
<i class="el-icon-arrow-down el-icon--right" />
|
|
|
</el-button>
|
|
|
<el-dropdown-menu slot="dropdown" align="center">
|
|
|
<el-dropdown-item
|
|
|
v-for="item in allStatus"
|
|
|
- :key="item.msg"
|
|
|
- :command="{status:item.code,label:item.msg}"
|
|
|
+ :key="item.name"
|
|
|
+ :command="{status:item.code,label:item.name}"
|
|
|
:disabled="form_query.status === item.code ? true : false"
|
|
|
- >{{ item.msg }}</el-dropdown-item>
|
|
|
+ >{{ item.name }}</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
</div>
|
|
@@ -329,7 +329,6 @@ import {
|
|
|
commentList,
|
|
|
taskHold,
|
|
|
taskUnhold,
|
|
|
- configShowTaskStatusEnum,
|
|
|
configShowRequirementVersionEnum,
|
|
|
scheduleGetTaskScheduleHistory
|
|
|
} from '@/api/taskIndex'
|
|
@@ -341,7 +340,6 @@ import textArea from '@/components/input/textArea'
|
|
|
import drawer from '@/views/projectManage/Drawer'
|
|
|
import image_url from '@/assets/home_images/home_u.png'
|
|
|
import createdBug from '@/views/projectManage/bugList/file/createdBug'
|
|
|
-// import normalDialog from '@/components/dialog/normalDialog'
|
|
|
import openDialog from '@/views/projectManage/dialog_vue'
|
|
|
import createChildren from './childrenTask/createChildren'
|
|
|
import childrenList from './childrenTask/childrenList'
|
|
@@ -442,7 +440,7 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
getStatus() {
|
|
|
- return this.allStatus.find(item => item.code === this.form_query.status) || { msg: null }
|
|
|
+ return this.allStatus.find(item => item.code === this.form_query.status) || { name: null }
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -519,7 +517,6 @@ export default {
|
|
|
const res = await taskHold(this.taskId, { 'remark': val })
|
|
|
if (res.code === 200) {
|
|
|
this.taskGet()
|
|
|
- this.getTaskStatus()
|
|
|
this.$refs.timeLine.taskGetWorkFlow()
|
|
|
this.visible = false
|
|
|
this.$message({ message: '已修改状态为 Hold', type: 'success', duration: 1000, offset: 150 })
|
|
@@ -529,7 +526,8 @@ export default {
|
|
|
const res = await taskUnhold(this.taskId)
|
|
|
if (res.code === 200) {
|
|
|
this.taskGet()
|
|
|
- this.getTaskStatus()
|
|
|
+ this.allStatus = []
|
|
|
+ this.allStatus.push({ code: -2, msg: 'Hold' })
|
|
|
this.$refs.timeLine.taskGetWorkFlow()
|
|
|
this.$message({ message: 'Hold 状态已解除', type: 'success', duration: 1000, offset: 150 })
|
|
|
}
|
|
@@ -562,13 +560,6 @@ export default {
|
|
|
},
|
|
|
async getTaskStatus() { // 获取任务状态列表,跟版客户端列表
|
|
|
const res = await configShowTaskEnum()
|
|
|
- const res1 = await configShowTaskStatusEnum(localStorage.getItem('bizId'))
|
|
|
- if (res1.code === 200) {
|
|
|
- this.allStatus = []
|
|
|
- this.HoldTask === '解除 Hold' ? this.allStatus.push({ code: -2, msg: 'Hold' }) : ''
|
|
|
- this.HoldTask === 'Hold 任务' ? this.allStatus = res1.data.taskStatus : ''
|
|
|
- // res1.data.taskStatus.length > 0 ? this.allStatus = res1.data.taskStatus : this.allStatus.push({ code: -2, msg: 'Hold' })
|
|
|
- }
|
|
|
if (res.code === 200) {
|
|
|
this.taskScheduleEvent = res.data.taskScheduleEvent || []
|
|
|
this.appClient = res.data.appClient.map(item => {
|
|
@@ -583,6 +574,7 @@ export default {
|
|
|
const res = await taskGet(this.$route.query.id)
|
|
|
if (res.code === 200) {
|
|
|
this.form_query = res.data
|
|
|
+ this.allStatus = res.data.availableStatusList
|
|
|
}
|
|
|
},
|
|
|
async getCommentList() { // 获取任务评论
|