首页国际化
This commit is contained in:
@@ -47,7 +47,7 @@ export default {
|
||||
}
|
||||
// 判断是否为首页
|
||||
if (!this.isDashboard(matched[0])) {
|
||||
matched = [{ path: "/index", meta: { title: "首页" } }].concat(matched)
|
||||
matched = [{ path: "/index", meta: { title: '首页' } }].concat(matched)
|
||||
}
|
||||
this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false)
|
||||
},
|
||||
|
||||
@@ -626,6 +626,23 @@ export default {
|
||||
|
||||
},
|
||||
|
||||
viewsMain: {
|
||||
title: 'homePage',
|
||||
unfinishedInboundTask: 'Unfinished Inbound Task Overview',
|
||||
taskKey: 'Task Key',
|
||||
unfinishedInboundTaskName: 'Unfinished Inbound Task',
|
||||
totalUnfinishedCount: 'Total Unfinished Count',
|
||||
todayUnfinishedCount: 'Today Unfinished Count',
|
||||
finishedInboundTask: 'Finished Inbound Task Overview',
|
||||
finishedInboundTaskName: 'Finished Inbound Task',
|
||||
totalFinishedCount: 'Total Finished Count',
|
||||
todayFinishedCount: 'Today Finished Count',
|
||||
unfinishedOutboundTask: 'Unfinished Outbound Task Overview',
|
||||
unfinishedOutboundTaskName: 'Unfinished Outbound Task',
|
||||
finishedOutboundTask: 'Finished Outbound Task Overview',
|
||||
finishedOutboundTaskName: 'Finished Outbound Task'
|
||||
},
|
||||
|
||||
searchViewStockSecure: {
|
||||
stockId: 'Stock ID',
|
||||
cargoSpaceId: 'Cargo Space ID',
|
||||
|
||||
@@ -633,6 +633,23 @@ export default {
|
||||
|
||||
},
|
||||
|
||||
viewsMain: {
|
||||
title: '首页',
|
||||
unfinishedInboundTask: '未完成入库任务概览',
|
||||
taskKey: '任务键值',
|
||||
unfinishedInboundTaskName: '未完成入库任务',
|
||||
totalUnfinishedCount: '全部未完成数量',
|
||||
todayUnfinishedCount: '今日未完成数量',
|
||||
finishedInboundTask: '已完成入库任务概览',
|
||||
finishedInboundTaskName: '已完成入库任务',
|
||||
totalFinishedCount: '全部已完成数量',
|
||||
todayFinishedCount: '今日已完成数量',
|
||||
unfinishedOutboundTask: '未完成出库任务概览',
|
||||
unfinishedOutboundTaskName: '未完成出库任务',
|
||||
finishedOutboundTask: '已完成出库任务概览',
|
||||
finishedOutboundTaskName: '已完成出库任务'
|
||||
},
|
||||
|
||||
searchViewStockSecure: {
|
||||
stockId: '库存ID',
|
||||
cargoSpaceId: '货位ID',
|
||||
|
||||
@@ -5,6 +5,7 @@ Vue.use(Router)
|
||||
|
||||
/* Layout */
|
||||
import Layout from '@/layout'
|
||||
import i18n from '@/lang'
|
||||
|
||||
/**
|
||||
* Note: 路由配置项
|
||||
@@ -70,7 +71,7 @@ export const constantRoutes = [
|
||||
path: 'index',
|
||||
component: () => import('@/views/index'),
|
||||
name: 'Index',
|
||||
meta: { title: '首页', icon: 'dashboard', affix: true }
|
||||
meta: { title: i18n.t('viewsMain.title'), icon: 'dashboard', affix: true }
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -5,24 +5,24 @@
|
||||
<div class="col-sm-6" style="height: 45vh; padding: 10px;">
|
||||
<el-card class="box-card">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>未完成入库任务概览</span>
|
||||
<span>{{$t('viewsMain.unfinishedInboundTask')}}</span>
|
||||
</div>
|
||||
<el-table
|
||||
:data="table1Data"
|
||||
style="width: 100%"
|
||||
:height="tableHeight"
|
||||
v-loading="loading1">
|
||||
<el-table-column prop="workValue" label="任务键值" />
|
||||
<el-table-column prop="workName" label="未完成入库任务" />
|
||||
<el-table-column prop="workNum" label="全部未完成数量">
|
||||
<el-table-column prop="workValue" :label="$t('viewsMain.taskKey')" /> <!-- 任务键值 -->
|
||||
<el-table-column prop="workName" :label="$t('viewsMain.unfinishedInboundTaskName')" /><!-- 未完成入库任务 -->
|
||||
<el-table-column prop="workNum" :label="$t('viewsMain.totalUnfinishedCount')" ><!-- 全部未完成数量 -->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- {{ Number(scope.row.workNum).toFixed(6) }}-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
<el-table-column prop="by1" label="今日未完成数量">
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- {{ Number(scope.row.by1).toFixed(6) }}-->
|
||||
<!-- </template>-->
|
||||
<el-table-column prop="by1" :label="$t('viewsMain.todayUnfinishedCount')"> <!-- 今日未完成数量 -->
|
||||
<!-- <template slot-scope="scope">
|
||||
{{ Number(scope.row.by1).toFixed(6) }}
|
||||
</template>-->
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-card>
|
||||
@@ -32,23 +32,23 @@
|
||||
<div class="col-sm-6" style="height: 45vh; padding: 10px;">
|
||||
<el-card class="box-card">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>已完成入库任务概览</span>
|
||||
<span>{{$t('viewsMain.finishedInboundTask')}}</span>
|
||||
</div>
|
||||
<el-table
|
||||
:data="table2Data"
|
||||
style="width: 100%"
|
||||
:height="tableHeight"
|
||||
v-loading="loading2">
|
||||
<el-table-column prop="workValue" label="任务键值" />
|
||||
<el-table-column prop="workName" label="已完成入库任务" />
|
||||
<el-table-column prop="workNum" label="全部已完成数量">
|
||||
<el-table-column prop="workValue" :label="$t('viewsMain.taskKey')" /><!-- 任务键值 -->
|
||||
<el-table-column prop="workName" :label="$t('viewsMain.finishedInboundTaskName')" /><!-- 已完成入库任务 -->
|
||||
<el-table-column prop="workNum" :label="$t('viewsMain.totalFinishedCount')" ><!-- 全部已完成数量 -->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- {{ Number(scope.row.workNum).toFixed(6) }}-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
<el-table-column prop="by1" label="今日已完成数量">
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- {{ Number(scope.row.by1).toFixed(6) }}-->
|
||||
<el-table-column prop="by1" :label="$t('viewsMain.todayFinishedCount')"> <!-- 今日已完成数量 -->
|
||||
<!-- <template slot-scope="scope">
|
||||
{{ Number(scope.row.by1).toFixed(6) }}-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -59,23 +59,23 @@
|
||||
<div class="col-sm-6" style="height: 45vh; padding: 10px;">
|
||||
<el-card class="box-card">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>未完成出库任务概览</span>
|
||||
<span>{{$t('viewsMain.unfinishedOutboundTask')}}</span>
|
||||
</div>
|
||||
<el-table
|
||||
:data="table3Data"
|
||||
style="width: 100%"
|
||||
:height="tableHeight"
|
||||
v-loading="loading3">
|
||||
<el-table-column prop="workValue" label="任务键值" />
|
||||
<el-table-column prop="workName" label="未完成出库任务" />
|
||||
<el-table-column prop="workNum" label="全部未完成数量">
|
||||
<el-table-column prop="workValue" :label="$t('viewsMain.taskKey')" /><!-- 任务键值 -->
|
||||
<el-table-column prop="workName" :label="$t('viewsMain.unfinishedOutboundTaskName')" /><!-- 未完成出库任务 -->
|
||||
<el-table-column prop="workNum" :label="$t('viewsMain.totalUnfinishedCount')"><!-- 全部未完成数量 -->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- {{ Number(scope.row.workNum).toFixed(6) }}-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
<el-table-column prop="by1" label="今日未完成数量">
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- {{ Number(scope.row.by1).toFixed(6) }}-->
|
||||
<el-table-column prop="by1" :label="$t('viewsMain.todayUnfinishedCount')"> <!-- 今日未完成数量 -->
|
||||
<!-- <template slot-scope="scope">
|
||||
{{ Number(scope.row.by1).toFixed(6) }}-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -86,23 +86,23 @@
|
||||
<div class="col-sm-6" style="height: 45vh; padding: 10px;">
|
||||
<el-card class="box-card">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>已完成出库任务概览</span>
|
||||
<span>{{$t('viewsMain.finishedOutboundTask')}}</span>
|
||||
</div>
|
||||
<el-table
|
||||
:data="table4Data"
|
||||
style="width: 100%"
|
||||
:height="tableHeight"
|
||||
v-loading="loading4">
|
||||
<el-table-column prop="workValue" label="任务键值" />
|
||||
<el-table-column prop="workName" label="已完成出库任务" />
|
||||
<el-table-column prop="workNum" label="全部已完成数量">
|
||||
<el-table-column prop="workValue" :label="$t('viewsMain.taskKey')" /><!-- 任务键值 -->
|
||||
<el-table-column prop="workName" :label="$t('viewsMain.finishedOutboundTaskName')" /><!-- 已完成出库任务 -->
|
||||
<el-table-column prop="workNum" :label="$t('viewsMain.totalFinishedCount')" ><!-- 全部已完成数量 -->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- {{ Number(scope.row.workNum).toFixed(6) }}-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
<el-table-column prop="by1" label="今日已完成数量">
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- {{ Number(scope.row.by1).toFixed(6) }}-->
|
||||
<el-table-column prop="by1" :label="$t('viewsMain.todayFinishedCount')"> <!-- 今日已完成数量 -->
|
||||
<!-- <template slot-scope="scope">
|
||||
{{ Number(scope.row.by1).toFixed(6) }}-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
Reference in New Issue
Block a user