From c22ad4e8a3ccf8e64f11c2f664064e975076fca9 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 26 Sep 2023 15:05:58 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=B7=9F=E8=B8=AA=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=A4=9A=E8=AF=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/locales/en-US.ts | 15 ++- src/i18n/locales/zh-CN.ts | 15 ++- src/views/logManage/alarm/index.vue | 120 +++++++++++------------ src/views/logManage/forwarding/index.vue | 120 +++++++++++------------ src/views/logManage/mml/index.vue | 28 +++--- src/views/logManage/operation/index.vue | 38 +++---- src/views/logManage/security/index.vue | 120 +++++++++++------------ src/views/logManage/setting/index.vue | 38 +++---- src/views/traceManage/analysis/index.vue | 38 +++---- src/views/traceManage/pcap/index.vue | 87 ++++++++-------- src/views/traceManage/task/index.vue | 120 +++++++++++------------ 11 files changed, 384 insertions(+), 355 deletions(-) diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 739a9b73..f93a11c7 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -161,7 +161,7 @@ export default { neType: 'IMS Type', }, }, - trace: { + traceManage: { analysis: { imsi: 'IMSI', imsiPlease: 'Please enter IMSI', @@ -184,16 +184,29 @@ export default { pcap: { cardTitle: 'PCAP capture', neType: 'Type', + neTypePlease: 'Please select the type of network element', neIp: 'IP address', capArg: 'Capture parameters', + capArgPlease: 'Please enter tcpdump any support parameters!', capTime: 'Duration in seconds', + capTimePlease: 'Please enter the duration, up to 120 seconds', capLog: 'Execution Log', capDownText: 'Download PCAP file', runText: 'Execute', runTimeText: 'Execute {s} seconds', stopText: 'Interrupt', + capArgUPFPlease: 'Please enter the packet capture command supported by UPF', capStart: 'Start capturing packets', capStop: 'Stop capturing packets', + execTimeout: 'Execution timeout', + execSuccess: 'Execution completed', + execFailed: 'Execution failed', + execBreak: 'break execution', + noFileName: 'Invalid file name', + execUPFStartA: 'Executed, please stop capturing packets according to the situation', + execUPFStart: 'Execution successful, please stop capturing packets according to the situation', + execUPFStopA: 'Stopped, please start capturing packets according to the situation', + execUPFStop: 'Execution successful, packet capture stopped', }, task: { neTypePlease: 'Query network element type', diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index 91abb6fc..1331d47c 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -161,7 +161,7 @@ export default { neType: 'IMS网元类型', }, }, - trace: { + traceManage: { analysis: { imsi: 'IMSI', imsiPlease: '请输入IMSI', @@ -184,16 +184,29 @@ export default { pcap: { cardTitle: 'PCAP捕获', neType: '网元类型', + neTypePlease: '请选择网元类型', neIp: '网元IP地址', capArg: '抓包参数', + capArgPlease: '请输入tcpdump any支持参数!', capTime: "时长(秒's)", + capTimePlease: '请输入持续时长,最长120秒', capLog: '执行日志', capDownText: '下载PCAP文件', runText: '执行', runTimeText: '执行 {s} 秒', stopText: '中断', + capArgUPFPlease: '请输入UPF支持的抓包命令', capStart: '开始抓包', capStop: '停止抓包', + execTimeout: '执行超时', + execSuccess: '执行完成', + execFailed: '执行失败', + execBreak: '中断执行', + noFileName: '无效文件名', + execUPFStartA: '已经执行, 请根据情况停止抓包', + execUPFStart: '执行成功, 请根据情况停止抓包', + execUPFStopA: '已经停止, 请根据情况开始抓包', + execUPFStop: '执行成功, 抓包已停止', }, task: { neTypePlease: '请选择网元类型', diff --git a/src/views/logManage/alarm/index.vue b/src/views/logManage/alarm/index.vue index e0ca205a..8ecafaff 100644 --- a/src/views/logManage/alarm/index.vue +++ b/src/views/logManage/alarm/index.vue @@ -88,28 +88,28 @@ let tableColumns: ColumnsType = [ align: 'center', }, { - title: t('views.trace.task.neType'), + title: t('views.traceManage.task.neType'), dataIndex: 'neType', align: 'center', }, { - title: t('views.trace.task.neID'), + title: t('views.traceManage.task.neID'), dataIndex: 'neId', align: 'center', }, { - title: t('views.trace.task.trackType'), + title: t('views.traceManage.task.trackType'), dataIndex: 'traceType', key: 'traceType', align: 'center', }, { - title: t('views.trace.task.trackType'), + title: t('views.traceManage.task.trackType'), dataIndex: 'accountId', align: 'center', }, { - title: t('views.trace.task.startTime'), + title: t('views.traceManage.task.startTime'), dataIndex: 'startTime', align: 'center', customRender(opt) { @@ -118,7 +118,7 @@ let tableColumns: ColumnsType = [ }, }, { - title: t('views.trace.task.endTime'), + title: t('views.traceManage.task.endTime'), dataIndex: 'endTime', align: 'center', customRender(opt) { @@ -172,15 +172,15 @@ function fnTableSize({ key }: MenuInfo) { */ function fnRecordDelete(id: string) { Modal.confirm({ - title: t('views.trace.task.tipTitle'), - content: t('views.trace.task.delTaskTip', { num: id }), + title: t('views.traceManage.task.tipTitle'), + content: t('views.traceManage.task.delTaskTip', { num: id }), onOk() { const key = 'delTraceTask'; message.loading({ content: t('common.loading'), key }); delTraceTask(id).then(res => { if (res.code === RESULT_CODE_SUCCESS) { message.success({ - content: t('views.trace.task.delTask', { num: id }), + content: t('views.traceManage.task.delTask', { num: id }), key, duration: 2, }); @@ -272,32 +272,32 @@ const modalStateFrom = Form.useForm( traceType: [ { required: true, - message: t('views.trace.task.trackTypePlease'), + message: t('views.traceManage.task.trackTypePlease'), }, ], neId: [ { required: true, - message: t('views.trace.task.neTypePlease'), + message: t('views.traceManage.task.neTypePlease'), }, ], endTime: [ { required: true, - message: t('views.trace.task.rangePickerPlease'), + message: t('views.traceManage.task.rangePickerPlease'), }, ], // 跟踪用户 imsi: [ { required: true, - message: t('views.trace.task.imsiPlease'), + message: t('views.traceManage.task.imsiPlease'), }, ], msisdn: [ { required: true, - message: t('views.trace.task.msisdnPlease'), + message: t('views.traceManage.task.msisdnPlease'), }, ], // 跟踪接口 @@ -305,27 +305,27 @@ const modalStateFrom = Form.useForm( { required: true, pattern: regExpIPv4, - message: t('views.trace.task.srcIpPlease'), + message: t('views.traceManage.task.srcIpPlease'), }, ], dstIp: [ { required: true, pattern: regExpIPv4, - message: t('views.trace.task.dstIpPlease'), + message: t('views.traceManage.task.dstIpPlease'), }, ], interfaces: [ { required: true, - message: t('views.trace.task.interfacesPlease'), + message: t('views.traceManage.task.interfacesPlease'), }, ], signalPort: [ { required: true, pattern: regExpPort, - message: t('views.trace.task.signalPortPlease'), + message: t('views.traceManage.task.signalPortPlease'), }, ], }) @@ -392,10 +392,10 @@ function fnModalVisibleByVive(id: string) { } fnSelectInterfaceInit(res.data.neType); } - modalState.title = t('views.trace.task.viewTask'); + modalState.title = t('views.traceManage.task.viewTask'); modalState.visibleByView = true; } else { - message.error(t('views.trace.task.errorTaskInfo'), 3); + message.error(t('views.traceManage.task.errorTaskInfo'), 3); } }); } @@ -407,7 +407,7 @@ function fnModalVisibleByVive(id: string) { function fnModalVisibleByEdit(id?: string) { if (!id) { modalStateFrom.resetFields(); - modalState.title = t('views.trace.task.addTask'); + modalState.title = t('views.traceManage.task.addTask'); modalState.visibleByEdit = true; } else { if (modalState.confirmLoading) return; @@ -430,10 +430,10 @@ function fnModalVisibleByEdit(id?: string) { } fnSelectInterfaceInit(res.data.neType); } - modalState.title = t('views.trace.task.editTask'); + modalState.title = t('views.traceManage.task.editTask'); modalState.visibleByEdit = true; } else { - message.error(t('views.trace.task.errorTaskInfo'), 3); + message.error(t('views.traceManage.task.errorTaskInfo'), 3); } }); } @@ -532,12 +532,12 @@ onMounted(() => { - + @@ -674,7 +674,7 @@ onMounted(() => { { - + { @@ -708,25 +708,25 @@ onMounted(() => { - + { style="width: 100%" > - + {{ modalState.from.comment }} @@ -764,13 +764,13 @@ onMounted(() => { @@ -778,7 +778,7 @@ onMounted(() => { @@ -787,7 +787,7 @@ onMounted(() => { :options="useNeInfoStore().getNeCascaderOtions" @change="fnNeChange" :allow-clear="false" - :placeholder="t('views.trace.task.neTypePlease')" + :placeholder="t('views.traceManage.task.neTypePlease')" /> @@ -796,19 +796,19 @@ onMounted(() => {