代码调整
This commit is contained in:
parent
ccb52a8efd
commit
9571b24b7b
@ -197,7 +197,7 @@ export default {
|
|||||||
handleCurrentChange(val) {
|
handleCurrentChange(val) {
|
||||||
if (!val) { return; }
|
if (!val) { return; }
|
||||||
commitOperate(menuOperate.Switch.turnout, {code:val.code}).then(({valid, operate})=>{
|
commitOperate(menuOperate.Switch.turnout, {code:val.code}).then(({valid, operate})=>{
|
||||||
if (valid) {
|
// if (valid) {
|
||||||
this.position = '';
|
this.position = '';
|
||||||
const switchModel = this.$store.getters['map/getDeviceByCode'](val.code);
|
const switchModel = this.$store.getters['map/getDeviceByCode'](val.code);
|
||||||
this.selectedSwitchCode = val.code;
|
this.selectedSwitchCode = val.code;
|
||||||
@ -207,7 +207,7 @@ export default {
|
|||||||
// if (elem.normalPosition) { this.position = 'reverse'; }
|
// if (elem.normalPosition) { this.position = 'reverse'; }
|
||||||
// if (elem.reversePosition) { this.position = 'normal'; }
|
// if (elem.reversePosition) { this.position = 'normal'; }
|
||||||
// }
|
// }
|
||||||
}
|
// }
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getSwitchPosition(code) {
|
getSwitchPosition(code) {
|
||||||
|
Loading…
Reference in New Issue
Block a user