commit
38dd0b3a3c
|
@ -415,10 +415,18 @@ export default {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$router.push({ path: `/control?change=${item.index}` })
|
this.$router.push({ path: `/control?change=${item.index}` })
|
||||||
} else if (item.deviceName == 1 && this.routerNow != 'irrigateSet') {
|
} else if (item.deviceName == 1 ) {
|
||||||
this.$store.state.equipmentIndex = item.index
|
if(this.routerNow == 'irrigateSet'){
|
||||||
this.routerIndex = item.index
|
this.$store.state.equipmentIndex = item.index
|
||||||
this.$router.push({ path: `/irrigateSet?change=${item.index}` })
|
this.routerIndex = item.index
|
||||||
|
}else{
|
||||||
|
this.$store.state.equipmentIndex = item.index
|
||||||
|
this.routerIndex = item.index
|
||||||
|
this.$router.push({ path: `/irrigateSet?change=${item.index}` })
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} else if (item.deviceName == 30) {
|
} else if (item.deviceName == 30) {
|
||||||
this.$message('气象站无该页面');
|
this.$message('气象站无该页面');
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,14 +141,13 @@ export default {
|
||||||
'active'(newVal, oldVal) {
|
'active'(newVal, oldVal) {
|
||||||
this.getSensorType()
|
this.getSensorType()
|
||||||
},
|
},
|
||||||
|
'$store.state.equipmentIndex'(newVal, oldVal) {
|
||||||
|
|
||||||
|
this.dataInit();
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
});
|
|
||||||
this.dataInit()
|
this.dataInit()
|
||||||
//input获取焦点后全选
|
//input获取焦点后全选
|
||||||
let inputList = document.querySelectorAll('input');
|
let inputList = document.querySelectorAll('input');
|
||||||
|
@ -409,6 +408,12 @@ return num
|
||||||
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
|
|
||||||
};
|
};
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '加载中',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
this.api.getReadControlSensorChannel(data).then((res) => {
|
this.api.getReadControlSensorChannel(data).then((res) => {
|
||||||
this.loading.close()
|
this.loading.close()
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
|
|
Loading…
Reference in New Issue