diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 09616eef..589d9108 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -601,7 +601,7 @@ export default { ipAddrPlease: 'Please enter the IP address of the network element', ipAddrTip: "Support IPV4/IPV6, synchronized change of configuration address", port: 'Port', - portTip: "Network element default:33030", + portTip: "Network element port default:33030", serialNum: 'Serial Number', expiryDate: 'Expiry Date', normalcy: 'Normal', @@ -719,7 +719,7 @@ export default { status: "License Status", change: "Change License", reload: "Refresh Info", - reloadTip: "Confirmed to refresh the [{txt}] license information?", + reloadTip: "Confirmed to refresh license information?", reloadBatch: "Batch Refresh", reloadBatchTip: "Do you do an information refresh on checked records?", updateTtile: "Update License", @@ -727,6 +727,8 @@ export default { activationRequestCode: "License Activation Code", licensePath: "License File", licensePathTip: "Please upload license file", + upload: 'Upload', + uploadBatch: "Upload License", }, neConfPara5G: { title: 'Save Info', @@ -1872,7 +1874,8 @@ export default { finish: 'Complete Setup', stepPrev: 'Previous', stepNext: 'Next', - + exit: 'Exit', + save: 'Save Info', sysTitle: 'System Configuration', sysAdmin: 'Administrator', sysInfo: 'System Info', @@ -1887,13 +1890,37 @@ export default { sysPrevTip: 'Confirmed to go back to the previous step?', sysNextNe: 'Confirming that you want to do a network element installation?', sysNextDone: 'Confirmed to skip the network element installation?', - + stepNeInfoTitle: "Service Configuration", + stepNeInfoDesc: "Setting the service terminal corresponding to a network element", + stepNeInfoStepPrev: 'Confirming that you want to exit the network element installation step?', + stepNeInfoStepNext: 'Confirm that you want to proceed to the next step to configure the parameters of the network element?', + stepPara5GTitle: "Configuration Parameter", + stepPara5GDesc: "Setting network element global parameter information", + stepPara5GStepPrev: 'Confirm that you want to abandon the current change and return to the previous step?', + stepPara5GStepNext: 'Confirm that you want to proceed to the next step for the network element service installation?', + stepInstallTitle: "Service Install", + stepInstallDesc: "Installation of network element services to service terminals", + stepInstallStepPrev: 'Confirm that you want to abandon the current change and return to the previous step?', + stepInstallStepNext: 'Confirm that you want to proceed to the next step for network element license authorization?', + stepInstallText: 'Select Install', + stepInstallTip: 'Confirm the installation of the new version of the chosen Net Meta?', + stepInstallModal: 'Network Element For Install', + stepLicenseTitle: "Service License", + stepLicenseDesc: "Obtaining a license activation code for authorization authentication", + stepLicenseReload: 'Select Refresh', + stepLicenseReloadTip: 'Confirm refreshing selected license information?', + stepLicenseDownCode: 'Select Download Activation Code', + stepLicenseDownCodeTip: 'Confirmed to download the selected network element license activation code to a text file?', + stepLicenseStepPrev: 'Confirm that you want to abandon the current change and return to the previous step?', + stepLicenseStepNext: 'Confirmed to end the network element installation step?', + stepLicenseStepNext2: 'Please download the Net Element License Authorization Code file to save it and contact the Net Element vendor to get the authorization license', + stepLicenseEnd: 'End', doneTitle: "Completing the Configuration", doneTip: 'Please enter the system and configure it as appropriate.', doneNETitle: 'Configuration of the network element installation has been performed', - doneNEDesc: 'If there are some abnormal network elements, please enter the system and configure it by yourself.', - doneSkipTitle: 'No installation configuration of network elements', - doneSkipDesc: 'The system will default to the initial network element information, you can modify the information yourself', + doneNEDesc: 'In case of abnormal network elements, the license can be reinstalled in the system', + doneSkipTitle: 'No network element installation configuration', + doneSkipDesc: 'The system will initialize the network element information by default, which can be modified or installed within the system.', donePrevTip: 'Confirmed to go back to the previous step?', doneOkTip: 'Confirm that you have completed the setup and started using it?', }, diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index 5743306f..293fac25 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -597,11 +597,11 @@ export default { rmUidTip: "用于网元日志、告警、指标等数据上报的标记", neName: '网元名称', neNamePlease: '请输入网元名称', - ipAddr: '网元服务IP', - ipAddrPlease: '请输入网元IP地址', + ipAddr: '服务IP', + ipAddrPlease: '请输入网元服务IP地址', ipAddrTip: "支持IPV4/IPV6,同步变更配置地址", - port: '网元服务端口', - portTip: "网元默认:33030", + port: '服务端口', + portTip: "网元服务端口,默认:33030", serialNum: '序列号', expiryDate: '许可证到期日期', normalcy: '正常', @@ -719,7 +719,7 @@ export default { status: "许可证状态", change: "变更许可证", reload: "刷新信息", - reloadTip: "确认要刷新【{txt}】许可证信息吗?", + reloadTip: "确认要刷新许可证信息吗?", reloadBatch: "批量刷新", reloadBatchTip: "对勾选的记录进行信息刷新吗?", updateTtile: "更新许可证", @@ -727,6 +727,8 @@ export default { activationRequestCode: "许可激活码", licensePath: "许可证文件", licensePathTip: "请上传许可证文件", + upload: '上传', + uploadBatch: "上传许可证", }, neConfPara5G: { title: '保存信息', @@ -1872,7 +1874,8 @@ export default { finish: '完成设置', stepPrev: '上一步', stepNext: '下一步', - + exit: '退出', + save: '保存信息', sysTitle: '系统配置', sysAdmin: '管理员', sysInfo: '系统信息', @@ -1887,13 +1890,37 @@ export default { sysPrevTip: '确认要返回上一个步骤吗?', sysNextNe: '确认要进行网元安装吗?', sysNextDone: '确认要跳过网元安装吗?', - + stepNeInfoTitle: "网元服务配置", + stepNeInfoDesc: "设置网元对应的服务终端", + stepNeInfoStepPrev: '确认要退出网元安装步骤吗?', + stepNeInfoStepNext: '确认要下一步进行网元配置参数?', + stepPara5GTitle: "网元配置参数", + stepPara5GDesc: "设置网元全局参数信息", + stepPara5GStepPrev: '确认要放弃当前变更返回上一步吗?', + stepPara5GStepNext: '确认要下一步进行网元服务安装吗?', + stepInstallTitle: "网元服务安装", + stepInstallDesc: "将网元服务安装到服务终端", + stepInstallStepPrev: '确认要放弃当前变更返回上一步吗?', + stepInstallStepNext: '确认要下一步进行网元许可授权吗?', + stepInstallText: '选择安装', + stepInstallTip: '确认安装选择的网元新版本吗?', + stepInstallModal: '网元进行安装', + stepLicenseTitle: "网元许可授权", + stepLicenseDesc: "获取网元许可激活码进行授权认证", + stepLicenseReload: '选择刷新许可证', + stepLicenseReloadTip: '确认刷新选择的许可证信息吗?', + stepLicenseDownCode: '选择下载网元许可激活码', + stepLicenseDownCodeTip: '确认下载选择的网元许可激活码到文本文件吗?', + stepLicenseStepPrev: '确认要放弃当前变更返回上一步吗?', + stepLicenseStepNext: '确认要结束网元安装步骤吗?', + stepLicenseStepNext2: '请下载网元许可授权码文件保存,并联系网元厂商获取授权许可证', + stepLicenseEnd: '结束', doneTitle: "完成配置", doneTip: '请进入系统后,根据情况进行更多相关配置', doneNETitle: '已经进行网元安装配置', - doneNEDesc: '如有部分异常网元请进入系统后自行配置', - doneSkipTitle: '未进行安装配置网元', - doneSkipDesc: '系统将会默认初始网元信息,可自行修改信息', + doneNEDesc: '如有异常网元,可在系统内重新安装授权许可', + doneSkipTitle: '未进行网元安装配置', + doneSkipDesc: '系统将会默认初始网元信息,可在系统内自行修改或进行安装', donePrevTip: '确认要返回上一个步骤吗?', doneOkTip: '确认完成设置并开始使用吗?', }, diff --git a/src/views/system/quick-start/components/NeInfoConfig.vue b/src/views/system/quick-start/components/NeInfoConfig.vue index d0fe787f..bb8177d3 100644 --- a/src/views/system/quick-start/components/NeInfoConfig.vue +++ b/src/views/system/quick-start/components/NeInfoConfig.vue @@ -59,7 +59,7 @@ function fnTabClose(key: string) { const item = tabState.panes[tabIndex]; Modal.confirm({ title: t('common.tipTitle'), - content: `确认要删除${item.data.neType}@${item.data.neId}网元信息?`, + content: `${item.data.neName} ${t('views.ne.neInfo.delTip')}`, onOk() { delNeInfo(item.data.id).finally(() => { tabState.panes.splice(tabIndex, 1); @@ -99,8 +99,8 @@ function fnTabCreate() { addr: '', port: 22, user: '', - authMode: '2', - password: 'user', + authMode: '0', + password: '', privateKey: '', passPhrase: '', remark: '', @@ -153,7 +153,7 @@ function fnHostTest(row: Record) { /**测试主机连接-免密直连 */ function fnHostAuthorized(row: Record) { - if (tabState.confirmLoading) return; + if (tabState.confirmLoading || !row.addr) return; Modal.confirm({ title: t('common.tipTitle'), @@ -255,7 +255,7 @@ function fnSaveFinish(pane: any) { tabItem.status = true; } message.success({ - content: '操作成功', + content: t('common.operateOk'), duration: 3, }); } else { @@ -288,7 +288,7 @@ function fnSaveFinishFailed(e: any) { function fnStepPrev() { Modal.confirm({ title: t('common.tipTitle'), - content: '确认要退出网元安装吗?', + content: t('views.system.quickStart.stepNeInfoStepPrev'), onOk() { fnToStepName('SystemConfig'); }, @@ -300,7 +300,7 @@ function fnStepNext(stepName: 'NeInfoConfigPara5G') { if (stepName === 'NeInfoConfigPara5G') { Modal.confirm({ title: t('common.tipTitle'), - content: '确认要下一步进行网元公共参数的设置?', + content: t('views.system.quickStart.stepNeInfoStepNext'), onOk() { fnToStepName('NeInfoConfigPara5G'); }, @@ -370,7 +370,9 @@ onMounted(() => {