更新
This commit is contained in:
@@ -145,29 +145,29 @@ export default {
|
|||||||
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||||
[CRUD.HOOK.beforeRefresh]() {
|
[CRUD.HOOK.beforeRefresh]() {
|
||||||
return true
|
return true
|
||||||
}
|
},
|
||||||
},
|
beforeHandleCommand(index, row, command) {
|
||||||
beforeHandleCommand(index, row, command) {
|
return {
|
||||||
return {
|
'index': index,
|
||||||
'index': index,
|
'row': row,
|
||||||
'row': row,
|
'command': command
|
||||||
'command': command
|
}
|
||||||
}
|
},
|
||||||
},
|
finish(index, row) {
|
||||||
finish(index, row) {
|
debugger
|
||||||
debugger
|
crudProduceshiftorder.finish(row.order_id).then(res => {
|
||||||
crudProduceshiftorder.finish(row.order_id).then(res => {
|
this.crud.toQuery()
|
||||||
this.crud.toQuery()
|
this.crud.notify('完成成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||||
this.crud.notify('完成成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
}).catch(err => {
|
||||||
}).catch(err => {
|
console.log(err.response.data.message)
|
||||||
console.log(err.response.data.message)
|
})
|
||||||
})
|
},
|
||||||
},
|
handleCommand(command) {
|
||||||
handleCommand(command) {
|
switch (command.command) {
|
||||||
switch (command.command) {
|
case 'a':// 完成
|
||||||
case 'a':// 完成
|
this.finish(command.index, command.row)
|
||||||
this.finish(command.index, command.row)
|
break
|
||||||
break
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user