代码更新

This commit is contained in:
lyd
2022-10-20 20:51:31 +08:00
parent 8e7d7cc89a
commit 736931bf37
49 changed files with 162 additions and 3653 deletions

View File

@@ -293,14 +293,6 @@ export default {
}
return ''
},
formatFinishTypeName(row, column) {
for (const item of this.finishTypeList) {
if (item.code === row.finished_type) {
return item.name
}
}
return ''
},
doOperate(row, command) {
let method_name = ''
switch (command) {
@@ -335,47 +327,6 @@ export default {
console.log(err.response.data.message)
})
},
beforeHandleCommand(index, row, command) {
return {
'index': index,
'row': row,
'command': command
}
},
handleCommand(command) {
let method_name = ''
switch (command.command) {
case 'a':// 完成
method_name = 'forceFinish'
break
case 'b':// 取消
method_name = 'cancel'
break
case 'c':// 拉回
method_name = 'pullBack'
break
case 'd':// 下发
method_name = 'renotifyAcs'
break
case 'e':// 详情
method_name = 'view'
break
}
if (method_name === 'view') {
this.view(command.row)
return
}
const data = {
task_id: command.row.task_id,
method_name: method_name
}
crudTask.operation(data).then(res => {
this.crud.toQuery()
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
}).catch(err => {
console.log(err.response.data.message)
})
},
view(row) {
this.task_id = row.task_id
switch (row.task_type) {