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.
package/package.json
CHANGED
|
@@ -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
|
},
|
package/src/views/overView.vue
CHANGED
|
@@ -19,8 +19,8 @@ export default {
|
|
|
19
19
|
isShowMode: true,
|
|
20
20
|
modeName: '交警遥控',
|
|
21
21
|
controlName: '步进',
|
|
22
|
-
agentId: '
|
|
23
|
-
Token: '
|
|
22
|
+
agentId: 'gjnlgjxl',
|
|
23
|
+
Token: 'eyJraWQiOiIxNzE5OTY5NjkyMzM5IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcyMDAxMjg5MiwiaWF0IjoxNzE5OTY5NjkyfQ.SV75Bv-qdg8JTW_QVFrXmcQaJJ1YTYdDQvh_HNgW3dA',
|
|
24
24
|
reqUrl: 'http://192.168.13.103:10003/openatc'
|
|
25
25
|
}
|
|
26
26
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|