add:新增后端二楼驱动国际化

This commit is contained in:
2024-02-29 10:30:48 +08:00
parent 42e572a003
commit 544e5dfaea
24 changed files with 365 additions and 265 deletions

View File

@@ -1,5 +1,13 @@
<template>
<div style="overflow: hidden">
<el-select v-model="value" :placeholder="$t('auto.common.please')" @change="initStageData">
<el-option
v-for="item in stageParam"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
<el-row>
<div id="container" className="container" style="min-height: 100%" />
</el-row>
@@ -232,7 +240,7 @@ export default {
name: 'MonitorDevice',
data() {
return {
stageParam: 'age', // 舞台参数
// stageParam: 'stage_code', // 舞台参数
dialogDeviceMsgVisible: false, // 显示设备信息的dialog
device_code: null,
tops: '20vh', // 初始top
@@ -247,6 +255,15 @@ export default {
dialogFormVisible6: false,
dialogFormVisible7: false,
dialogFormVisible8: false,
stageParam: [{// 舞台参数
value: 'age',
label: 'age'
}, {
value: 'stage_code',
label: 'stage_code'
}],
value: '',
stage_code: '',
form: {
device_code: '',
hasGoodStatus: null,
@@ -342,9 +359,10 @@ export default {
lf.render(data)
this.initStageData()
},
initStageData() {
initStageData(var1) {
// 获取舞台数据
crudStage.getNewStageDataByCode(this.stageParam).then(res => { // 通过舞台编码获取舞台数据并且赋值到lf对象
this.stage_code = var1
crudStage.getNewStageDataByCode(this.stage_code).then(res => { // 通过舞台编码获取舞台数据并且赋值到lf对象
data = JSON.parse(res.stage_data)
lf.render(data)
this.initStatus() // 初始化状态