feat:ue和ne模块权限按钮

This commit is contained in:
zhongzm
2025-09-12 18:52:50 +08:00
parent 02b12d76a7
commit 510e3e1006
10 changed files with 104 additions and 42 deletions

View File

@@ -819,7 +819,7 @@ onMounted(() => {
<!-- 插槽-卡片左侧侧 -->
<template #title>
<a-flex wrap="wrap" gap="small">
<a-button type="primary" @click.prevent="fnModalVisibleByEdit()">
<a-button type="primary" @click.prevent="fnModalVisibleByEdit()" v-perms:has="['neData:udm-auth:add']">
<template #icon>
<PlusOutlined />
</template>
@@ -831,6 +831,7 @@ onMounted(() => {
danger
ghost
@click.prevent="fnModalVisibleByBatch()"
v-perms:has="['neData:udm-auth:delete']"
>
<template #icon>
<DeleteOutlined />
@@ -850,13 +851,14 @@ onMounted(() => {
danger
:disabled="modalState.loadDataLoading"
:loading="modalState.loadDataLoading"
v-perms:has="['neData:udm-auth:reload']"
>
<template #icon><SyncOutlined /></template>
{{ t('views.neUser.auth.loadData') }}
</a-button>
</a-popconfirm>
<a-button type="dashed" @click.prevent="fnModalUploadImportOpen">
<a-button type="dashed" @click.prevent="fnModalUploadImportOpen" v-perms:has="['neData:udm-auth:import']">
<template #icon><ImportOutlined /></template>
{{ t('views.neUser.auth.import') }}
</a-button>
@@ -869,7 +871,7 @@ onMounted(() => {
@confirm="fnExportList('txt')"
v-if="false"
>
<a-button type="dashed">
<a-button type="dashed" v-perms:has="['neData:udm-auth:export']">
<template #icon><ExportOutlined /></template>
{{ t('views.neUser.auth.export') }}
</a-button>
@@ -881,6 +883,7 @@ onMounted(() => {
:disabled="tableState.selectedRowKeys.length <= 0"
:loading="modalState.loadDataLoading"
@click.prevent="fnRecordDelete('0')"
v-perms:has="['neData:udm-auth:delete']"
>
<template #icon><DeleteOutlined /></template>
{{ t('views.neUser.auth.checkDel') }}
@@ -898,6 +901,7 @@ onMounted(() => {
<a-button
type="default"
:disabled="tableState.selectedRowKeys.length <= 0"
v-perms:has="['neData:udm-auth:export']"
>
<template #icon><ExportOutlined /></template>
{{ t('views.neUser.auth.checkExport') }}
@@ -982,6 +986,7 @@ onMounted(() => {
<a-button
type="link"
@click.prevent="fnModalVisibleByEdit(record)"
v-perms:has="['neData:udm-auth:edit']"
>
<template #icon>
<FormOutlined />
@@ -993,6 +998,7 @@ onMounted(() => {
<a-button
type="link"
@click.prevent="fnRecordDelete(record.imsi)"
v-perms:has="['neData:udm-auth:delete']"
>
<template #icon>
<DeleteOutlined />