This commit is contained in:
2022-12-07 19:08:14 +08:00
parent 117789c7b0
commit c486c04544
10 changed files with 132 additions and 66 deletions

View File

@@ -271,6 +271,7 @@
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'d')">异常完成</el-dropdown-item>
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'e')">异常</el-dropdown-item>
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'f')">作废</el-dropdown-item>
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'g')">非终点任务完成</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
@@ -467,6 +468,14 @@ export default {
console.log(err.response.data.message)
})
},
noTargetPutFinish(index, row) {
crudTask.noTargetPutFinish(row.task_id).then(res => {
this.crud.toQuery()
this.crud.notify('成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
}).catch(err => {
console.log(err.response.data.message)
})
},
reload() {
crudTask.reload().then(res => {
this.crud.toQuery()
@@ -502,6 +511,9 @@ export default {
case 'f':// 作废
this.deprecate(command.index, command.row)
break
case 'g':// 作废
this.noTargetPutFinish(command.index, command.row)
break
}
},
showStartStorage(val) {