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