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