From 6c36ac42f44faad6ebf43cbbce8e3c4bcd46d397 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Mon, 22 Jul 2024 08:46:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E5=88=87=E4=B8=8B=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SecondPhase/slitting/SlittingCutting.vue | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pages/SecondPhase/slitting/SlittingCutting.vue b/pages/SecondPhase/slitting/SlittingCutting.vue index 5b377d0..619ac2f 100644 --- a/pages/SecondPhase/slitting/SlittingCutting.vue +++ b/pages/SecondPhase/slitting/SlittingCutting.vue @@ -22,9 +22,8 @@ - - - + + @@ -76,6 +75,11 @@ }, selectChange (e) { this.index = e + if (e) { + this._querySlitterDeviceSubVolumeInfos() + } else { + this.obj = {up: '-', down: '-', msg: '-'} + } }, async _downRolls () { this.disabled = true @@ -100,11 +104,12 @@ this.options = [] }, async _querySlitterDeviceSubVolumeInfos () { - if (!this.index) { - return + try { + let res = await querySlitterDeviceSubVolumeInfos(this.index) + this.obj = res.data + } catch (e) { + console.log(e) } - let res = await querySlitterDeviceSubVolumeInfos(this.index) - this.obj = res.data } } }