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.
- package/package/kisscomps/components/BoardCard/BoardCard.vue +1 -1
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +10 -0
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/BoardCard/BoardCard.vue +1 -1
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +10 -0
- package/src/views/overView.vue +2 -2
- package/src/node_modules/.package_versions.json +0 -1
|
@@ -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
|
},
|