diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 5566b4da..d40e3dce 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -351,163 +351,6 @@ export default { description: "No data yet, try refreshing", }, }, - configManage: { - neManage: { - addNe:'Add Network Element', - delSure:'Confirm deleting the data item with network element name {msg}', - editNe:'Edit Network Element', - exportSure:'Confirm exporting the configuration information with the network element name {msg}', - exportTip:'Export successful, please go to backup management for download', - getInfo:'Failed to get network element information', - neType:'NE Type', - neTypePlease: 'Select network element type', - neId:'NE ID', - neName:'NE Name', - neTypeTip:'Fill in the type of network element created, such as:SMF', - uid:'RM UID', - uidTip:'Please enter a unique resource identifier', - ip:'IP Address', - mac:'NE MAC address', - macTip:'Able to locate the physical address (MAC) of the network element', - port:'Port', - portTip:'Maximum range 0~65535', - pvflag:'PV Flag', - pnf:'Physical Network Element', - vnf:'Virtual Network Element', - province:'Region', - vendorName:'Vendor Name', - dn:'Network Identification', - reload: 'Reload', - restart: 'Restart', - totalSure:'Confirm the network element with {operator} network element name {msg}', - stop: 'Stop', - start: 'Start', - log: 'Logs', - export: 'Export', - import: 'Import', - fileForm:'File Source', - selectPlease:'Please select the source of the import file', - server:'Server File', - local:'Local File', - fileSelect:'Please select the current import file', - sync:'Synchronize to NE', - open:'Open', - close:'Close', - addFail:'Add failed', - operFail:'Operation Failed' - }, - backupManage: { - setBackupTask: 'Set automatic backup time', - neTypePlease: 'Query network element type', - neType: 'NE Type', - neID: 'NE ID', - fileName: 'File Name', - createAt: 'Create at', - remark:'Remark', - edit:'Edit Backup File', - totalSure:'Confirm that {oper} records item number {id}?', - }, - softwareManage: { - sendBtn: 'Distribute', - runBtn: 'Activate', - backBtn: 'Rollback', - historyBtn: 'Distribution Record', - neTypePlease: 'Select network element type', - neType: 'NE Type', - fileName: 'File Name', - version: 'Version', - versionPlease: 'Version number cannot be empty', - updateTime: 'Uploaded Time', - description: 'Description', - deleteTip: 'Are you sure to delete the data item with software [{fileName}]?', - downloadTip: 'Are you sure to download the data item with software [{fileName}]?', - updateComment: 'Comment', - updateCommentPlease: 'Please enter the software description', - updateFile: 'Software File', - updateFilePlease: 'Please upload the updated software file', - verifyFile: 'Verify File', - selectFile: 'SELECT FILE', - sendTitle: 'Distribute software version', - sendContent: 'Are you sure to send the file with the software package [{fileName}] to the corresponding network element?', - runTitle: 'Activate software version', - runContent: 'Are you sure to activate the software version of [{fileName}] that has been issued to the corresponding network element?', - backTitle: 'Fallback software version', - backContent: 'Confirm that the software version of [{fileName}] has been issued for the corresponding network element rollback?', - neId: 'Corresponding network element', - neIdPlease: 'Please select the corresponding network element', - versions:'Version', - upVersions:'Version before upgrade', - backVersions:'Version before rollback', - status:'Status', - letUpTime:'Activation time', - createTime:'Creation time', - onlyAble:'Only upload file format {fileText} is supported', - nullVersion:'There is no rollback version for the current network element.', - }, - license: { - neTypePlease: 'Select network element type', - neType: 'NE Type', - serialNum: 'Serial Num', - createTime: 'Time', - comment: 'Description', - updateComment: 'License Description', - updateCommentPlease: 'Please enter a license description', - updateFile: 'License File', - updateFilePlease: 'Please upload and update the License file', - selectFile: 'SELECT FILE', - neId: 'NE ID', - neIdPlease: 'Please select the corresponding network element', - }, - configParam:{ - dataNull:'No configuration item data yet', - editSuss:'Modification successful', - editFail:'Edit failed', - Unable:'Illegal operation of attribute value', - delSure:'Confirm to delete the data item with Index [{value}]?', - addSuss:'Add successfully', - addFail:'Add failed', - delArraySure:'Confirm to delete the data item with {arrayChildTitle} Index as [{value}]?', - parUnable:'The parameter value is not within the reasonable range', - ipv4Tip:'Not a legal IPV4 address', - ipv6Tip:'Not a legal IPV6 address', - enumTip:'Not a reasonable enumeration value', - boolTip:'Not a reasonable Boolean value', - default:'The input value is of unknown type', - reloadSuss:'Network element reloading completed', - reloadFail:'Network element reloading failed', - neNUll:'No network element list data yet', - reload:'Reload', - post:'Submit', - editSure:'Are you sure you want to update this attribute value? ', - arraryEdit:'Are you sure to submit the record whose updated Index is [{value}]? ', - addSure:'Are you sure to submit the new record of Index: [{value}]? ' - }, - configParamForm: { - treeTitle: "Navigation Configuration", - treeSelectTip: "Select configuration item information in the left configuration navigation!", - neType: 'NE Type', - neTypePleace: "Please select the network element type", - noConfigData: "No data on configuration items", - updateValue: "[ {num} ] parameter value modified successfully.", - updateValueErr: "Attribute value modification failure", - updateItem: "Modify Index to {num}.", - updateItemErr: "Record modification failure", - delItemOk: "Deleting Index as {num} succeeded", - addItemOk: "Add Index as {num} Record Succeeded", - addItemErr: "Record addition failure", - requireUn: "[ {display} ] input value is of unknown type", - requireString: "[ {display} ] parameter value is invalid.", - requireInt: "[ {display} ] parameter value not in reasonable range {filter}", - requireIpv4: "[ {display} ] not a legitimate IPV4 address", - requireIpv6: "[ {display} ] not a legitimate IPV6 address.", - requireEnum: "[ {display} ] is not a reasonable enumeration value.", - requireBool: "[ {display} ] is not a reasonable boolean value.", - editOkTip: "Confirm updating the value of this [ {num} ] attribute?", - updateItemTip: "Confirm updating the data item with Index [{num}]?", - delItemTip: "Confirm deleting the data item with Index [{num}]?", - arrayMore: "Expand", - }, - }, dashboard: { overview:{ title: "Core Network Dashboard", @@ -784,6 +627,7 @@ export default { treeSelectTip: "Select configuration item information in the left configuration navigation!", neType: 'NE Type', neTypePleace: "Please select the network element type", + neIdSyncPleace: "Please select the synchronized network element", noConfigData: "No data on configuration items", updateValue: "[ {num} ] parameter value modified successfully.", updateValueErr: "Attribute value modification failure", @@ -803,6 +647,12 @@ export default { updateItemTip: "Confirm updating the data item with Index [{num}]?", delItemTip: "Confirm deleting the data item with Index [{num}]?", arrayMore: "Expand", + checkSync: { + sync: "Sync", + tip: "Synchronize regional network elements", + title: "Select All/Select None", + selectProvince: "Select", + } }, neConfigBackup: { name: "Name", diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index 5a77cb6b..b0241bde 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -351,163 +351,6 @@ export default { description: "暂无数据,尝试刷新看看", }, }, - configManage: { - neManage: { - addNe:'添加网元', - delSure:'确认删除网元名称为{msg}的数据项 ', - editNe:'修改网元', - exportSure:'确认导出网元名称为 {msg} 的配置信息', - exportTip:'导出成功,请到备份管理进行下载', - getInfo:'获取网元信息失败', - neType:'网元类型', - neTypePlease: '请输入网元类型', - neId:'网元内部标识', - neName:'网元名称', - neTypeTip:'填写创建的网元类型,如:SMF', - uid:'资源唯一标识', - uidTip:'请输入资源唯一标识', - ip:'IP地址', - mac:'网元物理地址', - macTip:'能够定位网元的物理地址(MAC)', - port:'端口', - portTip:'最大范围0~65535', - pvflag:'网元虚拟化标识', - pnf:'物理网元', - vnf:'虚拟网元', - province:'网元服务省份', - vendorName:'厂商名称', - dn:'网络标识', - reload: '重载', - restart: '重启', - totalSure:'确认{oper}网元名称为 {msg} 的网元', - stop: '停止', - start: '启动', - log: '日志', - export: '导出', - import: '导入', - fileForm:'文件来源', - selectPlease:'请选择导入文件来源', - server:'服务器文件', - local:'本地文件', - fileSelect:'请选择当前导入文件', - sync:'同步到网元', - open:'开', - close:'关', - addFail:'新增失败', - operFail:'操作失败' - }, - backupManage: { - setBackupTask: '设置自动备份时间', - neTypePlease: '查询网元类型', - neType: '网元类型', - neID: '网元内部标识', - fileName: '文件名', - createAt: '创建时间', - remark:'备份说明', - edit:'编辑备份文件', - totalSure:'确认{oper}记录编号为 {id} 的数据项?', - }, - softwareManage: { - sendBtn: '下发', - runBtn: '激活', - backBtn: '回退', - historyBtn: '下发记录', - neTypePlease: '选择网元类型', - neType: '网元类型', - fileName: '文件名', - version: '版本号', - versionPlease: '版本号不能为空', - updateTime: '上传时间', - description: '功能描述', - deleteTip: '确认删除 【{fileName}】 的软件数据项?', - downloadTip: '确认下载 【{fileName}】 的软件数据项?', - updateComment: '软件说明', - updateCommentPlease: '请输入软件说明', - updateFile: '软件文件', - updateFilePlease: '请上传更新软件文件', - verifyFile: '校验文件', - selectFile: '选择文件', - sendTitle: '下发软件版本', - sendContent: '确认下发软件包为【{fileName}】的文件到对应网元?', - runTitle: '激活软件版本', - runContent: '确认在对应网元激活已下发【{fileName}】的软件版本?', - backTitle: '回退软件版本', - backContent: '确认在对应网元回退已下发【{fileName}】的软件版本?', - neId: '对应网元', - neIdPlease: '请选择对应网元', - versions:'版本', - upVersions:'升级前版本', - backVersions:'回退前版本', - status:'状态', - letUpTime:'激活时间', - createTime:'创建时间', - onlyAble:'只支持上传文件格式 {fileText}', - nullVersion:'当前网元无可回退版本', - }, - license: { - neTypePlease: '选择网元类型', - neType: '网元类型', - serialNum: '序列号', - createTime: '时间', - comment: '说明', - updateComment: 'License说明', - updateCommentPlease: '请输入License说明', - updateFile: 'License文件', - updateFilePlease: '请上传更新License文件', - selectFile: '选择文件', - neId: '网元内部标识', - neIdPlease: '请选择对应网元', - }, - configParam:{ - dataNull:'暂无配置项数据', - editSuss:'修改成功', - editFail:'修改失败', - unable:'非法操作属性值', - delSure:'确认删除Index为 【{value}】 的数据项?', - addSuss:'新增成功', - addFail:'新增失败', - delArraySure:'确认删除{arrayChildTitle} Index 为 【{value}】 的数据项?', - parUnable:'参数值不在合理范围', - ipv4Tip:'不是合法的IPV4地址', - ipv6Tip:'不是合法的IPV6地址', - enumTip:'不是合理的枚举值', - boolTip:'不是合理的布尔类型的值', - default:'输入值是未知类型', - reloadSuss:'网元重新加载完成', - reloadFail:'网元重新加载失败', - neNUll:'暂无网元列表数据', - reload:'重载', - post:'提交', - editSure:'确认更新该属性值吗?', - arraryEdit:'确认提交更新 Index 为 【{value}】 的记录吗?', - addSure:'确认提交新增 Index :【{value}】 的记录吗?', - }, - configParamForm: { - treeTitle: "配置导航", - treeSelectTip: "左侧配置导航中选择配置项信息!", - neType: "网元类型", - neTypePleace: "请选择网元类型", - noConfigData: "暂无配置项数据", - updateValue: "【 {num} 】 属性值修改成功", - updateValueErr: "属性值修改失败", - updateItem: "修改 Index 为 {num} 记录成功", - updateItemErr: "记录修改失败", - delItemOk: "删除 Index 为 {num} 记录成功", - addItemOk: "新增 Index 为 {num} 记录成功", - addItemErr: "记录新增失败", - requireUn: "【 {display} 】输入值是未知类型", - requireString: "【 {display} 】参数值不合理", - requireInt: "【 {display} 】参数值不在合理范围 {filter}", - requireIpv4: "【 {display} 】不是合法的IPV4地址", - requireIpv6: "【 {display} 】不是合法的IPV6地址", - requireEnum: "【 {display} 】不是合理的枚举值", - requireBool: "【 {display} 】不是合理的布尔类型的值", - editOkTip: "确认更新该【 {num} 】属性值吗?", - updateItemTip: "确认更新Index为 【{num}】 的数据项?", - delItemTip: "确认删除Index为 【{num}】 的数据项?", - arrayMore: "展开", - }, - }, dashboard: { overview:{ title: "核心网系统看板", @@ -784,6 +627,7 @@ export default { treeSelectTip: "左侧配置导航中选择配置项信息!", neType: "网元类型", neTypePleace: "请选择网元类型", + neIdSyncPleace: "请选择同步网元", noConfigData: "暂无配置项数据", updateValue: "【 {num} 】 属性值修改成功", updateValueErr: "属性值修改失败", @@ -803,6 +647,12 @@ export default { updateItemTip: "确认更新Index为 【{num}】 的数据项?", delItemTip: "确认删除Index为 【{num}】 的数据项?", arrayMore: "展开", + checkSync: { + sync: "同步", + tip: "同步区域网元", + title: "全选/全不选", + selectProvince: "选择区域", + } }, neConfigBackup: { name: "名称", diff --git a/src/views/configManage/neManage/index.vue b/src/views/configManage/neManage/index.vue deleted file mode 100644 index de374d4a..00000000 --- a/src/views/configManage/neManage/index.vue +++ /dev/null @@ -1,1275 +0,0 @@ - - - - - diff --git a/src/views/dashboard/overview/components/UserActivity/index.vue b/src/views/dashboard/overview/components/UserActivity/index.vue index 1a2af1eb..1cb9d6c9 100644 --- a/src/views/dashboard/overview/components/UserActivity/index.vue +++ b/src/views/dashboard/overview/components/UserActivity/index.vue @@ -77,8 +77,12 @@ onMounted(() => {
{{ t('views.dashboard.overview.userActivity.time') }}:  - - {{ parseDateToStr(item.data.releaseTime * 1000) }} + + {{ + typeof item.data.releaseTime === 'number' + ? parseDateToStr(+item.data.releaseTime * 1000) + : item.data.releaseTime + }}
@@ -203,7 +207,11 @@ onMounted(() => {
{{ t('views.dashboard.overview.userActivity.time') }}: - {{ parseDateToStr(+item.data?.timestamp * 1000) }} + {{ + typeof item.data?.timestamp === 'number' + ? parseDateToStr(+item.data?.timestamp * 1000) + : item.data?.timestamp + }}
diff --git a/src/views/dashboard/smscCDR/index.vue b/src/views/dashboard/smscCDR/index.vue index c2ec8bda..283ce1f0 100644 --- a/src/views/dashboard/smscCDR/index.vue +++ b/src/views/dashboard/smscCDR/index.vue @@ -704,58 +704,62 @@ onBeforeUnmount(() => { diff --git a/src/views/monitor/topologyArchitecture/index.vue b/src/views/monitor/topologyArchitecture/index.vue index 289a4ba1..b7f25f9b 100644 --- a/src/views/monitor/topologyArchitecture/index.vue +++ b/src/views/monitor/topologyArchitecture/index.vue @@ -92,13 +92,13 @@ const graphNodeMenu = new Menu({ ${neState.neName ?? '--'}
- > ${t('views.configManage.neManage.restart')} + > ${t('views.ne.common.restart')}
- > ${t('views.configManage.neManage.stop')} + > ${t('views.ne.common.stop')}
- > ${t('views.configManage.neManage.log')} + > ${t('views.ne.common.log')}
`; diff --git a/src/views/ne/neSoftware/components/EditModal.vue b/src/views/ne/neSoftware/components/EditModal.vue index b7439d8f..0afe1a5e 100644 --- a/src/views/ne/neSoftware/components/EditModal.vue +++ b/src/views/ne/neSoftware/components/EditModal.vue @@ -166,8 +166,8 @@ function fnBeforeUploadFile(file: FileType) { const suff = fileName.substring(fileName.lastIndexOf('.')); if (!['.deb', '.rpm'].includes(suff)) { message.error( - t('views.configManage.softwareManage.onlyAble', { - fileText: '(.deb、.rpm)', + t('views.ne.neSoftware.fileTypeNotEq', { + txt: '(.deb、.rpm)', }), 3 ); @@ -238,8 +238,8 @@ function fnBeforeUploadFileDep(file: FileType) { const suff = fileName.substring(fileName.lastIndexOf('.')); if (!['.deb', '.rpm'].includes(suff)) { message.error( - t('views.configManage.softwareManage.onlyAble', { - fileText: '(.deb、.rpm)', + t('views.ne.neSoftware.fileTypeNotEq', { + txt: '(.deb、.rpm)', }), 3 ); diff --git a/src/views/ne/neSoftware/components/UploadMoreFile.vue b/src/views/ne/neSoftware/components/UploadMoreFile.vue index ac55d5c8..f3fee8ec 100644 --- a/src/views/ne/neSoftware/components/UploadMoreFile.vue +++ b/src/views/ne/neSoftware/components/UploadMoreFile.vue @@ -171,8 +171,8 @@ function fnBeforeUploadFile(file: FileType) { const suff = fileName.substring(fileName.lastIndexOf('.')); if (!['.deb', '.rpm'].includes(suff)) { message.error( - t('views.configManage.softwareManage.onlyAble', { - fileText: '(.deb、.rpm)', + t('views.ne.neSoftware.fileTypeNotEq', { + txt: '(.deb、.rpm)', }), 3 ); @@ -286,8 +286,8 @@ function fnBeforeUploadFileDep(file: FileType) { const suff = fileName.substring(fileName.lastIndexOf('.')); if (!['.deb', '.rpm'].includes(suff)) { message.error( - t('views.configManage.softwareManage.onlyAble', { - fileText: '(.deb、.rpm)', + t('views.ne.neSoftware.fileTypeNotEq', { + txt: '(.deb、.rpm)', }), 3 ); diff --git a/src/views/perfManage/perfThreshold/index.vue b/src/views/perfManage/perfThreshold/index.vue index 898ef07f..30d13694 100644 --- a/src/views/perfManage/perfThreshold/index.vue +++ b/src/views/perfManage/perfThreshold/index.vue @@ -391,9 +391,7 @@ function fnRecordRun(row: Record) { threRun(row).then(res => { if (res.code === RESULT_CODE_SUCCESS) { message.success({ - content: t('common.msgSuccess', { - msg: t('views.configManage.softwareManage.runBtn'), - }), + content: 'Run', key, duration: 2, }); @@ -610,7 +608,7 @@ onMounted(() => { ) { taskRun(row).then(res => { if (res.code === RESULT_CODE_SUCCESS) { message.success({ - content: t('common.msgSuccess', { - msg: t('views.configManage.softwareManage.runBtn'), - }), + content: 'Run', key, duration: 2, }); @@ -861,7 +859,7 @@ onMounted(() => { > - {{ t('views.configManage.softwareManage.runBtn') }} + Run diff --git a/src/views/system/quick-start/components/NeInfoConfig.vue b/src/views/system/quick-start/components/NeInfoConfig.vue index b5cdd41c..d3457e23 100644 --- a/src/views/system/quick-start/components/NeInfoConfig.vue +++ b/src/views/system/quick-start/components/NeInfoConfig.vue @@ -230,7 +230,7 @@ function fnNeTypeChange(v: any, data: any) { function fnModalVisibleByEdit(record?: any) { if (!record) { //modalStateFrom.resetFields(); - modalState.title = t('views.configManage.neManage.addNe'); + modalState.title = t('views.ne.neInfo.addTitle'); const neId = `${new Date().getMilliseconds()}`.padStart(3, '0'); modalState.from = { id: undefined, @@ -287,7 +287,7 @@ function fnModalVisibleByEdit(record?: any) { hide(); if (res.code === RESULT_CODE_SUCCESS) { Object.assign(modalState.from, res.data); - modalState.title = t('views.configManage.neManage.editNe'); + modalState.title = t('views.ne.neInfo.editTitle'); modalState.openByEdit = true; } else { message.error(t('common.getInfoFail'), 2);