From 1a2939ab01ccc7e99afdc9651c835f0ec2bc3f0a Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 16 Apr 2024 11:12:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BD=91=E5=85=83=E7=AE=A1=E7=90=86OMC?= =?UTF-8?q?=E7=A6=81=E6=AD=A2start=20stop=EF=BC=8C=E5=BC=80=E5=90=AF?= =?UTF-8?q?=E9=87=8D=E5=90=AF=E7=AD=89=E5=BE=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/configManage/neManage/index.vue | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/views/configManage/neManage/index.vue b/src/views/configManage/neManage/index.vue index 1b998ee2..cef04e56 100644 --- a/src/views/configManage/neManage/index.vue +++ b/src/views/configManage/neManage/index.vue @@ -26,6 +26,8 @@ import TableColumnsDnd from '@/components/TableColumnsDnd/index.vue'; import { RESULT_CODE_SUCCESS } from '@/constants/result-constants'; import { NE_TYPE_LIST } from '@/constants/ne-constants'; import useNeInfoStore from '@/store/modules/neinfo'; +import useLockedStore from '@/store/modules/locked'; +const lockedStore = useLockedStore(); const { t } = useI18n(); /**表格所需option */ @@ -546,6 +548,11 @@ function fnRecordRestart(row: Record) { restartNf(row) .then(res => { if (res.code === RESULT_CODE_SUCCESS) { + // OMC自升级 + if (row.neType.toLowerCase() === 'omc') { + lockedStore.fnLock('reload'); + return; + } message.success({ content: t('common.msgSuccess', { msg: t('views.configManage.neManage.restart'), @@ -927,11 +934,17 @@ onMounted(() => { {{ t('views.configManage.neManage.import') }} - + {{ t('views.configManage.neManage.start') }} - + {{ t('views.configManage.neManage.stop') }}