|
@@ -2,7 +2,7 @@
|
|
|
<div class="p-4">
|
|
|
<BasicTable @register="registerTable">
|
|
|
<template #toolbar>
|
|
|
- <a-button type="primary" @click="handleCreate">创建平台</a-button>
|
|
|
+ <a-button v-if="getCheckPerm('platformList-add')" type="primary" @click="handleCreate">创建平台</a-button>
|
|
|
</template>
|
|
|
<template #role="{ record }">
|
|
|
{{ renderRoleType(record.role) }}
|
|
@@ -19,19 +19,19 @@
|
|
|
:actions="[
|
|
|
{
|
|
|
color: 'warning',
|
|
|
- ifShow: record.status === 0,
|
|
|
+ ifShow: getCheckPerm('platformList-disable') && record.status === 0,
|
|
|
label: '禁用',
|
|
|
onClick: handleOpenModal.bind(null, record),
|
|
|
},
|
|
|
{
|
|
|
color: 'warning',
|
|
|
label: '启用',
|
|
|
- ifShow: record.status != 0,
|
|
|
+ ifShow: getCheckPerm('platformList-enable') && record.status != 0,
|
|
|
onClick: handEnable.bind(null, record.id),
|
|
|
},
|
|
|
{
|
|
|
label: '编辑',
|
|
|
- //ifShow:getCheckPerm('lanuser-update'),
|
|
|
+ ifShow: getCheckPerm('platformList-update'),
|
|
|
onClick: handleEdit.bind(null, record), //handleEdit.bind(null, record),
|
|
|
},
|
|
|
//{
|
|
@@ -178,6 +178,7 @@
|
|
|
// ifShow: !getCheckRole('tourist'),
|
|
|
slots: { customRender: 'action' },
|
|
|
// fixed: 'right',
|
|
|
+ flag: 'ACTION',
|
|
|
width: 80,
|
|
|
},
|
|
|
];
|