|
@@ -18,19 +18,21 @@
|
|
|
<TableAction
|
|
|
:actions="[
|
|
|
{
|
|
|
- ifShow: getCheckPerm('platformList-disable') && record.status === 0,
|
|
|
+ ifShow: getCheckPerm('platformList-disable'),
|
|
|
label: '禁用',
|
|
|
+ disabled: record.status != 0,
|
|
|
color: 'error',
|
|
|
onClick: handleOpenModal.bind(null, record),
|
|
|
},
|
|
|
- {
|
|
|
- label: '启用',
|
|
|
- ifShow: getCheckPerm('platformList-enable') && record.status != 0,
|
|
|
- onClick: handleEdit.bind(null, record),
|
|
|
- },
|
|
|
+ //{
|
|
|
+ // label: '启用',
|
|
|
+ // ifShow: getCheckPerm('platformList-enable') && record.status != 0,
|
|
|
+ // onClick: handleEdit.bind(null, record),
|
|
|
+ //},
|
|
|
{
|
|
|
label: '编辑',
|
|
|
ifShow: getCheckPerm('platformList-update'),
|
|
|
+ disabled: record.status != 0,
|
|
|
onClick: handleEdit.bind(null, record), //handleEdit.bind(null, record),
|
|
|
},
|
|
|
//{
|