fix: 教师只能重启网元,禁止操作网元信息

This commit is contained in:
TsMask
2024-07-19 17:31:45 +08:00
parent d68a773214
commit 1e9c6a51be

View File

@@ -486,7 +486,7 @@ onMounted(() => {
<a-card :bordered="false" :body-style="{ padding: '0px' }">
<!-- 插槽-卡片左侧侧 -->
<template #title>
<a-space :size="8" align="center">
<a-space :size="8" align="center" v-roles:has="['admin']">
<a-button type="primary" @click.prevent="fnModalVisibleByEdit()">
<template #icon><PlusOutlined /></template>
{{ t('common.addText') }}
@@ -572,6 +572,7 @@ onMounted(() => {
</template>
<template v-if="column.key === 'id'">
<a-space :size="8" align="center">
<span v-roles:has="['admin']">
<a-tooltip>
<template #title>{{ t('common.editText') }}</template>
<a-button
@@ -581,6 +582,8 @@ onMounted(() => {
<template #icon><FormOutlined /></template>
</a-button>
</a-tooltip>
</span>
<span v-roles:has="['admin', 'teacher']">
<a-tooltip>
<template #title>
{{ t('views.ne.common.restart') }}
@@ -592,6 +595,8 @@ onMounted(() => {
<template #icon><UndoOutlined /></template>
</a-button>
</a-tooltip>
</span>
<span v-roles:has="['admin']">
<a-tooltip placement="left">
<template #title>{{ t('common.moreText') }}</template>
<a-dropdown placement="bottomRight" trigger="click">
@@ -599,7 +604,9 @@ onMounted(() => {
<template #icon><EllipsisOutlined /> </template>
</a-button>
<template #overlay>
<a-menu @click="({ key }:any) => fnRecordMore(key, record)">
<a-menu
@click="({ key }:any) => fnRecordMore(key, record)"
>
<a-menu-item key="log">
<FileTextOutlined />
{{ t('views.ne.common.log') }}
@@ -615,7 +622,9 @@ onMounted(() => {
<a-menu-item
key="reload"
v-if="
!['OMC', 'PCF', 'IMS', 'MME'].includes(record.neType)
!['OMC', 'PCF', 'IMS', 'MME'].includes(
record.neType
)
"
>
<SyncOutlined />
@@ -642,6 +651,7 @@ onMounted(() => {
</template>
</a-dropdown>
</a-tooltip>
</span>
</a-space>
</template>
</template>