From 9eea286c08e5f98e1e707cf149607acbb88abf26 Mon Sep 17 00:00:00 2001 From: gtz217 <535262213@qq.com> Date: Tue, 15 Mar 2022 16:58:48 +0800 Subject: [PATCH] i18n dashboard --- src/lang/i18n/en/module/dashboard.js | 16 ++++++++++++++++ src/lang/i18n/en/module/index.js | 6 ++++-- src/lang/i18n/zh/module/dashboard.js | 16 ++++++++++++++++ src/lang/i18n/zh/module/index.js | 6 ++++-- src/views/dashboard/index.vue | 10 +++++----- src/views/dashboard/testdata.js | 4 ++-- 6 files changed, 47 insertions(+), 11 deletions(-) create mode 100644 src/lang/i18n/en/module/dashboard.js create mode 100644 src/lang/i18n/zh/module/dashboard.js diff --git a/src/lang/i18n/en/module/dashboard.js b/src/lang/i18n/en/module/dashboard.js new file mode 100644 index 0000000..2029cf6 --- /dev/null +++ b/src/lang/i18n/en/module/dashboard.js @@ -0,0 +1,16 @@ +/* + * @Author: gtz + * @Date: 2022-03-15 16:42:34 + * @LastEditors: gtz + * @LastEditTime: 2022-03-15 16:58:26 + * @Description: file content + * @FilePath: \mt-ck-wms-ui\src\lang\i18n\en\module\dashboard.js + */ + +export default { + first: 'First Row', + second: 'Second Row', + title: 'WMS Inventory Information', + pageHeader: 'No.', + pageFooter: ' Page' +} diff --git a/src/lang/i18n/en/module/index.js b/src/lang/i18n/en/module/index.js index c0d70e8..4be86f7 100644 --- a/src/lang/i18n/en/module/index.js +++ b/src/lang/i18n/en/module/index.js @@ -2,7 +2,7 @@ * @Author: gtz * @Date: 2021-03-04 16:12:46 * @LastEditors: gtz - * @LastEditTime: 2021-04-22 19:49:39 + * @LastEditTime: 2022-03-15 16:44:11 * @Description: file content */ @@ -17,6 +17,7 @@ import quality from './quality' import factory from './factory' import formManage from './formManage' import report from './report' +import dashboard from './dashboard' export default { basicData, @@ -29,5 +30,6 @@ export default { quality, factory, formManage, - report + report, + dashboard } diff --git a/src/lang/i18n/zh/module/dashboard.js b/src/lang/i18n/zh/module/dashboard.js new file mode 100644 index 0000000..6b4bdb9 --- /dev/null +++ b/src/lang/i18n/zh/module/dashboard.js @@ -0,0 +1,16 @@ +/* + * @Author: gtz + * @Date: 2022-03-15 16:42:34 + * @LastEditors: gtz + * @LastEditTime: 2022-03-15 16:58:30 + * @Description: file content + * @FilePath: \mt-ck-wms-ui\src\lang\i18n\zh\module\dashboard.js + */ + +export default { + first: '第一排', + second: '第二排', + title: 'WMS库存信息', + pageHeader: '第', + pageFooter: '页' +} diff --git a/src/lang/i18n/zh/module/index.js b/src/lang/i18n/zh/module/index.js index 7fb206d..3ed9beb 100644 --- a/src/lang/i18n/zh/module/index.js +++ b/src/lang/i18n/zh/module/index.js @@ -2,7 +2,7 @@ * @Author: gtz * @Date: 2021-03-04 16:12:46 * @LastEditors: gtz - * @LastEditTime: 2021-04-22 19:49:47 + * @LastEditTime: 2022-03-15 16:44:05 * @Description: file content */ @@ -17,6 +17,7 @@ import quality from './quality' import factory from './factory' import formManage from './formManage' import report from './report' +import dashboard from './dashboard' export default { basicData, @@ -29,5 +30,6 @@ export default { quality, factory, formManage, - report + report, + dashboard } diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index f7f4cf3..5def9bf 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -2,7 +2,7 @@ * @Author: gtz * @Date: 2022-03-03 09:16:10 * @LastEditors: gtz - * @LastEditTime: 2022-03-14 16:03:15 + * @LastEditTime: 2022-03-15 16:47:57 * @Description: file content * @FilePath: \mt-ck-wms-ui\src\views\dashboard\index.vue --> @@ -11,7 +11,7 @@
-
WMS库存信息
+
{{ $t('module.dashboard.title') }}
@@ -24,7 +24,7 @@
@@ -41,7 +41,7 @@ @@ -68,7 +68,7 @@ diff --git a/src/views/dashboard/testdata.js b/src/views/dashboard/testdata.js index 3d0c6a4..c13c53b 100644 --- a/src/views/dashboard/testdata.js +++ b/src/views/dashboard/testdata.js @@ -2,7 +2,7 @@ * @Author: gtz * @Date: 2022-03-03 15:47:47 * @LastEditors: gtz - * @LastEditTime: 2022-03-14 16:00:03 + * @LastEditTime: 2022-03-15 16:46:04 * @Description: file content * @FilePath: \mt-ck-wms-ui\src\views\dashboard\testdata.js */ @@ -2604,5 +2604,5 @@ export default { }, current: 1, totalPage: 1, - rowIndex: ['一', '二'] + rowIndex: ['module.dashboard.first', 'module.dashboard.second'] }