Browse Source

修改任务模块按钮显示逻辑

pull/99/head
余菲 1 year ago
parent
commit
162f26d6f1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/views/task-manage/tools/table.js

+ 2
- 2
src/views/task-manage/tools/table.js View File

text: true, text: true,
onClick: editHandle.bind(null, row, 'update') onClick: editHandle.bind(null, row, 'update')
}, },
show: row.status > 10 || row.inspectionType !== 1,
show: row.status < 11 && row.inspectionType === 1,
auth: 'task:all:edit' auth: 'task:all:edit'
}, },
{ {
onPositiveClick: deleteData.bind(null, row.id) onPositiveClick: deleteData.bind(null, row.id)
}, },
auth: 'task:all:delete', auth: 'task:all:delete',
show: row.status > 15 || row.inspectionType !== 1,
show: row.status < 16 && row.inspectionType === 1,
ButtonProps: { ButtonProps: {
text: true, text: true,
type: 'primary' type: 'primary'

Loading…
Cancel
Save