pull/139/head
孙萌 2024-04-02 15:24:31 +08:00
parent d60d3b2521
commit d30b533128
1 changed files with 12 additions and 4 deletions

View File

@ -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('气象站无该页面');
} }