From 9571b24b7b15d88ca38aafb6f3c192bd8c3dff96 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Fri, 30 Dec 2022 18:07:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../menus/menuDialog/switchCommand.vue | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/switchCommand.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/switchCommand.vue index 2ffed6440..f3efe6991 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/switchCommand.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuDialog/switchCommand.vue @@ -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) {