openatc-components 0.2.85 → 0.2.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,7 @@
22
22
  :phaseList="phaseList"
23
23
  :cycle="cycle"
24
24
  :syncTime="syncTime"
25
- :style="{'margin-top':(cycle || !showBarrier)? '25px':'0'}"
25
+ :style="{'margin-top': '25px'}"
26
26
  :patternStatusList="patternStatusList"
27
27
  :patternId="patternId"
28
28
  :cycles="cycles">
@@ -531,6 +531,7 @@ export default {
531
531
  selectModel (value) {
532
532
  if (!this.isOperation) return
533
533
  this.preselectStages = -1
534
+ this.recoverLastModel = this.preselectModel // 记录恢复前选中的控制方式
534
535
  this.preselectModel = value
535
536
  },
536
537
  selectStages (value) {
@@ -625,6 +626,8 @@ export default {
625
626
  control.mode = key
626
627
  }
627
628
  })
629
+ console.log(that.preselectModel)
630
+ console.log(that.recoverLastModel)
628
631
  control.control = that.preselectModel
629
632
  // control.terminal = isNaN(parseInt(manualInfo.tempPatternid)) ? Number(manualInfo.tempPatternid.replace(/[^0-9]/ig, '')) : manualInfo.tempPatternid
630
633
  control.terminal = manualInfo.tempPatternid === undefined ? null : Number(manualInfo.tempPatternid)
@@ -641,8 +644,12 @@ export default {
641
644
  return
642
645
  }
643
646
  this.lockScreen()
647
+ debugger
644
648
  putTscControl(control).then(data => {
645
649
  that.unlockScreen()
650
+ if (control.control === 0) {
651
+ that.preselectModel = that.recoverLastModel
652
+ }
646
653
  let success = 0
647
654
  if (!data.data.success) {
648
655
  if (data.data.code === '4002' && data.data.data.errorCode === '4209') {
@@ -678,6 +685,9 @@ export default {
678
685
  }
679
686
  }).catch(error => {
680
687
  that.unlockScreen()
688
+ if (control.control === 0) {
689
+ that.preselectModel = that.recoverLastModel
690
+ }
681
691
  console.log(error)
682
692
  })
683
693
  },