This commit is contained in:
2022-12-05 15:45:40 +08:00
parent 5cff15cad0
commit 117789c7b0
53 changed files with 3601 additions and 3596 deletions

View File

@@ -268,6 +268,9 @@
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'a')">完成</el-dropdown-item>
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'b')">取消</el-dropdown-item>
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'c')">创建指令</el-dropdown-item>
<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-menu>
</el-dropdown>
</template>
@@ -440,6 +443,30 @@ export default {
console.log(err.response.data.message)
})
},
errorFinish(index, row) {
crudTask.errorFinish(row.task_id).then(res => {
this.crud.toQuery()
this.crud.notify('成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
}).catch(err => {
console.log(err.response.data.message)
})
},
exception(index, row) {
crudTask.exceptions(row.task_id).then(res => {
this.crud.toQuery()
this.crud.notify('成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
}).catch(err => {
console.log(err.response.data.message)
})
},
deprecate(index, row) {
crudTask.deprecate(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()
@@ -466,6 +493,15 @@ export default {
case 'c':// 创建指令
this.createInst(command.index, command.row)
break
case 'd':// 异常完成
this.errorFinish(command.index, command.row)
break
case 'e':// 异常
this.exception(command.index, command.row)
break
case 'f':// 作废
this.deprecate(command.index, command.row)
break
}
},
showStartStorage(val) {