代码更新
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user