fix: 网元版本OMC安装遮罩和提示多语言
This commit is contained in:
@@ -739,8 +739,9 @@ export default {
|
|||||||
upgradeBatch: "Batch Upgrade",
|
upgradeBatch: "Batch Upgrade",
|
||||||
upgradeBatchTip: "Do you perform new version upgrades on checked records?",
|
upgradeBatchTip: "Do you perform new version upgrades on checked records?",
|
||||||
upgradeNotNewVer: 'No new version found',
|
upgradeNotNewVer: 'No new version found',
|
||||||
|
upgradeOMCVer: 'Rejection of batch operation upgrades OMC',
|
||||||
upgradeDone: 'Update complete, service being reloaded',
|
upgradeDone: 'Update complete, service being reloaded',
|
||||||
upgradeFail: 'The update failed, check if the service terminal environment is available!',
|
upgradeFail: 'The update fails, please check whether the software file exists and whether the service terminal environment is available!',
|
||||||
upgradeModal: 'Network Element Version Updates',
|
upgradeModal: 'Network Element Version Updates',
|
||||||
},
|
},
|
||||||
neLicense: {
|
neLicense: {
|
||||||
|
|||||||
@@ -739,8 +739,9 @@ export default {
|
|||||||
upgradeBatch: "批量更新",
|
upgradeBatch: "批量更新",
|
||||||
upgradeBatchTip: "对勾选的记录进行新版本升级吗?",
|
upgradeBatchTip: "对勾选的记录进行新版本升级吗?",
|
||||||
upgradeNotNewVer: '没有发现新版本',
|
upgradeNotNewVer: '没有发现新版本',
|
||||||
|
upgradeOMCVer: '拒绝批量操作升级OMC',
|
||||||
upgradeDone: '更新完成,服务正在重载',
|
upgradeDone: '更新完成,服务正在重载',
|
||||||
upgradeFail: '更新失败,请检查服务终端环境是否可用!',
|
upgradeFail: '更新失败,请检查软件文件是否存在且服务终端环境是否可用!',
|
||||||
upgradeModal: '网元版本更新',
|
upgradeModal: '网元版本更新',
|
||||||
},
|
},
|
||||||
neLicense: {
|
neLicense: {
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ const useLockedStore = defineStore('locked', {
|
|||||||
// 延迟5秒
|
// 延迟5秒
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.relaodWait();
|
this.relaodWait();
|
||||||
}, 2_000);
|
}, 5_000);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { reactive, ref, onMounted, toRaw, defineAsyncComponent } from 'vue';
|
import { reactive, ref, onMounted, toRaw, defineAsyncComponent } from 'vue';
|
||||||
import { PageContainer } from 'antdv-pro-layout';
|
import { PageContainer } from 'antdv-pro-layout';
|
||||||
import { Modal, TableColumnsType, message } from 'ant-design-vue/lib';
|
import {
|
||||||
|
Modal,
|
||||||
|
TableColumnsType,
|
||||||
|
message,
|
||||||
|
notification,
|
||||||
|
} from 'ant-design-vue/lib';
|
||||||
import { SizeType } from 'ant-design-vue/lib/config-provider';
|
import { SizeType } from 'ant-design-vue/lib/config-provider';
|
||||||
import { MenuInfo } from 'ant-design-vue/lib/menu/src/interface';
|
import { MenuInfo } from 'ant-design-vue/lib/menu/src/interface';
|
||||||
import useNeInfoStore from '@/store/modules/neinfo';
|
import useNeInfoStore from '@/store/modules/neinfo';
|
||||||
@@ -311,7 +316,13 @@ function fnRecordVersion(
|
|||||||
onOk() {
|
onOk() {
|
||||||
if (modalState.confirmLoading) return;
|
if (modalState.confirmLoading) return;
|
||||||
modalState.confirmLoading = true;
|
modalState.confirmLoading = true;
|
||||||
const hide = message.loading(t('common.loading'), 0);
|
const notificationKey = 'NE_VERSION_' + action;
|
||||||
|
notification.info({
|
||||||
|
key: notificationKey,
|
||||||
|
message: t('common.tipTitle'),
|
||||||
|
description: `${row.neType} ${t('common.loading')}`,
|
||||||
|
duration: 0,
|
||||||
|
});
|
||||||
let preinput = {};
|
let preinput = {};
|
||||||
if (row.neType.toUpperCase() === 'IMS') {
|
if (row.neType.toUpperCase() === 'IMS') {
|
||||||
preinput = { pisCSCF: 'y', updateMFetc: 'No', updateMFshare: 'No' };
|
preinput = { pisCSCF: 'y', updateMFetc: 'No', updateMFshare: 'No' };
|
||||||
@@ -339,7 +350,7 @@ function fnRecordVersion(
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
hide();
|
notification.close(notificationKey);
|
||||||
modalState.confirmLoading = false;
|
modalState.confirmLoading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -376,6 +387,16 @@ async function fnRecordUpgrade() {
|
|||||||
});
|
});
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// OMC跳过操作
|
||||||
|
if (row.neType.toUpperCase() === 'OMC') {
|
||||||
|
modalState.operateDataUpgrade.push({
|
||||||
|
neType: row.neType,
|
||||||
|
neId: row.neId,
|
||||||
|
status: 'fail',
|
||||||
|
log: t('views.ne.neVersion.upgradeOMCVer'),
|
||||||
|
});
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// 开始升级
|
// 开始升级
|
||||||
let preinput = {};
|
let preinput = {};
|
||||||
if (row.neType.toUpperCase() === 'IMS') {
|
if (row.neType.toUpperCase() === 'IMS') {
|
||||||
|
|||||||
Reference in New Issue
Block a user