lang
This commit is contained in:
@@ -32,6 +32,13 @@ Vue.prototype.Dialog = Dialog
|
|||||||
Vue.prototype.toast = toast
|
Vue.prototype.toast = toast
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
|
|
||||||
|
Vue.prototype.$langPre = {
|
||||||
|
computedProp (suffix) {
|
||||||
|
// return localstorage.getItem( key: 'lang') + '_' + suffix
|
||||||
|
return localStorage.getItem('locale').slice(0, 2) + '_' + suffix
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const publicKey = 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANL378k3RiZHWx5AfJqdH9xRNBmD9wGD\n' +
|
const publicKey = 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANL378k3RiZHWx5AfJqdH9xRNBmD9wGD\n' +
|
||||||
'2iRe41HdTNF8RUhNnHit5NpMNtGL0NPTSSpPjjI1kJfVorRvaQerUgkCAwEAAQ=='
|
'2iRe41HdTNF8RUhNnHit5NpMNtGL0NPTSSpPjjI1kJfVorRvaQerUgkCAwEAAQ=='
|
||||||
|
|
||||||
|
|||||||
@@ -164,23 +164,4 @@ export default {
|
|||||||
width .4rem
|
width .4rem
|
||||||
height .4rem
|
height .4rem
|
||||||
border-radius .2rem
|
border-radius .2rem
|
||||||
.grid_wrapper table th
|
|
||||||
color #ffffff
|
|
||||||
font-size 30px
|
|
||||||
background rgba(31,46,73,0.5)
|
|
||||||
line-height 80px
|
|
||||||
border-right none
|
|
||||||
padding 0
|
|
||||||
padding-left 30px
|
|
||||||
text-align left
|
|
||||||
.grid_wrapper table td
|
|
||||||
color #ffffff
|
|
||||||
font-size 30px
|
|
||||||
background rgba(31,46,73,0.5)
|
|
||||||
line-height 80px
|
|
||||||
border-bottom 1px solid #20395D
|
|
||||||
border-right none
|
|
||||||
padding 0
|
|
||||||
padding-left 30px
|
|
||||||
text-align left
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -15,18 +15,22 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="infoli01">
|
<div class="infoli01">
|
||||||
<span class="title">{{ $t('homeinfo.task') }}</span>
|
<span class="title">{{ $t('homeinfo.task') }}</span>
|
||||||
<span class="txt01">{{dataInfo.task_name}}</span>
|
<!-- <span class="txt01">{{dataInfo.task_name}}</span>
|
||||||
<span class="txt01">{{dataInfo.task_info}}</span>
|
<span class="txt01">{{dataInfo.task_info}}</span> -->
|
||||||
|
<span class="txt01">{{ dataInfo[$langPre.computedProp('task_name')] }}</span>
|
||||||
|
<span class="txt01">{{ dataInfo[$langPre.computedProp('task_info')] }}</span>
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="infoli">
|
<div class="infoli">
|
||||||
<span class="title">{{ $t('homeinfo.status') }}</span>
|
<span class="title">{{ $t('homeinfo.status') }}</span>
|
||||||
<span class="txt">{{dataInfo.task_status}}</span>
|
<!-- <span class="txt">{{dataInfo.task_status}}</span> -->
|
||||||
|
<span class="txt">{{ dataInfo[$langPre.computedProp('task_status')] }}</span>
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="infoli">
|
<div class="infoli">
|
||||||
<span class="title">{{ $t('homeinfo.tasknum') }}</span>
|
<span class="title">{{ $t('homeinfo.tasknum') }}</span>
|
||||||
<span class="txt">{{dataInfo.task_num}}</span>
|
<!-- <span class="txt">{{dataInfo.task_num}}</span> -->
|
||||||
|
<span class="txt">{{ dataInfo[$langPre.computedProp('task_num')] }}</span>
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="infoli infoli3">
|
<div class="infoli infoli3">
|
||||||
@@ -37,9 +41,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="infoli infoli3">
|
<div class="infoli infoli3">
|
||||||
<span class="title">{{ $t('homeinfo.error') }}</span>
|
<span class="title">{{ $t('homeinfo.error') }}</span>
|
||||||
<span class="txt txt2">{{dataInfo.error_name}}</span>
|
<!-- <span class="txt txt2">{{dataInfo.error_name}}</span> -->
|
||||||
|
<span class="txt txt2">{{ dataInfo[$langPre.computedProp('error_name')] }}</span>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn" v-if="dataInfo.button_name" @click="clickSave">{{dataInfo.button_name}}</button>
|
<!-- <button class="btn" v-if="dataInfo.button_name" @click="clickSave">{{dataInfo.button_name}}</button> -->
|
||||||
|
<button class="btn" v-if="dataInfo.button_name" @click="clickSave">{{ dataInfo[$langPre.computedProp('button_name')] }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -57,7 +63,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
interTime: this.$store.getters.setTime,
|
interTime: this.$store.getters.setTime,
|
||||||
timer: null,
|
timer: null,
|
||||||
// dataInfo: {}
|
dataInfo: {}
|
||||||
// dataInfo: {
|
// dataInfo: {
|
||||||
// device_info: 'NobleLiftPS10LMT_HuaHai',
|
// device_info: 'NobleLiftPS10LMT_HuaHai',
|
||||||
// task_name: '无',
|
// task_name: '无',
|
||||||
@@ -67,16 +73,16 @@ export default {
|
|||||||
// error_name: '障碍物告警',
|
// error_name: '障碍物告警',
|
||||||
// button_name: '继续搬运'
|
// button_name: '继续搬运'
|
||||||
// }
|
// }
|
||||||
dataInfo: {
|
// dataInfo: {
|
||||||
device_info: 'NobleLiftPS10LMT_HuaHai',
|
// device_info: 'NobleLiftPS10LMT_HuaHai',
|
||||||
task_name: '任务号:11322',
|
// task_name: '任务号:11322',
|
||||||
task_info: '目标点:5',
|
// task_info: '目标点:5',
|
||||||
task_status: '执行中',
|
// task_status: '执行中',
|
||||||
task_num: '待执行0/2',
|
// task_num: '待执行0/2',
|
||||||
speed: '0.0m/s',
|
// speed: '0.0m/s',
|
||||||
error_name: '正常运行',
|
// error_name: '正常运行',
|
||||||
button_name: '确认完成继续下个任务'
|
// button_name: '确认完成继续下个任务'
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
|
|||||||
Reference in New Issue
Block a user