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 } } }