i18n dashboard

This commit is contained in:
2022-03-15 16:58:48 +08:00
parent 2351e96c9e
commit 9eea286c08
6 changed files with 47 additions and 11 deletions

View File

@@ -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 @@
<el-card class="dashboard-main">
<el-row class="dashboard-title">
<div class="dashboard-header-line" />
<div class="dashboard-header-title">WMS库存信息</div>
<div class="dashboard-header-title">{{ $t('module.dashboard.title') }}</div>
</el-row>
<el-row class="dashboard-legend">
<div v-for="item in cassetteStatusList" :key="'cassette' + item.id" class="dashboard-legend-cassette">
@@ -24,7 +24,7 @@
</div>
<div class="dashboard-legend-search">
<el-select v-model="current" size="mini" placeholder="请选择库存范围" @change="handleChange">
<el-option v-for="item in totalPage" :key="'select' + item" :label="'第' + item + '页'" :value="item" />
<el-option v-for="item in totalPage" :key="'select' + item" :label="$t('module.dashboard.pageHeader') + item + $t('module.dashboard.pageFooter')" :value="item" />
</el-select>
</div>
</el-row>
@@ -41,7 +41,7 @@
</el-col>
</el-row>
<div class="dashboard-layout-footer">
{{ '第' + rowIndex[index] + '(' + ((current - 1) * 4 + item) + ')' }}
{{ $t(rowIndex[index]) + '(' + ((current - 1) * 4 + item) + ')' }}
</div>
</el-col>
</el-row>
@@ -68,7 +68,7 @@
</el-col>
</el-row>
<div class="dashboard-layout-footer">
{{ '第' + rowIndex[index] + '(' + ((current - 1) * 4 + item) + ')' }}
{{ $t(rowIndex[index]) + '(' + ((current - 1) * 4 + item) + ')' }}
</div>
</el-col>
</el-row>

View File

@@ -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']
}