|
@@ -119,7 +119,7 @@
|
|
|
<TestReport v-if="dialogTestReport" ref="TestReport" />
|
|
|
<DailyReport v-if="dialogDailyReport" ref="DailyReport" />
|
|
|
<ReleaseReport v-if="dialogClientReport" ref="ClientReport" />
|
|
|
- <taskDialog v-if="showTaskDialog" :show.sync="showTaskDialog" :task-id="taskId.id" :status-name="taskId.statusString" @getList="get_allTask" />
|
|
|
+ <task-dialog v-if="showTaskDialog" :show.sync="showTaskDialog" :task-id="taskId.id" :status-name="taskId.statusString" @getList="getNew" />
|
|
|
<!-- 批量排期 -->
|
|
|
<modify-schedule
|
|
|
v-if="visibleSchedule"
|
|
@@ -274,15 +274,8 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- async confirmStatus() { // 确认更改状态
|
|
|
- const user = { name: localStorage.getItem('username'), ename: localStorage.getItem('realname'), id: '' }
|
|
|
- const taskInfoDO = this.nowChangeTask
|
|
|
- taskInfoDO.onlineRealTime = this.changeStatusDate
|
|
|
- const resTask = await taskUpdate({ taskInfoDO, user })
|
|
|
- if (resTask.code === 200) {
|
|
|
- this.$message({ message: '修改成功', type: 'success', offset: 150 })
|
|
|
- this.$emit('change', '任务')
|
|
|
- }
|
|
|
+ getNew() { // 状态改变成功回调
|
|
|
+ this.$emit('change', '任务')// 通知父组件,让父组件去执行子组件的数据更新
|
|
|
},
|
|
|
handleSelectionChange(val) { // 任务列表删选操作
|
|
|
this.tableList = []
|
|
@@ -325,7 +318,6 @@ export default {
|
|
|
this.visibleSchedule = true
|
|
|
this.selectTaskList = this.curcentList
|
|
|
},
|
|
|
-
|
|
|
async filtrateTest() { // 提测筛选
|
|
|
const data = this.curcentList.map(item => { return item.id })
|
|
|
const res = await reportdelivertestCheckStatus(data)
|
|
@@ -336,7 +328,6 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
async filtrateAllow() { // 准出筛选
|
|
|
const data = this.curcentList.map(item => { return item.id })
|
|
|
const res = await reportreleaseCheckStatus(data)
|
|
@@ -347,7 +338,6 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
async filtrateDaily() { // 建立日报
|
|
|
const data = this.curcentList.map(item => { return item.id })
|
|
|
const res = await dailyReportCheckStatus(data)
|
|
@@ -358,7 +348,6 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
link_task(id) { // 跳转到任务详情页
|
|
|
if (this.newTabOpen) {
|
|
|
const newTab = this.$router.resolve({ name: '任务详情', query: { id: id }})
|