From b41d3c3882c1fa63da47ec995929836ba189a4ed Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 10 Nov 2023 09:50:10 +0800 Subject: [PATCH 1/6] =?UTF-8?q?style:=20=E8=A1=A5=E5=85=85=E8=B7=9F?= =?UTF-8?q?=E8=B8=AA=E6=A0=8F=E7=9B=AE=E9=A1=B5=E9=9D=A2=E5=A4=9A=E8=AF=AD?= =?UTF-8?q?=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/locales/en-US.ts | 2 ++ src/i18n/locales/zh-CN.ts | 2 ++ src/views/traceManage/analysis/index.vue | 2 +- src/views/traceManage/pcap/index.vue | 4 +-- src/views/traceManage/task/index.vue | 38 ++++++++++++++---------- 5 files changed, 29 insertions(+), 19 deletions(-) diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index a130eec0..05c3c949 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -360,6 +360,8 @@ export default { 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', + execUPFCmdA: 'Suitable for other network element anomalies', + execUPFCmdB: 'Suitable for UPF anomalies', }, task: { neTypePlease: 'Query network element type', diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index a232684f..3df3b9c1 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -360,6 +360,8 @@ export default { execUPFStart: '执行成功, 请根据情况停止抓包', execUPFStopA: '已经停止, 请根据情况开始抓包', execUPFStop: '执行成功, 抓包已停止', + execUPFCmdA: '适合其他网元异常,UPF配合抓包的情况', + execUPFCmdB: '适合UPF异常需要抓包分析的情况', }, task: { neTypePlease: '请选择网元类型', diff --git a/src/views/traceManage/analysis/index.vue b/src/views/traceManage/analysis/index.vue index 73eb8ddd..c88be98f 100644 --- a/src/views/traceManage/analysis/index.vue +++ b/src/views/traceManage/analysis/index.vue @@ -454,7 +454,7 @@ onMounted(() => { From e4b504825dc5124e228908aa2f3c6c7771af7680 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 10 Nov 2023 10:03:37 +0800 Subject: [PATCH 2/6] =?UTF-8?q?style:=20=E5=B8=83=E5=B1=80=E5=A4=9A?= =?UTF-8?q?=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 | 19 ++++++++++++++++++- src/i18n/locales/zh-CN.ts | 19 ++++++++++++++++++- src/layouts/components/RightContent.vue | 8 ++++---- src/layouts/components/Tabs.vue | 18 +++++++++++++----- 4 files changed, 53 insertions(+), 11 deletions(-) diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 05c3c949..e7c59619 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -58,7 +58,7 @@ export default { } }, - // 导入 + // 组件 components: { UploadModal:{ uploadTitle:'Data Import', @@ -88,6 +88,23 @@ export default { codeSmsSend: 'Successfully sent, please pay attention to checking the SMS', }, + // 布局 + loayouts: { + rightContent: { + fullscreen: "Full Screen", + logout: "Logout", + profile: "Profile", + settings: "Settings", + }, + tabs: { + reload: "Refresh current", + more: "More Options", + closeCurrent: "Close Current", + closeOther: "Close Other", + closeAll: "Close All", + } + }, + // 页面 views: { index: { diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index 3df3b9c1..baf8a8d8 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -58,7 +58,7 @@ export default { } }, - // 导入 + // 组件 components: { UploadModal:{ uploadTitle:'数据导入', @@ -88,6 +88,23 @@ export default { codeSmsSend: '发送成功,请注意查看短信', }, + // 布局 + loayouts: { + rightContent: { + fullscreen: "全屏显示", + logout: "退出登录", + profile: "个人中心", + settings: "个人设置", + }, + tabs: { + reload: "刷新当前", + more: "更多选项", + closeCurrent: "关闭当前", + closeOther: "关闭其他", + closeAll: "关闭全部", + } + }, + // 页面 views: { index: { diff --git a/src/layouts/components/RightContent.vue b/src/layouts/components/RightContent.vue index 78972327..924416c5 100644 --- a/src/layouts/components/RightContent.vue +++ b/src/layouts/components/RightContent.vue @@ -50,7 +50,7 @@ function fnChangeLocale(e: any) { - + diff --git a/src/layouts/components/Tabs.vue b/src/layouts/components/Tabs.vue index df9df2d5..371cac10 100644 --- a/src/layouts/components/Tabs.vue +++ b/src/layouts/components/Tabs.vue @@ -3,6 +3,8 @@ import IconFont from '@/components/IconFont/index.vue'; import { computed, watch } from 'vue'; import { useRouter } from 'vue-router'; import useTabsStore from '@/store/modules/tabs'; +import useI18n from '@/hooks/useI18n'; +const { t } = useI18n(); const tabsStore = useTabsStore(); const router = useRouter(); @@ -126,7 +128,7 @@ watch(router.currentRoute, v => tabsStore.tabOpen(v), { immediate: true }); @@ -1207,7 +1210,7 @@ onMounted(() => { :value="modalState.from.postIds" disabled mode="multiple" - placeholder="请选择用户岗位" + :placeholder="t('views.system.user.userWorkPlease')" option-label-prop="postName" :options="modalState.options.posts" :field-names="{ label: 'postName', value: 'postId' }" @@ -1238,9 +1241,9 @@ onMounted(() => {