fix: 教师只能重启网元,禁止操作网元信息
This commit is contained in:
@@ -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,76 +572,86 @@ 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">
|
||||||
<a-tooltip>
|
<span v-roles:has="['admin']">
|
||||||
<template #title>{{ t('common.editText') }}</template>
|
<a-tooltip>
|
||||||
<a-button
|
<template #title>{{ t('common.editText') }}</template>
|
||||||
type="link"
|
<a-button
|
||||||
@click.prevent="fnModalVisibleByEdit(record)"
|
type="link"
|
||||||
>
|
@click.prevent="fnModalVisibleByEdit(record)"
|
||||||
<template #icon><FormOutlined /></template>
|
>
|
||||||
</a-button>
|
<template #icon><FormOutlined /></template>
|
||||||
</a-tooltip>
|
|
||||||
<a-tooltip>
|
|
||||||
<template #title>
|
|
||||||
{{ t('views.ne.common.restart') }}
|
|
||||||
</template>
|
|
||||||
<a-button
|
|
||||||
type="link"
|
|
||||||
@click.prevent="fnRecordMore('restart', record)"
|
|
||||||
>
|
|
||||||
<template #icon><UndoOutlined /></template>
|
|
||||||
</a-button>
|
|
||||||
</a-tooltip>
|
|
||||||
<a-tooltip placement="left">
|
|
||||||
<template #title>{{ t('common.moreText') }}</template>
|
|
||||||
<a-dropdown placement="bottomRight" trigger="click">
|
|
||||||
<a-button type="link">
|
|
||||||
<template #icon><EllipsisOutlined /> </template>
|
|
||||||
</a-button>
|
</a-button>
|
||||||
<template #overlay>
|
</a-tooltip>
|
||||||
<a-menu @click="({ key }:any) => fnRecordMore(key, record)">
|
</span>
|
||||||
<a-menu-item key="log">
|
<span v-roles:has="['admin', 'teacher']">
|
||||||
<FileTextOutlined />
|
<a-tooltip>
|
||||||
{{ t('views.ne.common.log') }}
|
<template #title>
|
||||||
</a-menu-item>
|
{{ t('views.ne.common.restart') }}
|
||||||
<a-menu-item key="start">
|
|
||||||
<ThunderboltOutlined />
|
|
||||||
{{ t('views.ne.common.start') }}
|
|
||||||
</a-menu-item>
|
|
||||||
<a-menu-item key="stop">
|
|
||||||
<CloseSquareOutlined />
|
|
||||||
{{ t('views.ne.common.stop') }}
|
|
||||||
</a-menu-item>
|
|
||||||
<a-menu-item
|
|
||||||
key="reload"
|
|
||||||
v-if="
|
|
||||||
!['OMC', 'PCF', 'IMS', 'MME'].includes(record.neType)
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<SyncOutlined />
|
|
||||||
{{ t('views.ne.common.reload') }}
|
|
||||||
</a-menu-item>
|
|
||||||
<a-menu-item key="delete">
|
|
||||||
<DeleteOutlined />
|
|
||||||
{{ t('common.deleteText') }}
|
|
||||||
</a-menu-item>
|
|
||||||
<a-menu-item key="oam">
|
|
||||||
<FileTextOutlined />
|
|
||||||
{{ t('views.ne.common.oam') }}
|
|
||||||
</a-menu-item>
|
|
||||||
<!-- 配置备份 -->
|
|
||||||
<a-menu-item key="backConfExport">
|
|
||||||
<ExportOutlined />
|
|
||||||
{{ t('views.ne.neInfo.backConf.export') }}
|
|
||||||
</a-menu-item>
|
|
||||||
<a-menu-item key="backConfImport">
|
|
||||||
<ImportOutlined />
|
|
||||||
{{ t('views.ne.neInfo.backConf.import') }}
|
|
||||||
</a-menu-item>
|
|
||||||
</a-menu>
|
|
||||||
</template>
|
</template>
|
||||||
</a-dropdown>
|
<a-button
|
||||||
</a-tooltip>
|
type="link"
|
||||||
|
@click.prevent="fnRecordMore('restart', record)"
|
||||||
|
>
|
||||||
|
<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">
|
||||||
|
<a-button type="link">
|
||||||
|
<template #icon><EllipsisOutlined /> </template>
|
||||||
|
</a-button>
|
||||||
|
<template #overlay>
|
||||||
|
<a-menu
|
||||||
|
@click="({ key }:any) => fnRecordMore(key, record)"
|
||||||
|
>
|
||||||
|
<a-menu-item key="log">
|
||||||
|
<FileTextOutlined />
|
||||||
|
{{ t('views.ne.common.log') }}
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item key="start">
|
||||||
|
<ThunderboltOutlined />
|
||||||
|
{{ t('views.ne.common.start') }}
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item key="stop">
|
||||||
|
<CloseSquareOutlined />
|
||||||
|
{{ t('views.ne.common.stop') }}
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item
|
||||||
|
key="reload"
|
||||||
|
v-if="
|
||||||
|
!['OMC', 'PCF', 'IMS', 'MME'].includes(
|
||||||
|
record.neType
|
||||||
|
)
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<SyncOutlined />
|
||||||
|
{{ t('views.ne.common.reload') }}
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item key="delete">
|
||||||
|
<DeleteOutlined />
|
||||||
|
{{ t('common.deleteText') }}
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item key="oam">
|
||||||
|
<FileTextOutlined />
|
||||||
|
{{ t('views.ne.common.oam') }}
|
||||||
|
</a-menu-item>
|
||||||
|
<!-- 配置备份 -->
|
||||||
|
<a-menu-item key="backConfExport">
|
||||||
|
<ExportOutlined />
|
||||||
|
{{ t('views.ne.neInfo.backConf.export') }}
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item key="backConfImport">
|
||||||
|
<ImportOutlined />
|
||||||
|
{{ t('views.ne.neInfo.backConf.import') }}
|
||||||
|
</a-menu-item>
|
||||||
|
</a-menu>
|
||||||
|
</template>
|
||||||
|
</a-dropdown>
|
||||||
|
</a-tooltip>
|
||||||
|
</span>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user