feat: 移除掉一些权限标识
This commit is contained in:
@@ -524,7 +524,7 @@ function fnSyncFileToFTP(row: Record<string, any>) {
|
|||||||
<template #title>
|
<template #title>
|
||||||
{{ t('views.ne.neConfigBackup.backupModal.pushFileOper') }}
|
{{ t('views.ne.neConfigBackup.backupModal.pushFileOper') }}
|
||||||
</template>
|
</template>
|
||||||
<a-button type="link" @click.prevent="fnSyncFileToFTP(record)" v-perms:has="['ne:neConfigBackup:cloud']">
|
<a-button type="link" @click.prevent="fnSyncFileToFTP(record)" v-perms:has="['ne:neConfigBackup:ftpSync']">
|
||||||
<template #icon><CloudServerOutlined /></template>
|
<template #icon><CloudServerOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { reactive, onMounted, toRaw, defineAsyncComponent, ref, computed } from 'vue';
|
import {
|
||||||
|
reactive,
|
||||||
|
onMounted,
|
||||||
|
toRaw,
|
||||||
|
defineAsyncComponent,
|
||||||
|
ref,
|
||||||
|
computed,
|
||||||
|
} from 'vue';
|
||||||
import { PageContainer } from 'antdv-pro-layout';
|
import { PageContainer } from 'antdv-pro-layout';
|
||||||
import { message, Modal } from 'ant-design-vue/es';
|
import { message, Modal } from 'ant-design-vue/es';
|
||||||
import { SizeType } from 'ant-design-vue/es/config-provider';
|
import { SizeType } from 'ant-design-vue/es/config-provider';
|
||||||
@@ -40,15 +47,6 @@ const QuickOAMModal = defineAsyncComponent(
|
|||||||
);
|
);
|
||||||
const backConf = ref(); // 引用句柄,取导出函数
|
const backConf = ref(); // 引用句柄,取导出函数
|
||||||
|
|
||||||
const hasAnyBatchPermission = computed(() => {
|
|
||||||
return hasPermissions(['ne:neInfo:log']) ||
|
|
||||||
hasPermissions(['ne:neInfo:start']) ||
|
|
||||||
hasPermissions(['ne:neInfo:stop'])||
|
|
||||||
hasPermissions(['ne:neInfo:delete'])||
|
|
||||||
hasPermissions(['ne:neInfo:export'])||
|
|
||||||
hasPermissions(['ne:neInfo:oam'])||
|
|
||||||
hasPermissions(['ne:neInfo:import']);
|
|
||||||
});
|
|
||||||
/**字典数据 */
|
/**字典数据 */
|
||||||
let dict: {
|
let dict: {
|
||||||
/**网元信息状态 */
|
/**网元信息状态 */
|
||||||
@@ -484,7 +482,11 @@ onMounted(() => {
|
|||||||
<!-- 插槽-卡片左侧侧 -->
|
<!-- 插槽-卡片左侧侧 -->
|
||||||
<template #title>
|
<template #title>
|
||||||
<a-space :size="8" align="center">
|
<a-space :size="8" align="center">
|
||||||
<a-button type="primary" @click.prevent="fnModalVisibleByEdit()" v-perms:has="['ne:neInfo:add']">
|
<a-button
|
||||||
|
type="primary"
|
||||||
|
@click.prevent="fnModalVisibleByEdit()"
|
||||||
|
v-perms:has="['ne:neInfo:add']"
|
||||||
|
>
|
||||||
<template #icon><PlusOutlined /></template>
|
<template #icon><PlusOutlined /></template>
|
||||||
{{ t('common.addText') }}
|
{{ t('common.addText') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
@@ -603,45 +605,63 @@ onMounted(() => {
|
|||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<a-tooltip placement="left">
|
<a-tooltip placement="left">
|
||||||
<template #title>{{ t('common.moreText') }}</template>
|
<template #title>{{ t('common.moreText') }}</template>
|
||||||
<a-dropdown placement="bottomRight" trigger="click" v-if="hasAnyBatchPermission">
|
<a-dropdown placement="bottomRight" trigger="click">
|
||||||
<a-button type="link">
|
<a-button type="link">
|
||||||
<template #icon><EllipsisOutlined /> </template>
|
<template #icon><EllipsisOutlined /> </template>
|
||||||
</a-button>
|
</a-button>
|
||||||
<template #overlay>
|
<template #overlay>
|
||||||
<a-menu @click="({ key }:any) => fnRecordMore(key, record)">
|
<a-menu @click="({ key }:any) => fnRecordMore(key, record)">
|
||||||
<a-menu-item key="log" v-if="hasPermissions(['ne:neInfo:log'])">
|
<a-menu-item key="log">
|
||||||
<FileTextOutlined />
|
<FileTextOutlined />
|
||||||
{{ t('views.ne.common.log') }}
|
{{ t('views.ne.common.log') }}
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="start" v-if="hasPermissions(['ne:neInfo:start'])">
|
<a-menu-item
|
||||||
|
key="start"
|
||||||
|
v-if="hasPermissions(['ne:neInfo:start'])"
|
||||||
|
>
|
||||||
<ThunderboltOutlined />
|
<ThunderboltOutlined />
|
||||||
{{ t('views.ne.common.start') }}
|
{{ t('views.ne.common.start') }}
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="stop" v-if="hasPermissions(['ne:neInfo:stop'])">
|
<a-menu-item
|
||||||
|
key="stop"
|
||||||
|
v-if="hasPermissions(['ne:neInfo:stop'])"
|
||||||
|
>
|
||||||
<CloseSquareOutlined />
|
<CloseSquareOutlined />
|
||||||
{{ t('views.ne.common.stop') }}
|
{{ t('views.ne.common.stop') }}
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="reload" v-if="false" >
|
<a-menu-item key="reload" v-if="false">
|
||||||
<SyncOutlined />
|
<SyncOutlined />
|
||||||
{{ t('views.ne.common.reload') }}
|
{{ t('views.ne.common.reload') }}
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="delete" v-if="hasPermissions(['ne:neInfo:delete'])">
|
<a-menu-item
|
||||||
|
key="delete"
|
||||||
|
v-if="hasPermissions(['ne:neInfo:delete'])"
|
||||||
|
>
|
||||||
<DeleteOutlined />
|
<DeleteOutlined />
|
||||||
{{ t('common.deleteText') }}
|
{{ t('common.deleteText') }}
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item
|
<a-menu-item
|
||||||
key="oam"
|
key="oam"
|
||||||
v-if="!['OMC'].includes(record.neType) || hasPermissions(['ne:neInfo:oam'])"
|
v-if="
|
||||||
|
!['OMC'].includes(record.neType) ||
|
||||||
|
hasPermissions(['ne:neInfo:oam'])
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<FileTextOutlined />
|
<FileTextOutlined />
|
||||||
{{ t('views.ne.common.oam') }}
|
{{ t('views.ne.common.oam') }}
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<!-- 配置备份 -->
|
<!-- 配置备份 -->
|
||||||
<a-menu-item key="backConfExport" v-if="hasPermissions(['ne:neInfo:export'])">
|
<a-menu-item
|
||||||
|
key="backConfExport"
|
||||||
|
v-if="hasPermissions(['ne:neInfo:export'])"
|
||||||
|
>
|
||||||
<ExportOutlined />
|
<ExportOutlined />
|
||||||
{{ t('views.ne.neInfo.backConf.export') }}
|
{{ t('views.ne.neInfo.backConf.export') }}
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="backConfImport" v-if="hasPermissions(['ne:neInfo:import'])">
|
<a-menu-item
|
||||||
|
key="backConfImport"
|
||||||
|
v-if="hasPermissions(['ne:neInfo:import'])"
|
||||||
|
>
|
||||||
<ImportOutlined />
|
<ImportOutlined />
|
||||||
{{ t('views.ne.neInfo.backConf.import') }}
|
{{ t('views.ne.neInfo.backConf.import') }}
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
|
|||||||
@@ -387,7 +387,7 @@ onMounted(() => {
|
|||||||
<a-button
|
<a-button
|
||||||
type="link"
|
type="link"
|
||||||
@click.prevent="fnSyncFileToFTP(record.fileName)"
|
@click.prevent="fnSyncFileToFTP(record.fileName)"
|
||||||
v-perms:has="['ne-data:backup-data:cloud']"
|
v-perms:has="['ne-data:backup-data:ftpSync']"
|
||||||
>
|
>
|
||||||
<template #icon><CloudServerOutlined /></template>
|
<template #icon><CloudServerOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
|
|||||||
@@ -819,7 +819,11 @@ onMounted(() => {
|
|||||||
<!-- 插槽-卡片左侧侧 -->
|
<!-- 插槽-卡片左侧侧 -->
|
||||||
<template #title>
|
<template #title>
|
||||||
<a-flex wrap="wrap" gap="small">
|
<a-flex wrap="wrap" gap="small">
|
||||||
<a-button type="primary" @click.prevent="fnModalVisibleByEdit()" v-perms:has="['neData:udm-auth:add']">
|
<a-button
|
||||||
|
type="primary"
|
||||||
|
@click.prevent="fnModalVisibleByEdit()"
|
||||||
|
v-perms:has="['neData:udm-auth:add']"
|
||||||
|
>
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<PlusOutlined />
|
<PlusOutlined />
|
||||||
</template>
|
</template>
|
||||||
@@ -858,7 +862,11 @@ onMounted(() => {
|
|||||||
</a-button>
|
</a-button>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
|
|
||||||
<a-button type="dashed" @click.prevent="fnModalUploadImportOpen" v-perms:has="['neData:udm-auth:import']">
|
<a-button
|
||||||
|
type="dashed"
|
||||||
|
@click.prevent="fnModalUploadImportOpen"
|
||||||
|
v-perms:has="['neData:udm-auth:import']"
|
||||||
|
>
|
||||||
<template #icon><ImportOutlined /></template>
|
<template #icon><ImportOutlined /></template>
|
||||||
{{ t('views.neUser.auth.import') }}
|
{{ t('views.neUser.auth.import') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
@@ -869,7 +877,6 @@ onMounted(() => {
|
|||||||
ok-text="TXT"
|
ok-text="TXT"
|
||||||
ok-type="default"
|
ok-type="default"
|
||||||
@confirm="fnExportList('txt')"
|
@confirm="fnExportList('txt')"
|
||||||
v-if="false"
|
|
||||||
>
|
>
|
||||||
<a-button type="dashed" v-perms:has="['neData:udm-auth:export']">
|
<a-button type="dashed" v-perms:has="['neData:udm-auth:export']">
|
||||||
<template #icon><ExportOutlined /></template>
|
<template #icon><ExportOutlined /></template>
|
||||||
@@ -896,7 +903,6 @@ onMounted(() => {
|
|||||||
ok-type="default"
|
ok-type="default"
|
||||||
@confirm="fnRecordExport('txt')"
|
@confirm="fnRecordExport('txt')"
|
||||||
:disabled="tableState.selectedRowKeys.length <= 0"
|
:disabled="tableState.selectedRowKeys.length <= 0"
|
||||||
v-if="false"
|
|
||||||
>
|
>
|
||||||
<a-button
|
<a-button
|
||||||
type="default"
|
type="default"
|
||||||
|
|||||||
@@ -719,7 +719,6 @@ onMounted(() => {
|
|||||||
ghost
|
ghost
|
||||||
size="small"
|
size="small"
|
||||||
@click.prevent="fnModalVisibleByVive(record.id)"
|
@click.prevent="fnModalVisibleByVive(record.id)"
|
||||||
v-perms:has="['traceManage:pcap:textlog']"
|
|
||||||
>
|
>
|
||||||
<template #icon><FileTextOutlined /> </template>
|
<template #icon><FileTextOutlined /> </template>
|
||||||
</a-button>
|
</a-button>
|
||||||
|
|||||||
@@ -62,9 +62,9 @@ function fnUpload(up: UploadRequestOption) {
|
|||||||
:before-upload="fnBeforeUpload"
|
:before-upload="fnBeforeUpload"
|
||||||
:custom-request="fnUpload"
|
:custom-request="fnUpload"
|
||||||
>
|
>
|
||||||
<a-button type="primary" v-perms:has="['traceManage:tshark:edit']"> Upload </a-button>
|
<a-button type="primary"> Upload </a-button>
|
||||||
</a-upload>
|
</a-upload>
|
||||||
<a-button @click="handleLoadExample()" v-perms:has="['traceManage:tshark:example']">Example</a-button>
|
<a-button @click="handleLoadExample()">Example</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
<!-- 插槽-卡片右侧 -->
|
<!-- 插槽-卡片右侧 -->
|
||||||
|
|||||||
Reference in New Issue
Block a user