fix: 网元管理OMC禁止start stop,开启重启等待
This commit is contained in:
@@ -26,6 +26,8 @@ import TableColumnsDnd from '@/components/TableColumnsDnd/index.vue';
|
|||||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||||
import { NE_TYPE_LIST } from '@/constants/ne-constants';
|
import { NE_TYPE_LIST } from '@/constants/ne-constants';
|
||||||
import useNeInfoStore from '@/store/modules/neinfo';
|
import useNeInfoStore from '@/store/modules/neinfo';
|
||||||
|
import useLockedStore from '@/store/modules/locked';
|
||||||
|
const lockedStore = useLockedStore();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
/**表格所需option */
|
/**表格所需option */
|
||||||
@@ -546,6 +548,11 @@ function fnRecordRestart(row: Record<string, any>) {
|
|||||||
restartNf(row)
|
restartNf(row)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
|
// OMC自升级
|
||||||
|
if (row.neType.toLowerCase() === 'omc') {
|
||||||
|
lockedStore.fnLock('reload');
|
||||||
|
return;
|
||||||
|
}
|
||||||
message.success({
|
message.success({
|
||||||
content: t('common.msgSuccess', {
|
content: t('common.msgSuccess', {
|
||||||
msg: t('views.configManage.neManage.restart'),
|
msg: t('views.configManage.neManage.restart'),
|
||||||
@@ -927,11 +934,17 @@ onMounted(() => {
|
|||||||
<ImportOutlined />
|
<ImportOutlined />
|
||||||
{{ t('views.configManage.neManage.import') }}
|
{{ t('views.configManage.neManage.import') }}
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="start">
|
<a-menu-item
|
||||||
|
key="start"
|
||||||
|
v-if="!['OMC'].includes(record.neType)"
|
||||||
|
>
|
||||||
<thunderbolt-outlined />
|
<thunderbolt-outlined />
|
||||||
{{ t('views.configManage.neManage.start') }}
|
{{ t('views.configManage.neManage.start') }}
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="stop">
|
<a-menu-item
|
||||||
|
key="stop"
|
||||||
|
v-if="!['OMC'].includes(record.neType)"
|
||||||
|
>
|
||||||
<pause-outlined />
|
<pause-outlined />
|
||||||
{{ t('views.configManage.neManage.stop') }}
|
{{ t('views.configManage.neManage.stop') }}
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
|
|||||||
Reference in New Issue
Block a user