|
|
@@ -3,7 +3,7 @@
|
|
|
<header>
|
|
|
<!-- 按钮 -->
|
|
|
<el-button
|
|
|
- v-if="trafficManagementPermission"
|
|
|
+ v-if="managementPermission"
|
|
|
type="primary"
|
|
|
class="search-table-container--button"
|
|
|
:icon="Plus"
|
|
|
@@ -65,11 +65,11 @@
|
|
|
<ActionButton text="查看" @click="handleViewNotice(scope.row.id)" />
|
|
|
<ActionButton
|
|
|
text="编辑"
|
|
|
- v-if="trafficManagementPermission && scope.row.effectState === 0"
|
|
|
+ v-if="managementPermission && scope.row.effectState === 0"
|
|
|
@click="handleEditNotice(scope.row.id)"
|
|
|
/>
|
|
|
<ActionButton
|
|
|
- v-if="trafficManagementPermission && scope.row.effectState === 0"
|
|
|
+ v-if="managementPermission && scope.row.effectState === 0"
|
|
|
text="发布"
|
|
|
:popconfirm="{
|
|
|
title: '确定要发布吗?',
|
|
|
@@ -87,7 +87,7 @@
|
|
|
"
|
|
|
/>
|
|
|
<ActionButton
|
|
|
- v-if="trafficManagementPermission && scope.row.effectState === 1"
|
|
|
+ v-if="managementPermission && scope.row.effectState === 1"
|
|
|
text="撤回"
|
|
|
:popconfirm="{
|
|
|
title: '确定要撤回吗?',
|
|
|
@@ -105,7 +105,7 @@
|
|
|
"
|
|
|
/>
|
|
|
<ActionButton
|
|
|
- v-if="trafficManagementPermission"
|
|
|
+ v-if="managementPermission"
|
|
|
text="删除"
|
|
|
:popconfirm="{
|
|
|
title: '确定要删除?',
|
|
|
@@ -142,12 +142,12 @@
|
|
|
import { unformatAttachment } from '../utils';
|
|
|
|
|
|
import { useUserInfoHook } from '@/hooks/useUserInfoHook';
|
|
|
- import { TRAFFIC_MANAGEMENT_PERMISSION } from '../constants';
|
|
|
+ import { CONFIDENTIALITY_MANAGEMENT_PERMISSION } from '../constants';
|
|
|
|
|
|
const { permissions } = useUserInfoHook();
|
|
|
|
|
|
- const trafficManagementPermission = ref<Boolean>(
|
|
|
- Boolean(permissions.find((item: { code: string }) => item.code === TRAFFIC_MANAGEMENT_PERMISSION)),
|
|
|
+ const managementPermission = ref<Boolean>(
|
|
|
+ Boolean(permissions.find((item: { code: string }) => item.code === CONFIDENTIALITY_MANAGEMENT_PERMISSION)),
|
|
|
);
|
|
|
|
|
|
const router = useRouter();
|
|
|
@@ -164,7 +164,7 @@
|
|
|
|
|
|
// 表格
|
|
|
const { tableConfig, pagination } = useTableConfig(
|
|
|
- trafficManagementPermission.value ? NOTICE_TABLE_COLUMNS : NOTICE_TABLE_COLUMNS_CHECKONLY,
|
|
|
+ managementPermission.value ? NOTICE_TABLE_COLUMNS : NOTICE_TABLE_COLUMNS_CHECKONLY,
|
|
|
TABLE_OPTIONS,
|
|
|
);
|
|
|
|