fix: 任务并发控制
This commit is contained in:
@@ -14,5 +14,7 @@ export const ACTION_ICON = {
|
||||
BOOK: 'lucide:book',
|
||||
AUDIT: 'lucide:file-check',
|
||||
SEND: 'lucide:send',
|
||||
CIRCLE_CHECK: 'lucide:circle-check',
|
||||
CIRCLE_X: 'lucide:circle-x',
|
||||
CANCEL: 'lucide:ban',
|
||||
};
|
||||
|
||||
@@ -179,24 +179,24 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
label: '下发',
|
||||
type: 'link',
|
||||
icon: ACTION_ICON.SEND,
|
||||
auth: ['task:transport-task:operate'],
|
||||
auth: ['task:transport-task:issue'],
|
||||
disabled: row.taskStatus !== '40',
|
||||
onClick: handleOperate.bind(null, row, 'ISSUE', '下发任务'),
|
||||
},
|
||||
{
|
||||
label: '完成',
|
||||
type: 'link',
|
||||
icon: ACTION_ICON.SEND,
|
||||
icon: ACTION_ICON.CIRCLE_CHECK,
|
||||
auth: ['task:transport-task:finish'],
|
||||
disabled: ['79', '89', '99'].includes(row.taskStatus),
|
||||
disabled: ['79', '85', '89', '99'].includes(row.taskStatus),
|
||||
onClick: handleOperate.bind(null, row, 'FINISHED', '完成任务'),
|
||||
},
|
||||
{
|
||||
label: '取消',
|
||||
type: 'link',
|
||||
icon: ACTION_ICON.CANCEL,
|
||||
icon: ACTION_ICON.CIRCLE_X,
|
||||
auth: ['task:transport-task:cancel'],
|
||||
disabled: ['79', '89', '99'].includes(row.taskStatus),
|
||||
disabled: ['75', '79', '89', '99'].includes(row.taskStatus),
|
||||
onClick: handleOperate.bind(null, row, 'CANCELLED', '取消任务'),
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user