openatc-components 0.2.86 → 0.2.88

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.
@@ -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) {
@@ -643,6 +644,9 @@ export default {
643
644
  this.lockScreen()
644
645
  putTscControl(control).then(data => {
645
646
  that.unlockScreen()
647
+ if (control.control === 0) {
648
+ that.preselectModel = that.recoverLastModel
649
+ }
646
650
  let success = 0
647
651
  if (!data.data.success) {
648
652
  if (data.data.code === '4002' && data.data.data.errorCode === '4209') {
@@ -678,6 +682,9 @@ export default {
678
682
  }
679
683
  }).catch(error => {
680
684
  that.unlockScreen()
685
+ if (control.control === 0) {
686
+ that.preselectModel = that.recoverLastModel
687
+ }
681
688
  console.log(error)
682
689
  })
683
690
  },