openatc-components 0.3.95 → 0.3.96
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/IntersectionMap/crossDirection/crossDiagram.vue +7 -3
- package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +5 -0
- package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +17 -12
- package/package/kisscomps/components/OverviewComponent/index.vue +26 -15
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +7 -3
- package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +5 -0
- package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +17 -12
- package/src/kisscomps/components/OverviewComponent/index.vue +26 -15
- package/src/views/intersection.vue +6 -7
- package/src/views/intersection2.vue +2 -2
- package/src/views/overView.vue +4 -17
package/package.json
CHANGED
|
@@ -222,6 +222,10 @@ export default {
|
|
|
222
222
|
type: Boolean,
|
|
223
223
|
devault: true
|
|
224
224
|
},
|
|
225
|
+
isShowMessage: {
|
|
226
|
+
type: Boolean,
|
|
227
|
+
default: true
|
|
228
|
+
},
|
|
225
229
|
roadDirection: {
|
|
226
230
|
type: String
|
|
227
231
|
},
|
|
@@ -718,7 +722,7 @@ export default {
|
|
|
718
722
|
}
|
|
719
723
|
}
|
|
720
724
|
msg = msg + ' - ' + commomMsg
|
|
721
|
-
this.$message.error(msg)
|
|
725
|
+
this.isShowMessage && this.$message.error(msg)
|
|
722
726
|
return
|
|
723
727
|
}
|
|
724
728
|
this.isLoaded = true
|
|
@@ -1040,10 +1044,10 @@ export default {
|
|
|
1040
1044
|
let res = data.data
|
|
1041
1045
|
if (!res.success) {
|
|
1042
1046
|
if (res.code === '4003') {
|
|
1043
|
-
this.$message.error(this.$t('openatccomponents.errorTip.devicenotonline'))
|
|
1047
|
+
this.isShowMessage && this.$message.error(this.$t('openatccomponents.errorTip.devicenotonline'))
|
|
1044
1048
|
return
|
|
1045
1049
|
}
|
|
1046
|
-
this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
|
|
1050
|
+
this.isShowMessage && this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
|
|
1047
1051
|
return
|
|
1048
1052
|
}
|
|
1049
1053
|
let channelList = res.data.data.channelList.filter(ele => ele.type !== undefined)
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
:clickMode="clickMode"
|
|
42
42
|
:isThirdSignal="isThirdSignal"
|
|
43
43
|
:channelType="channelType"
|
|
44
|
+
:isShowMessage ="isShowMessage"
|
|
44
45
|
@handleClickCrossIcon="handleClickCrossIcon" />
|
|
45
46
|
</div>
|
|
46
47
|
</div>
|
|
@@ -84,6 +85,10 @@ export default {
|
|
|
84
85
|
type: Boolean,
|
|
85
86
|
default: true
|
|
86
87
|
},
|
|
88
|
+
isShowMessage: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: true
|
|
91
|
+
},
|
|
87
92
|
roadDirection: {
|
|
88
93
|
type: String,
|
|
89
94
|
default: 'right'
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
:stateName="stateName"
|
|
24
24
|
:isShowMode="isShowMode"
|
|
25
25
|
:isShowState="isShowState"
|
|
26
|
+
:isShowMessage ="isShowMessage"
|
|
26
27
|
:isShowInterval="isShowInterval"
|
|
27
28
|
@onSelectStages="onSelectStages"/>
|
|
28
29
|
</div>
|
|
@@ -73,6 +74,10 @@ export default {
|
|
|
73
74
|
type: Boolean,
|
|
74
75
|
default: true
|
|
75
76
|
},
|
|
77
|
+
isShowMessage: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: true
|
|
80
|
+
},
|
|
76
81
|
isShowState: {
|
|
77
82
|
type: Boolean,
|
|
78
83
|
devault: false
|
|
@@ -140,7 +145,7 @@ export default {
|
|
|
140
145
|
}
|
|
141
146
|
}
|
|
142
147
|
msg = msg + ' - ' + commomMsg
|
|
143
|
-
this.$message.error(msg)
|
|
148
|
+
this.isShowMessage && this.$message.error(msg)
|
|
144
149
|
if (this.isResend) {
|
|
145
150
|
this.reSend()
|
|
146
151
|
}
|
|
@@ -192,7 +197,7 @@ export default {
|
|
|
192
197
|
// this.devStatus = 2
|
|
193
198
|
this.clearPatternInterval() // 清除其他定时器
|
|
194
199
|
this.clearVolumeInterval()
|
|
195
|
-
this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale) + ' - ' + commomMsg)
|
|
200
|
+
this.isShowMessage && this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale) + ' - ' + commomMsg)
|
|
196
201
|
if (this.isResend) {
|
|
197
202
|
this.reSend()
|
|
198
203
|
}
|
|
@@ -208,7 +213,7 @@ export default {
|
|
|
208
213
|
}
|
|
209
214
|
}
|
|
210
215
|
msg = msg + ' - ' + commomMsg
|
|
211
|
-
this.$message.error(msg)
|
|
216
|
+
this.isShowMessage && this.$message.error(msg)
|
|
212
217
|
this.clearPatternInterval() // 清除其他定时器
|
|
213
218
|
if (this.isResend) {
|
|
214
219
|
this.reSend()
|
|
@@ -222,7 +227,7 @@ export default {
|
|
|
222
227
|
this.controlData = this.controlFormat.handleGetData(param)
|
|
223
228
|
this.$emit('getTscControl', data)
|
|
224
229
|
}).catch(error => {
|
|
225
|
-
this.$message.error(error)
|
|
230
|
+
this.isShowMessage && this.$message.error(error)
|
|
226
231
|
console.log(error)
|
|
227
232
|
})
|
|
228
233
|
},
|
|
@@ -235,7 +240,7 @@ export default {
|
|
|
235
240
|
if (!res.data.success) {
|
|
236
241
|
let commomMsg = this.$t('openatccomponents.overview.signalID') + ': ' + this.AgentId
|
|
237
242
|
let msg = getMessageByCode(res.data.code, this.$i18n.locale) + ', ' + commomMsg
|
|
238
|
-
this.$message.error(msg)
|
|
243
|
+
this.isShowMessage && this.$message.error(msg)
|
|
239
244
|
return
|
|
240
245
|
}
|
|
241
246
|
let devParams = res.data.data.jsonparam
|
|
@@ -295,7 +300,7 @@ export default {
|
|
|
295
300
|
let success = data.data.data.content.success
|
|
296
301
|
if (success !== 0) {
|
|
297
302
|
let errormsg = 'openatccomponents.overview.putTscControlError' + success
|
|
298
|
-
this.$message.error(this.$t(errormsg))
|
|
303
|
+
this.isShowMessage && this.$message.error(this.$t(errormsg))
|
|
299
304
|
return
|
|
300
305
|
}
|
|
301
306
|
}
|
|
@@ -330,7 +335,7 @@ export default {
|
|
|
330
335
|
}
|
|
331
336
|
if (!data.data.success) {
|
|
332
337
|
if (data.data.code === '4003') {
|
|
333
|
-
this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
|
|
338
|
+
this.isShowMessage && this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
|
|
334
339
|
return
|
|
335
340
|
}
|
|
336
341
|
let parrenterror = getMessageByCode(data.data.code, this.$i18n.locale)
|
|
@@ -339,10 +344,10 @@ export default {
|
|
|
339
344
|
let childErrorCode = data.data.data.errorCode
|
|
340
345
|
if (childErrorCode) {
|
|
341
346
|
let childerror = getMessageByCode(data.data.data.errorCode, this.$i18n.locale)
|
|
342
|
-
this.$message.error(parrenterror + ',' + childerror)
|
|
347
|
+
this.isShowMessage && this.$message.error(parrenterror + ',' + childerror)
|
|
343
348
|
}
|
|
344
349
|
} else {
|
|
345
|
-
this.$message.error(parrenterror)
|
|
350
|
+
this.isShowMessage && this.$message.error(parrenterror)
|
|
346
351
|
}
|
|
347
352
|
return
|
|
348
353
|
}
|
|
@@ -359,7 +364,7 @@ export default {
|
|
|
359
364
|
controlData: controlData
|
|
360
365
|
}
|
|
361
366
|
}).catch(error => {
|
|
362
|
-
this.$message.error(error)
|
|
367
|
+
this.isShowMessage && this.$message.error(error)
|
|
363
368
|
console.log(error)
|
|
364
369
|
})
|
|
365
370
|
},
|
|
@@ -368,10 +373,10 @@ export default {
|
|
|
368
373
|
let res = data.data
|
|
369
374
|
if (!res.success) {
|
|
370
375
|
if (res.code === '4003') {
|
|
371
|
-
this.$message.error(this.$t('openatccomponents.errorTip.devicenotonline'))
|
|
376
|
+
this.isShowMessage && this.$message.error(this.$t('openatccomponents.errorTip.devicenotonline'))
|
|
372
377
|
return
|
|
373
378
|
}
|
|
374
|
-
this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
|
|
379
|
+
this.isShowMessage && this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
|
|
375
380
|
return
|
|
376
381
|
}
|
|
377
382
|
this.phaseList = res.data.data.phaseList
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
:stateName="stateName"
|
|
21
21
|
:crossStatusData="crossStatusData"
|
|
22
22
|
:agentId="agentId"
|
|
23
|
+
:isShowMessage ="isShowMessage"
|
|
24
|
+
:isShowInterval="isShowInterval"
|
|
23
25
|
:roadDirection="roadDirection" />
|
|
24
26
|
<channelization
|
|
25
27
|
v-if="curHomePage === 'Channelization'"
|
|
@@ -132,6 +134,14 @@ export default {
|
|
|
132
134
|
type: String,
|
|
133
135
|
default: 'right'
|
|
134
136
|
},
|
|
137
|
+
isShowInterval: {
|
|
138
|
+
type: Boolean,
|
|
139
|
+
default: true
|
|
140
|
+
},
|
|
141
|
+
isShowMessage: {
|
|
142
|
+
type: Boolean,
|
|
143
|
+
default: true
|
|
144
|
+
},
|
|
135
145
|
isfromatc: {
|
|
136
146
|
type: Boolean,
|
|
137
147
|
default: true
|
|
@@ -140,6 +150,7 @@ export default {
|
|
|
140
150
|
data () {
|
|
141
151
|
return {
|
|
142
152
|
stateName: this.$t('openatccomponents.overview.offline'),
|
|
153
|
+
curBodyWidth: 1920,
|
|
143
154
|
controlData: {},
|
|
144
155
|
checked: false,
|
|
145
156
|
overlap: [],
|
|
@@ -317,10 +328,10 @@ export default {
|
|
|
317
328
|
// let childErrorCode = data.data.data.errorCode
|
|
318
329
|
// if (childErrorCode) {
|
|
319
330
|
// let childerror = getMessageByCode(data.data.data.errorCode, _this.$i18n.locale)
|
|
320
|
-
// _this.$message.error(parrenterror + ',' + childerror)
|
|
331
|
+
// _this.isShowMessage && _this.$message.error(parrenterror + ',' + childerror)
|
|
321
332
|
// }
|
|
322
333
|
// } else {
|
|
323
|
-
// _this.$message.error(parrenterror)
|
|
334
|
+
// _this.isShowMessage && _this.$message.error(parrenterror)
|
|
324
335
|
// }
|
|
325
336
|
_this.curHomePage = 'Graphical'
|
|
326
337
|
return
|
|
@@ -360,7 +371,7 @@ export default {
|
|
|
360
371
|
let success = data.data.data.content.success
|
|
361
372
|
if (success !== 0) {
|
|
362
373
|
let errormsg = 'openatccomponents.overview.putTscControlError' + success
|
|
363
|
-
this.$message.error(this.$t(errormsg))
|
|
374
|
+
this.isShowMessage && this.$message.error(this.$t(errormsg))
|
|
364
375
|
return
|
|
365
376
|
}
|
|
366
377
|
}
|
|
@@ -370,10 +381,10 @@ export default {
|
|
|
370
381
|
let childErrorCode = data.data.data.errorCode
|
|
371
382
|
if (childErrorCode) {
|
|
372
383
|
let childerror = getMessageByCode(data.data.data.errorCode, this.$i18n.locale)
|
|
373
|
-
this.$message.error(parrenterror + ',' + childerror)
|
|
384
|
+
this.isShowMessage && this.$message.error(parrenterror + ',' + childerror)
|
|
374
385
|
}
|
|
375
386
|
} else {
|
|
376
|
-
this.$message.error(parrenterror)
|
|
387
|
+
this.isShowMessage && this.$message.error(parrenterror)
|
|
377
388
|
}
|
|
378
389
|
if (this.isResend) {
|
|
379
390
|
this.reSend()
|
|
@@ -435,7 +446,7 @@ export default {
|
|
|
435
446
|
let success = data.data.data.content.success
|
|
436
447
|
if (success !== 0) {
|
|
437
448
|
let errormsg = 'openatccomponents.overview.putTscControlError' + success
|
|
438
|
-
this.$message.error(this.$t(errormsg))
|
|
449
|
+
this.isShowMessage && this.$message.error(this.$t(errormsg))
|
|
439
450
|
return
|
|
440
451
|
}
|
|
441
452
|
}
|
|
@@ -443,7 +454,7 @@ export default {
|
|
|
443
454
|
// this.devStatus = 2
|
|
444
455
|
this.clearPatternInterval() // 清除其他定时器
|
|
445
456
|
this.clearVolumeInterval()
|
|
446
|
-
this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
|
|
457
|
+
this.isShowMessage && this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
|
|
447
458
|
if (this.isResend) {
|
|
448
459
|
this.reSend()
|
|
449
460
|
}
|
|
@@ -455,10 +466,10 @@ export default {
|
|
|
455
466
|
let childErrorCode = data.data.data.errorCode
|
|
456
467
|
if (childErrorCode) {
|
|
457
468
|
let childerror = getMessageByCode(data.data.data.errorCode, this.$i18n.locale)
|
|
458
|
-
this.$message.error(parrenterror + ',' + childerror)
|
|
469
|
+
this.isShowMessage && this.$message.error(parrenterror + ',' + childerror)
|
|
459
470
|
}
|
|
460
471
|
} else {
|
|
461
|
-
this.$message.error(parrenterror)
|
|
472
|
+
this.isShowMessage && this.$message.error(parrenterror)
|
|
462
473
|
}
|
|
463
474
|
this.clearPatternInterval() // 清除其他定时器
|
|
464
475
|
this.clearVolumeInterval()
|
|
@@ -478,7 +489,7 @@ export default {
|
|
|
478
489
|
console.log('this.controlData', this.controlData)
|
|
479
490
|
this.checkStage(this.controlData)
|
|
480
491
|
}).catch(error => {
|
|
481
|
-
// this.$message.error(error)
|
|
492
|
+
// this.isShowMessage && this.$message.error(error)
|
|
482
493
|
console.log(error)
|
|
483
494
|
})
|
|
484
495
|
},
|
|
@@ -701,7 +712,7 @@ export default {
|
|
|
701
712
|
queryDevParams () {
|
|
702
713
|
queryDevice(this.AgentId).then(res => {
|
|
703
714
|
if (!res.data.success) {
|
|
704
|
-
this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
|
|
715
|
+
this.isShowMessage && this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
|
|
705
716
|
return
|
|
706
717
|
}
|
|
707
718
|
let devParams = res.data.data.jsonparam
|
|
@@ -733,7 +744,7 @@ export default {
|
|
|
733
744
|
let success = data.data.data.content.success
|
|
734
745
|
if (success !== 0) {
|
|
735
746
|
let errormsg = 'openatccomponents.overview.putTscControlError' + success
|
|
736
|
-
this.$message.error(this.$t(errormsg))
|
|
747
|
+
this.isShowMessage && this.$message.error(this.$t(errormsg))
|
|
737
748
|
return
|
|
738
749
|
}
|
|
739
750
|
}
|
|
@@ -743,10 +754,10 @@ export default {
|
|
|
743
754
|
let childErrorCode = data.data.data.errorCode
|
|
744
755
|
if (childErrorCode) {
|
|
745
756
|
let childerror = getMessageByCode(data.data.data.errorCode, this.$i18n.locale)
|
|
746
|
-
this.$message.error(parrenterror + ',' + childerror)
|
|
757
|
+
this.isShowMessage && this.$message.error(parrenterror + ',' + childerror)
|
|
747
758
|
}
|
|
748
759
|
} else {
|
|
749
|
-
this.$message.error(parrenterror)
|
|
760
|
+
this.isShowMessage && this.$message.error(parrenterror)
|
|
750
761
|
}
|
|
751
762
|
return
|
|
752
763
|
}
|
|
@@ -758,7 +769,7 @@ export default {
|
|
|
758
769
|
getPlatform () {
|
|
759
770
|
queryDevice(this.AgentId).then(res => {
|
|
760
771
|
if (!res.data.success) {
|
|
761
|
-
this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
|
|
772
|
+
this.isShowMessage && this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
|
|
762
773
|
return
|
|
763
774
|
}
|
|
764
775
|
let devParams = res.data.data.jsonparam
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<intersection-with-interface :AgentId="agentId" />
|
|
4
3
|
<h2 class="text">实时通道路口图</h2>
|
|
5
|
-
|
|
4
|
+
<channel-realtime-intersection
|
|
6
5
|
:agentId="this.agentId"
|
|
7
6
|
:roadDirection="roadDirection"
|
|
8
7
|
:channelRealtimeStatusData="channelRealtimeStatusData"
|
|
9
|
-
/>
|
|
8
|
+
/>
|
|
10
9
|
|
|
11
10
|
<!-- 按通道获取相位的方向选择列表,特殊路口显示列表,普通路口显示模版路口图 -->
|
|
12
11
|
<h2 class="text">非第三方配置路口图(按通道显示相位方向)</h2>
|
|
13
|
-
|
|
12
|
+
<intersection-direction-selection
|
|
14
13
|
:agentId="this.agentId"
|
|
15
14
|
:choosedDirection="[14,6,13,8]"
|
|
16
15
|
:choosedPedDirection="[1]"
|
|
@@ -26,7 +25,7 @@
|
|
|
26
25
|
:choosedPedDirection="[1,2]"
|
|
27
26
|
:roadDirection="roadDirection"
|
|
28
27
|
@handleClickCrossIcon="handleClickCrossIcon" />
|
|
29
|
-
</div>
|
|
28
|
+
</div>
|
|
30
29
|
|
|
31
30
|
<!-- 显示按通道获取相位的模版路口图 -->
|
|
32
31
|
<h2 class="text">显示配置的相位路口图</h2>
|
|
@@ -162,12 +161,12 @@ export default {
|
|
|
162
161
|
return {
|
|
163
162
|
roadDirection: 'right',
|
|
164
163
|
// reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
165
|
-
agentId: '
|
|
164
|
+
agentId: 'tjblfql',
|
|
166
165
|
// agentId: '13013',
|
|
167
166
|
// agentId: '12007_390',
|
|
168
167
|
// agentId: '12014',
|
|
169
168
|
reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
170
|
-
Token: '
|
|
169
|
+
Token: 'eyJraWQiOiIxNzIxOTc3OTkzMTY4IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcyMTk4MTU5MywiaWF0IjoxNzIxOTc0MzkzfQ.vjgAFMJlM4FEHxT9K9lJQ_VsUx1fDubr4tYgMaVffS0',
|
|
171
170
|
// agentId: '30003-352',
|
|
172
171
|
// reqUrl: 'https://kints-dev.devdolphin.com/openatc',
|
|
173
172
|
// Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',
|
|
@@ -102,12 +102,12 @@ export default {
|
|
|
102
102
|
return {
|
|
103
103
|
roadDirection: 'left',
|
|
104
104
|
// reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
105
|
-
agentId: '
|
|
105
|
+
agentId: 'cllzpl',
|
|
106
106
|
// agentId: '13013',
|
|
107
107
|
// agentId: '12007_390',
|
|
108
108
|
// agentId: '12014',
|
|
109
109
|
reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
110
|
-
Token: '
|
|
110
|
+
Token: 'eyJraWQiOiIxNzEwNzU4MTU3Njk0IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiIxMjM0NTYiLCJleHAiOjE3MTM4ODgwMDAsImlhdCI6MTcxMDY5MTIwMH0.vicLABPjoZEWmHr12-5FXMbjYmEKv-WSTVRROR1eOME',
|
|
111
111
|
// agentId: '30003-352',
|
|
112
112
|
// reqUrl: 'https://kints-dev.devdolphin.com/openatc',
|
|
113
113
|
// Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',
|
package/src/views/overView.vue
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="test1">
|
|
3
|
-
|
|
3
|
+
<overview
|
|
4
4
|
:AgentId="agentId"
|
|
5
5
|
:reqUrl="reqUrl"
|
|
6
6
|
:modeName="modeName"
|
|
7
7
|
:controlName="controlName"
|
|
8
8
|
:isShowState="isShowState"
|
|
9
9
|
:isShowMode="isShowMode"
|
|
10
|
-
:Token="Token"></overview>
|
|
11
|
-
<el-button @click="handleChangeOverview">切换overview组件</el-button>
|
|
12
|
-
<overview-component :AgentId="agentId" />
|
|
10
|
+
:Token="Token"></overview>
|
|
13
11
|
</div>
|
|
14
12
|
</template>
|
|
15
13
|
|
|
@@ -21,23 +19,12 @@ export default {
|
|
|
21
19
|
isShowMode: true,
|
|
22
20
|
modeName: '交警遥控',
|
|
23
21
|
controlName: '步进',
|
|
24
|
-
agentId: '
|
|
25
|
-
|
|
26
|
-
agentid2: '13013',
|
|
27
|
-
sum: 0,
|
|
28
|
-
Token: 'eyJraWQiOiIxNzI5ODIxNjcyNTQ3IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcyOTgyNTI3MiwiaWF0IjoxNzI5ODE4MDcyfQ._C-0Cf3CQYx3tpGPAF-973Km8ekzJhAm4XwpNKFgSfk',
|
|
22
|
+
agentId: 'jmlxhl',
|
|
23
|
+
Token: 'eyJraWQiOiIxNzA4OTA5NDk2ODcxIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcwODk1MjY5NiwiaWF0IjoxNzA4OTA5NDk2fQ.FI0gzBQFLyQsj95LG56lVZxb6WYlr2-datNsyv6fF-I',
|
|
29
24
|
reqUrl: 'http://192.168.13.103:10003/openatc'
|
|
30
25
|
}
|
|
31
26
|
},
|
|
32
27
|
methods: {
|
|
33
|
-
handleChangeOverview () {
|
|
34
|
-
if (this.sum % 2 === 0) {
|
|
35
|
-
this.agentId = this.agentid1
|
|
36
|
-
} else {
|
|
37
|
-
this.agentId = this.agentid2
|
|
38
|
-
}
|
|
39
|
-
this.sum++
|
|
40
|
-
}
|
|
41
28
|
},
|
|
42
29
|
watch: {
|
|
43
30
|
},
|