From c63dc0584ab324110a6d2be6387ba86d88de90dc Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Tue, 28 Apr 2026 18:01:32 +0800 Subject: [PATCH] =?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 --- cclqms-vue/src/i18n/locales/cn.js | 77 +++++++++++++++++++ cclqms-vue/src/i18n/locales/en.js | 77 +++++++++++++++++++ cclqms-vue/src/router/index.js | 4 +- cclqms-vue/src/views/common/404.vue | 6 +- cclqms-vue/src/views/common/home.vue | 4 +- cclqms-vue/src/views/common/theme.vue | 12 +-- cclqms-vue/src/views/main-content.vue | 16 ++-- .../src/views/main-navbar-update-language.vue | 18 +++-- .../src/views/main-navbar-update-password.vue | 30 ++++---- cclqms-vue/src/views/main-navbar.vue | 37 +++++---- cclqms-vue/src/views/main-sidebar-hover.vue | 6 +- cclqms-vue/src/views/main-sidebar.vue | 4 +- cclqms-vue/src/views/main.vue | 2 +- 13 files changed, 228 insertions(+), 65 deletions(-) diff --git a/cclqms-vue/src/i18n/locales/cn.js b/cclqms-vue/src/i18n/locales/cn.js index 31b2a9c..52abdeb 100644 --- a/cclqms-vue/src/i18n/locales/cn.js +++ b/cclqms-vue/src/i18n/locales/cn.js @@ -9,6 +9,83 @@ module.exports = { kr: '韩文' }, qc: require('./qc.cn.js'), + main: { + appName: 'CCLQMS管理系统', + abbreviation: '旭捷', + help: '帮助', + setting: '设置', + languageSetting: '语言设置', + userSetting: '用户设置', + updatePassword: '修改密码', + updateDefaultLanguage: '修改默认语言', + cssSetting: '主题设置', + logout: '退出', + homePage: '首页', + loading: '拼命加载中', + languageName: { + cn: '中文', + en: '英文' + }, + tabs: { + closeCurrent: '关闭当前标签页', + closeOther: '关闭其它标签页', + closeAll: '关闭全部标签页', + refreshCurrent: '刷新当前标签页' + }, + common: { + tip: '提示', + confirm: '确定', + cancel: '取消', + operationSuccess: '操作成功' + }, + menuMode: { + toClassic: '切换到传统菜单', + toHover: '切换到悬浮菜单', + switchedClassic: '已切换到传统菜单模式', + switchedHover: '已切换到悬浮菜单模式' + }, + sidebar: { + searchPlaceholder: '搜索', + menuNoPage: '菜单 "{menuName}" 暂无对应页面' + }, + updateLanguageDialog: { + title: '修改用户默认语言', + account: '账号', + currentLanguage: '当前语言', + newLanguage: '新语言' + }, + updatePasswordDialog: { + title: '修改密码', + account: '账号', + oldPassword: '原密码', + newPassword: '新密码', + confirmPassword: '确认密码', + confirmMismatch: '确认密码与新密码不一致', + oldPasswordRequired: '原密码不能为空', + newPasswordRequired: '新密码不能为空', + confirmPasswordRequired: '确认密码不能为空' + }, + logoutDialog: { + message: '确定进行[退出]操作?' + }, + home: { + welcome: '欢迎:{userName}!!!', + welcomeLog: '欢迎使用 旭捷管理系统!!!' + }, + theme: { + title: '布局设置', + navbarType: '导航条类型', + sidebarSkin: '侧边栏皮肤', + effects: '特效', + on: '开启', + off: '关闭' + }, + notFound: { + description: '抱歉!您访问的页面失联啦 ...', + back: '返回上一页', + goHome: '进入首页' + } + }, // // 公用属性 // common: { diff --git a/cclqms-vue/src/i18n/locales/en.js b/cclqms-vue/src/i18n/locales/en.js index 3394d90..d689679 100644 --- a/cclqms-vue/src/i18n/locales/en.js +++ b/cclqms-vue/src/i18n/locales/en.js @@ -11,6 +11,83 @@ module.exports = { kr: 'en-kr' }, qc: require('./qc.en.js'), + main: { + appName: 'CCLQMS Management System', + abbreviation: 'XJ', + help: 'Help', + setting: 'Settings', + languageSetting: 'Language Settings', + userSetting: 'User Settings', + updatePassword: 'Change Password', + updateDefaultLanguage: 'Change Default Language', + cssSetting: 'Theme Settings', + logout: 'Log Out', + homePage: 'Home', + loading: 'Loading...', + languageName: { + cn: 'Chinese', + en: 'English' + }, + tabs: { + closeCurrent: 'Close Current Tab', + closeOther: 'Close Other Tabs', + closeAll: 'Close All Tabs', + refreshCurrent: 'Refresh Current Tab' + }, + common: { + tip: 'Tip', + confirm: 'Confirm', + cancel: 'Cancel', + operationSuccess: 'Operation successful' + }, + menuMode: { + toClassic: 'Switch to classic menu', + toHover: 'Switch to hover menu', + switchedClassic: 'Switched to classic menu mode', + switchedHover: 'Switched to hover menu mode' + }, + sidebar: { + searchPlaceholder: 'Search', + menuNoPage: 'Menu "{menuName}" has no mapped page' + }, + updateLanguageDialog: { + title: 'Change User Default Language', + account: 'Account', + currentLanguage: 'Current Language', + newLanguage: 'New Language' + }, + updatePasswordDialog: { + title: 'Change Password', + account: 'Account', + oldPassword: 'Current Password', + newPassword: 'New Password', + confirmPassword: 'Confirm Password', + confirmMismatch: 'Confirm password does not match new password', + oldPasswordRequired: 'Current password is required', + newPasswordRequired: 'New password is required', + confirmPasswordRequired: 'Confirm password is required' + }, + logoutDialog: { + message: 'Are you sure you want to log out?' + }, + home: { + welcome: 'Welcome: {userName}!!!', + welcomeLog: 'Welcome to XJ Management System!!!' + }, + theme: { + title: 'Layout Settings', + navbarType: 'Navbar Type', + sidebarSkin: 'Sidebar Skin', + effects: 'Effects', + on: 'On', + off: 'Off' + }, + notFound: { + description: 'Sorry! The page you visited is unavailable ...', + back: 'Back', + goHome: 'Go Home' + } + }, // common: { // search: "search", // add: "add", diff --git a/cclqms-vue/src/router/index.js b/cclqms-vue/src/router/index.js index 19aa3e6..503540b 100644 --- a/cclqms-vue/src/router/index.js +++ b/cclqms-vue/src/router/index.js @@ -34,8 +34,8 @@ const mainRoutes = { // 1. isTab: 是否通过tab展示内容, true: 是, false: 否 // 2. iframeUrl: 是否通过iframe嵌套展示内容, '以http[s]://开头': 是, '': 否 // 提示: 如需要通过iframe嵌套展示内容, 但不通过tab打开, 请自行创建组件使用iframe处理! - { path: '/home', component: _import('common/home'), name: 'home', meta: { title: '首页' } }, - { path: '/theme', component: _import('common/theme'), name: 'theme', meta: { title: '主题' } }, + { path: '/home', component: _import('common/home'), name: 'home', meta: { title: 'main.homePage' } }, + { path: '/theme', component: _import('common/theme'), name: 'theme', meta: { title: 'main.cssSetting' } }, { path: '/demo-echarts', component: _import('demo/echarts'), name: 'demo-echarts', meta: { title: 'demo-echarts', isTab: true } }, // { path: '/demo-ueditor', component: _import('demo/ueditor'), name: 'demo-ueditor', meta: { title: 'demo-ueditor', isTab: true } } { path: '/customer_report_show', component: _import('modules/report/customer_report_show'), name: 'report', meta: { title: '自定义报表展示' } },//2022-04-20 自定义报表路径 diff --git a/cclqms-vue/src/views/common/404.vue b/cclqms-vue/src/views/common/404.vue index 3b75cfb..3307821 100644 --- a/cclqms-vue/src/views/common/404.vue +++ b/cclqms-vue/src/views/common/404.vue @@ -3,9 +3,9 @@

400

-

抱歉!您访问的页面失联啦 ...

- 返回上一页 - 进入首页 +

+ {{ $t('main.notFound.back') }} + {{ $t('main.notFound.goHome') }}
diff --git a/cclqms-vue/src/views/common/home.vue b/cclqms-vue/src/views/common/home.vue index e029d28..b986be1 100644 --- a/cclqms-vue/src/views/common/home.vue +++ b/cclqms-vue/src/views/common/home.vue @@ -2,7 +2,7 @@

CCLQMS

@@ -14,7 +14,7 @@ export default { methods: { languageRefresh(){ - console.log("欢迎使用 旭捷管理系统!!!") + console.log(this.$t('main.home.welcomeLog')) }, languagePack() { // searchSysLanguagePack().then(({data}) => { diff --git a/cclqms-vue/src/views/common/theme.vue b/cclqms-vue/src/views/common/theme.vue index 3b1e1a6..aada2a3 100644 --- a/cclqms-vue/src/views/common/theme.vue +++ b/cclqms-vue/src/views/common/theme.vue @@ -1,22 +1,22 @@