diff --git a/src/api/index.ts b/src/api/index.ts index b1b6f4c4..5bd93e6c 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -29,7 +29,7 @@ export async function listMain() { refresh: parseDateToStr(time), ipAddress: ipAddress, name: key.split('/').join('_'), - status: '正常', + status: 'Normal', }; } else { mergedObj = { @@ -37,7 +37,7 @@ export async function listMain() { refresh: parseDateToStr(time), ipAddress: ipAddress, name: key.split('/').join('_'), - status: '异常', + status: 'Abnormal', }; } return mergedObj; diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 5a6b28d4..154f150b 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -172,6 +172,14 @@ export default { capability: 'capability', serialNum: 'serialNum', expiryDate: 'expiryDate', + neStatus: 'NE status is abnormal', + runStatus:'Running Status', + mark:'Brief Information', + object:'Object', + versionNum:'Version Number', + systemStatus:'System Status', + realNeStatus:'Status', + reloadTime:'Refresh Time', }, error: { err403: { @@ -387,6 +395,10 @@ export default { stopTask:'Stop Task', errorTaskInfo: 'Failed to obtain task information', granulOptionPlease:'Please select the measurement granularity', + letupSure:'Confirm activation of task with number [{id}]?', + stopSure:'Confirm the pending task with number [{row.id}]?', + letUpWarning:'Prohibit activation of activated tasks', + stopWarning: 'Prohibit suspending inactive measurement tasks', }, perfThreshold:{ thresholdValue:'Threshold Value', @@ -396,6 +408,14 @@ export default { editThre:'Update Threshold', addThre:'Add Threshold', errorThreInfo: 'Failed to obtain threshold information', + staticSet:'Statistical Settings', + threValue:'Threshold Value', + alarmLevel:'Alarm Level', + status:'Status', + letupSure:'Confirm the performance threshold of activation number [{id}]?', + stopSure:'Confirm the performance threshold of the suspension number [{id}]?', + letUpWarning:'Prohibit activation of activated performance threshold', + stopWarning:'Prohibit suspending inactive performance thresholds', }, perfData:{ taskId:'Task ID', diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index dc7a7be2..3c26f03f 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -172,6 +172,14 @@ export default { capability: '用户容量', serialNum: '序列号', expiryDate: '许可证到期日期', + neStatus:'网元状态异常', + runStatus:'运行状态', + mark:'简略信息', + object:'对象', + versionNum:'版本号', + systemStatus:'系统状态', + realNeStatus:'网元状态', + reloadTime:'刷新时间', }, error: { err403: { @@ -387,6 +395,10 @@ export default { stopTask:'挂起', errorTaskInfo: '获取任务信息失败', granulOptionPlease:'请选择测量粒度', + letupSure:'确认激活编号为 【{id}】 的任务?', + stopSure:'确认挂起编号为 【{id}】 的任务?', + letUpWarning:'禁止激活已激活的任务', + stopWarning:'禁止挂起未激活的测量任务', }, perfThreshold:{ thresholdValue:'门限值', @@ -396,6 +408,14 @@ export default { editThre:'修改性能门限', addThre:'新增性能门限', errorThreInfo: '获取性能门限信息失败', + staticSet:'统计设置', + threValue:'门限值', + alarmLevel:'告警级别', + status:'状态', + letupSure:'确认激活编号为 【{id}】 的性能门限?', + stopSure:'确认挂起编号为 【{id}】 的性能门限?', + letUpWarning:'禁止激活已激活的性能门限', + stopWarning:'禁止挂起未激活的性能门限', }, perfData:{ taskId:'任务ID', diff --git a/src/views/configManage/configParam/index.vue b/src/views/configManage/configParam/index.vue index c0555174..e47cb371 100644 --- a/src/views/configManage/configParam/index.vue +++ b/src/views/configManage/configParam/index.vue @@ -1056,7 +1056,7 @@ onMounted(() => { - + { function rowClick(record: any, index: any) { return { onClick: (event: any) => { - if (toRaw(record).status == '异常'||toRaw(record).status == 'Abnormal') { - message.error(`网元状态异常`, 2); + if ( + toRaw(record).status == '异常' || + toRaw(record).status == 'Abnormal' + ) { + message.error(t('views.index.neStatus'), 2); return false; } else { let pronData = toRaw(record); @@ -436,7 +439,7 @@ onBeforeUnmount(() => { >