From 34999b8c16265cbad634dce704605c6a908c3a61 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Mon, 23 Oct 2023 16:16:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vehicleinformation/vehiclecontrol.vue | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/pages/modules/vehicleinformation/vehiclecontrol.vue b/src/pages/modules/vehicleinformation/vehiclecontrol.vue index e88fe27..7e9fd52 100644 --- a/src/pages/modules/vehicleinformation/vehiclecontrol.vue +++ b/src/pages/modules/vehicleinformation/vehiclecontrol.vue @@ -164,6 +164,21 @@ export default { } clearInterval(this.timer) bool = bool === '0' ? '1' : '0' + if (type === '2') { + this.switch1 = this.switch1 === '0' ? '1' : '0' + } + if (type === '3') { + this.switch2 = this.switch2 === '0' ? '1' : '0' + } + if (type === '4') { + this.switch3 = this.switch3 === '0' ? '1' : '0' + } + if (type === '5') { + this.switch4 = this.switch4 === '0' ? '1' : '0' + } + if (type === '6') { + this.switch5 = this.switch5 === '0' ? '1' : '0' + } this._ShutDown(type, bool) }, async _ShutDown (type, bool) { @@ -178,6 +193,7 @@ export default { this.refresh() } catch (e) { this.disabled = false + this.toast('操作失败') this.refresh() } }, @@ -289,7 +305,7 @@ export default { _fj(flex-start, flex-start) .control_label width 190px - _font(36px, 56px, #B4C1D8, 500,) + _font(36px, 88px, #B4C1D8, 500,) font-family: SourceHanSansCN-Medium; .content_wrap_inner _fj()