diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 3ebe951c..ddd0ed55 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -658,6 +658,7 @@ export default { kpiEnable: 'Report', kpiTimer: 'Reporting Cycle', kpiTimerPlease: 'Please enter the reporting period (in seconds)', + omcIP: 'OMC IP', }, backConf: { export: 'Config Export', diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index 32e76e82..51f81718 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -658,6 +658,7 @@ export default { kpiEnable: '上报', kpiTimer: '上报周期', kpiTimerPlease: '请输入上报周期(单位秒)', + omcIP: 'OMC IP', }, backConf: { export: '配置导出', diff --git a/src/views/ne/neInfo/components/OAMModal.vue b/src/views/ne/neInfo/components/OAMModal.vue index 5895ac94..3108dda5 100644 --- a/src/views/ne/neInfo/components/OAMModal.vue +++ b/src/views/ne/neInfo/components/OAMModal.vue @@ -42,6 +42,7 @@ let modalState: ModalStateType = reactive({ title: 'OAM Configuration', sync: true, from: { + omcIP: '', oamEnable: true, oamPort: 33030, snmpEnable: true, @@ -77,6 +78,7 @@ function fnModalVisibleByTypeAndId(neType: string, neId: string) { if (res.code === RESULT_CODE_SUCCESS) { const data = res.data; Object.assign(modalState.from, { + omcIP: data.oamConfig[data.oamConfig.ipType], oamEnable: data.oamConfig.enable, oamPort: data.oamConfig.port, snmpEnable: data.snmpConfig.enable, @@ -224,6 +226,17 @@ watch( + + + diff --git a/src/views/ne/neInfo/index.vue b/src/views/ne/neInfo/index.vue index 8a95f042..0c58214a 100644 --- a/src/views/ne/neInfo/index.vue +++ b/src/views/ne/neInfo/index.vue @@ -625,7 +625,10 @@ onMounted(() => { {{ t('common.deleteText') }} - + {{ t('views.ne.common.oam') }}