openatc-components 0.3.71 → 0.3.73
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/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +145 -46
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
- package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +3 -8
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +18 -28
- package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +11 -9
- package/package/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +1 -1
- package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +1 -21
- package/package/kisscomps/components/patternConfig/index.vue +18 -8
- package/package/kisscomps/components/patternConfig/pattern/patternTable.vue +18 -27
- package/package/kisscomps/components/patternConfig/planContent.vue +35 -4
- package/package/kisscomps/index.js +1 -3
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/i18n/language/en.js +0 -7
- package/src/i18n/language/zh.js +0 -7
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +145 -46
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
- package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +3 -8
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +18 -28
- package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +11 -9
- package/src/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +1 -1
- package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +1 -21
- package/src/kisscomps/components/patternConfig/index.vue +18 -8
- package/src/kisscomps/components/patternConfig/pattern/patternTable.vue +18 -27
- package/src/kisscomps/components/patternConfig/planContent.vue +35 -4
- package/src/kisscomps/index.js +1 -3
- package/src/views/overView.vue +4 -17
- package/src/views/patternConfig.vue +14358 -4
- package/static/styles/common.scss +3 -3
- package/static/styles/dark/theme/element-dark.scss +1 -1
- package/static/styles/intersection.scss +15 -5
- package/static/styles/light/theme/element-light.scss +1 -1
- package/static/styles/schemeconfig.scss +3 -6
- package/package/kisscomps/components/OverviewComponent/index.js +0 -2
- package/package/kisscomps/components/OverviewComponent/index.vue +0 -788
- package/src/kisscomps/components/OverviewComponent/index.js +0 -2
- package/src/kisscomps/components/OverviewComponent/index.vue +0 -788
|
@@ -212,8 +212,8 @@ export default {
|
|
|
212
212
|
Detector: [], // 管理所有检测器
|
|
213
213
|
DetectorChart: [], // 管理所有检测器统计图
|
|
214
214
|
motorwayicon: '',
|
|
215
|
-
IconLengh:
|
|
216
|
-
IconWdith:
|
|
215
|
+
IconLengh: 60,
|
|
216
|
+
IconWdith: 134,
|
|
217
217
|
textareaW: 200,
|
|
218
218
|
textareaH: 100,
|
|
219
219
|
pedW: 206,
|
|
@@ -389,8 +389,8 @@ export default {
|
|
|
389
389
|
h: this.IconWdith,
|
|
390
390
|
angle: 0
|
|
391
391
|
}
|
|
392
|
-
this.IconLengh =
|
|
393
|
-
this.IconWdith =
|
|
392
|
+
this.IconLengh = 60
|
|
393
|
+
this.IconWdith = 134
|
|
394
394
|
let Motorwaysitem = {
|
|
395
395
|
index: this.index,
|
|
396
396
|
id: this.motorid,
|
|
@@ -155,13 +155,6 @@ export default {
|
|
|
155
155
|
this.reset = true
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
},
|
|
159
|
-
agentId: {
|
|
160
|
-
handler: function (val1, val2) {
|
|
161
|
-
if (val1 !== val2) {
|
|
162
|
-
this.resetCrossDiagram()
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
158
|
}
|
|
166
159
|
},
|
|
167
160
|
created () {
|
|
@@ -171,7 +164,9 @@ export default {
|
|
|
171
164
|
},
|
|
172
165
|
mounted () {
|
|
173
166
|
this.getParentSize()
|
|
174
|
-
this.
|
|
167
|
+
if (this.isVipRoute || this.channelType) {
|
|
168
|
+
this.reset = true
|
|
169
|
+
}
|
|
175
170
|
},
|
|
176
171
|
updated () {
|
|
177
172
|
},
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
:leave-active-class="toPage === 1 ? 'animated fadeOutRight' : 'animated fadeOutLeft' ">
|
|
20
20
|
<div class="new" style="position: absolute;width: 100%;height:100%;" v-show="(isOperation && !isClosePhase)">
|
|
21
21
|
<ManualControlModalNew
|
|
22
|
-
v-if="resetcomponent"
|
|
23
22
|
ref="ManualControlModalNew"
|
|
24
23
|
:residentControlList="residentControlList"
|
|
25
24
|
:specialControlList="specialControlList"
|
|
@@ -82,7 +81,6 @@
|
|
|
82
81
|
<div v-else style="height: 100%;">
|
|
83
82
|
<div class="new" style="position: absolute;width: 100%;height:100%;" v-show="(isOperation && !isClosePhase)">
|
|
84
83
|
<ManualControlModalNew
|
|
85
|
-
v-if="resetcomponent"
|
|
86
84
|
ref="ManualControlModalNew"
|
|
87
85
|
:residentControlList="residentControlList"
|
|
88
86
|
:specialControlList="specialControlList"
|
|
@@ -462,17 +460,13 @@ export default {
|
|
|
462
460
|
patternAll: [],
|
|
463
461
|
patternSelect: [], // 所有方案id
|
|
464
462
|
specialPage: '', // 哪一个特殊控制页面
|
|
465
|
-
nextcycleefficcontrol: [5, 6, 9, 10, 12, 19]
|
|
466
|
-
resetcomponent: false
|
|
463
|
+
nextcycleefficcontrol: [5, 6, 9, 10, 12, 19] // 下周期生效的控制方式
|
|
467
464
|
}
|
|
468
465
|
},
|
|
469
466
|
watch: {
|
|
470
467
|
agentId: {
|
|
471
|
-
handler: function (
|
|
472
|
-
|
|
473
|
-
this.resetComponent()
|
|
474
|
-
}
|
|
475
|
-
this.getIntersectionInfo(val1)
|
|
468
|
+
handler: function (val) {
|
|
469
|
+
this.getIntersectionInfo(val)
|
|
476
470
|
},
|
|
477
471
|
// 深度观察监听
|
|
478
472
|
deep: true
|
|
@@ -509,29 +503,19 @@ export default {
|
|
|
509
503
|
this.setHost(this.reqUrl)
|
|
510
504
|
this.PhaseDataModel = new PhaseDataModel(this.roadDirection)
|
|
511
505
|
this.CrossDiagramMgr = new CrossDiagramMgr()
|
|
506
|
+
this.getIntersectionInfo(this.agentId)
|
|
512
507
|
},
|
|
513
508
|
async mounted () {
|
|
514
|
-
this.
|
|
515
|
-
|
|
509
|
+
if (this.realtimeStatusModalvisible === false) {
|
|
510
|
+
this.changeStatus()
|
|
511
|
+
}
|
|
512
|
+
this.setPropsToken(this.Token)
|
|
513
|
+
this.hiddenPartControl()
|
|
514
|
+
// await this.getPhase()
|
|
515
|
+
this.getFault()
|
|
516
|
+
this.initData()
|
|
516
517
|
},
|
|
517
518
|
methods: {
|
|
518
|
-
resetComponent () {
|
|
519
|
-
this.resetcomponent = false
|
|
520
|
-
this.$nextTick(() => {
|
|
521
|
-
this.resetcomponent = true
|
|
522
|
-
this.init()
|
|
523
|
-
})
|
|
524
|
-
},
|
|
525
|
-
init () {
|
|
526
|
-
this.getIntersectionInfo(this.agentId)
|
|
527
|
-
if (this.realtimeStatusModalvisible === false) {
|
|
528
|
-
this.changeStatus()
|
|
529
|
-
}
|
|
530
|
-
this.setPropsToken(this.Token)
|
|
531
|
-
// await this.getPhase()
|
|
532
|
-
this.getFault()
|
|
533
|
-
this.initData()
|
|
534
|
-
},
|
|
535
519
|
setHost (host) {
|
|
536
520
|
// 获取组件外传入的token,便于独立组件调用接口
|
|
537
521
|
if (host && host !== '') {
|
|
@@ -958,6 +942,12 @@ export default {
|
|
|
958
942
|
if (token && token !== '') {
|
|
959
943
|
setToken(token)
|
|
960
944
|
}
|
|
945
|
+
},
|
|
946
|
+
hiddenPartControl () {
|
|
947
|
+
// 保存的面板,不显示方位锁定的功能
|
|
948
|
+
if (this.isShowImplement === false) {
|
|
949
|
+
this.residentControlList = this.residentControlList.filter(item => item.id !== 25)
|
|
950
|
+
}
|
|
961
951
|
}
|
|
962
952
|
},
|
|
963
953
|
destroyed () {
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
:model="manualInfo"
|
|
21
21
|
label-width="90px">
|
|
22
22
|
<el-form-item
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
:label="$t('openatccomponents.overview.greenclear')"
|
|
24
|
+
prop="intersection">
|
|
25
|
+
<el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempGreenflash" size="small"></el-input-number>
|
|
26
|
+
</el-form-item>
|
|
27
27
|
|
|
28
28
|
<el-form-item
|
|
29
29
|
:label="$t('openatccomponents.overview.yellowflash')"
|
|
@@ -44,11 +44,13 @@
|
|
|
44
44
|
label-position="left"
|
|
45
45
|
:model="manualInfo"
|
|
46
46
|
label-width="90px">
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
|
|
48
|
+
<el-form-item
|
|
49
|
+
:label="$t('openatccomponents.overview.duration')"
|
|
50
|
+
prop="count">
|
|
51
|
+
<el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDuration" size="small"></el-input-number>
|
|
52
|
+
</el-form-item>
|
|
53
|
+
|
|
52
54
|
<el-form-item
|
|
53
55
|
:label="$t('openatccomponents.overview.allred')"
|
|
54
56
|
prop="intersection">
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
@toAutoControl="toAutoControl" />
|
|
63
63
|
|
|
64
64
|
<AzimuthLocking
|
|
65
|
-
v-if="preselecttype === '方向锁定'"
|
|
65
|
+
v-if="preselecttype === '方向锁定' && isShowImplement"
|
|
66
66
|
:realtimeStatusModalvisible="realtimeStatusModalvisible"
|
|
67
67
|
:phaseList="phaseList"
|
|
68
68
|
:patternStatus="statusData"
|
|
@@ -160,8 +160,7 @@
|
|
|
160
160
|
<div class="cross-content">
|
|
161
161
|
<div class="cross-name">{{$t('openatccomponents.overview.currentstage')}}:</div>
|
|
162
162
|
<div>
|
|
163
|
-
<Stages
|
|
164
|
-
:crossStatusData="crossStatusData"
|
|
163
|
+
<Stages :crossStatusData="crossStatusData"
|
|
165
164
|
:phaseList="phaseList"
|
|
166
165
|
@onSelectStages="onSelectStages"></Stages>
|
|
167
166
|
</div>
|
|
@@ -261,27 +260,8 @@ export default {
|
|
|
261
260
|
}
|
|
262
261
|
|
|
263
262
|
},
|
|
264
|
-
watch: {
|
|
265
|
-
agentId: {
|
|
266
|
-
handler: function (val1, val2) {
|
|
267
|
-
this.$nextTick(() => {
|
|
268
|
-
setTimeout(() => {
|
|
269
|
-
if (val1 !== val2) {
|
|
270
|
-
this.resetcomponent = false
|
|
271
|
-
this.$nextTick(() => {
|
|
272
|
-
this.resetcomponent = true
|
|
273
|
-
})
|
|
274
|
-
}
|
|
275
|
-
}, 100)
|
|
276
|
-
})
|
|
277
|
-
},
|
|
278
|
-
// 深度观察监听
|
|
279
|
-
deep: true
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
263
|
data () {
|
|
283
264
|
return {
|
|
284
|
-
resetcomponent: true
|
|
285
265
|
}
|
|
286
266
|
},
|
|
287
267
|
methods: {
|
|
@@ -228,6 +228,10 @@ export default {
|
|
|
228
228
|
}
|
|
229
229
|
},
|
|
230
230
|
mounted () {
|
|
231
|
+
// let _this = this
|
|
232
|
+
// _this.$nextTick(function () {
|
|
233
|
+
// _this.calcMaxTableHeight()
|
|
234
|
+
// })
|
|
231
235
|
this.calcMaxTableHeight()
|
|
232
236
|
},
|
|
233
237
|
methods: {
|
|
@@ -241,6 +245,7 @@ export default {
|
|
|
241
245
|
console.log('calcMaxTableHeight:', this.maxTableHeight)
|
|
242
246
|
if (this.maxTableHeight < 150) {
|
|
243
247
|
this.maxTableHeight = 200
|
|
248
|
+
console.log('set default maxHeight 200', this.maxTableHeight)
|
|
244
249
|
}
|
|
245
250
|
},
|
|
246
251
|
async handeAgentidsChange () {
|
|
@@ -745,6 +750,11 @@ export default {
|
|
|
745
750
|
async getDeviceByIds (routeData) {
|
|
746
751
|
// 获取设备表格信息
|
|
747
752
|
let realtimeRouteData = JSON.parse(JSON.stringify(routeData))
|
|
753
|
+
let findItem = realtimeRouteData.devs.find(item => !item.name)
|
|
754
|
+
if (!findItem) {
|
|
755
|
+
this.devicesData = realtimeRouteData.devs
|
|
756
|
+
return false
|
|
757
|
+
}
|
|
748
758
|
this.deviceIds = realtimeRouteData.devs.map(ele => ele.agentid)
|
|
749
759
|
await GetDeviceByIds(this.deviceIds).then(res => {
|
|
750
760
|
if (!res.data.success) {
|
|
@@ -760,14 +770,14 @@ export default {
|
|
|
760
770
|
// this.chartData.realPatternRouteData = realtimeRouteData
|
|
761
771
|
// this.$refs.chartDialog.show(true, this.chartData, this.route.name, this.devicesData)
|
|
762
772
|
})
|
|
763
|
-
},
|
|
764
|
-
getActurlPatternid (agentid) {
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
773
|
+
// },
|
|
774
|
+
// getActurlPatternid (agentid) {
|
|
775
|
+
// let devinfo = this.devicesData.filter(dev => dev.agentid === agentid)[0]
|
|
776
|
+
// if (devinfo.patternid !== undefined) {
|
|
777
|
+
// return devinfo.patternid
|
|
778
|
+
// } else {
|
|
779
|
+
// return 1
|
|
780
|
+
// }
|
|
771
781
|
}
|
|
772
782
|
}
|
|
773
783
|
}
|
|
@@ -107,9 +107,9 @@
|
|
|
107
107
|
<div class="pattern-figure">
|
|
108
108
|
<pattern-list
|
|
109
109
|
v-if="getControlType(scope.row) === 'ring'"
|
|
110
|
-
:patternStatusList="scope.row.rings"
|
|
110
|
+
:patternStatusList="JSON.parse(JSON.stringify(scope.row.rings))"
|
|
111
111
|
:cycles="scope.row.cycle"
|
|
112
|
-
:phaseList="scope.row.currPhase"
|
|
112
|
+
:phaseList="JSON.parse(JSON.stringify(scope.row.currPhase))"
|
|
113
113
|
:contrloType="getControlType(scope.row)"
|
|
114
114
|
>
|
|
115
115
|
</pattern-list>
|
|
@@ -121,10 +121,10 @@
|
|
|
121
121
|
:cycleChange="false"
|
|
122
122
|
:stagesChange="getSelectedPattern(scope.row).stagesList"
|
|
123
123
|
:patternStatusList="getSelectedPattern(scope.row).rings"
|
|
124
|
-
:patternList="scope.row.allPatterns"
|
|
125
|
-
:allPatternList="scope.row.allPatterns"
|
|
124
|
+
:patternList="JSON.parse(JSON.stringify(scope.row.allPatterns))"
|
|
125
|
+
:allPatternList="JSON.parse(JSON.stringify(scope.row.allPatterns))"
|
|
126
126
|
:cycles="scope.row.cycle"
|
|
127
|
-
:phaseList="scope.row.currPhase"
|
|
127
|
+
:phaseList="JSON.parse(JSON.stringify(scope.row.currPhase))"
|
|
128
128
|
:agentId="scope.row.agentid"
|
|
129
129
|
:showBarrier="false">
|
|
130
130
|
</pattern-list>
|
|
@@ -199,9 +199,9 @@ export default {
|
|
|
199
199
|
created () {
|
|
200
200
|
},
|
|
201
201
|
watch: {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
202
|
+
maxTableHeight: function () {
|
|
203
|
+
this.tableHeight = this.maxTableHeight
|
|
204
|
+
},
|
|
205
205
|
optList: {
|
|
206
206
|
handler: function (val) {
|
|
207
207
|
if (val && val.length > 0) {
|
|
@@ -214,16 +214,18 @@ export default {
|
|
|
214
214
|
},
|
|
215
215
|
newPatternList: {
|
|
216
216
|
handler: function (val) {
|
|
217
|
+
console.log('onNewPatternListChange', val)
|
|
217
218
|
this.$emit('onNewPatternListChange', val)
|
|
218
219
|
},
|
|
219
220
|
deep: true
|
|
220
221
|
}
|
|
221
222
|
},
|
|
222
223
|
mounted: function () {
|
|
223
|
-
var _this = this
|
|
224
|
-
_this.$nextTick(function () {
|
|
225
|
-
|
|
226
|
-
})
|
|
224
|
+
// var _this = this
|
|
225
|
+
// _this.$nextTick(function () {
|
|
226
|
+
// _this.tableHeight = _this.maxTableHeight
|
|
227
|
+
// })
|
|
228
|
+
// _this.tableHeight = _this.maxTableHeight
|
|
227
229
|
},
|
|
228
230
|
methods: {
|
|
229
231
|
onOptimizeClick (row, index) {
|
|
@@ -301,18 +303,6 @@ export default {
|
|
|
301
303
|
}
|
|
302
304
|
}
|
|
303
305
|
}
|
|
304
|
-
// row.cycle = cycle
|
|
305
|
-
// let newPattern = _this.newPatternList[index]
|
|
306
|
-
// newPattern.cycle = cycle
|
|
307
|
-
// newPattern.rings = row.rings
|
|
308
|
-
// _this.newPatternList[index] = newPattern
|
|
309
|
-
// if (row.feature && row.feature.patternList && row.feature.patternList.length > 0) {
|
|
310
|
-
// let pattern = row.feature.patternList.find((item) => item.id === row.patternid)
|
|
311
|
-
// if (pattern) {
|
|
312
|
-
// pattern.cycle = cycle
|
|
313
|
-
// pattern.rings = row.rings
|
|
314
|
-
// }
|
|
315
|
-
// }
|
|
316
306
|
}
|
|
317
307
|
}).catch(error => {
|
|
318
308
|
console.log(error)
|
|
@@ -326,10 +316,10 @@ export default {
|
|
|
326
316
|
return res
|
|
327
317
|
},
|
|
328
318
|
getPeriod (row) {
|
|
329
|
-
let period = row.period
|
|
319
|
+
let period = row.period || row.timeperiodrange
|
|
330
320
|
let res = ''
|
|
331
321
|
if (period && period.length > 0) {
|
|
332
|
-
res = period[0] + '-' + period[1]
|
|
322
|
+
res = period[0].substring(0, 5) + '-' + period[1].substring(0, 5)
|
|
333
323
|
}
|
|
334
324
|
return res
|
|
335
325
|
},
|
|
@@ -429,6 +419,7 @@ export default {
|
|
|
429
419
|
obj.ringCount = ringCount
|
|
430
420
|
this.newPatternList.push(obj)
|
|
431
421
|
}
|
|
422
|
+
console.log('handlePatternList newPatternList', this.newPatternList)
|
|
432
423
|
},
|
|
433
424
|
sortNumbers (a, b) {
|
|
434
425
|
return a - b
|
|
@@ -512,7 +503,7 @@ export default {
|
|
|
512
503
|
let patternList = row.feature && row.feature.patternList ? row.feature.patternList : row.allPatterns
|
|
513
504
|
let pattern = patternList.find(item => item.id === row.patternid)
|
|
514
505
|
if (pattern) {
|
|
515
|
-
res = pattern
|
|
506
|
+
res = JSON.parse(JSON.stringify(pattern))
|
|
516
507
|
}
|
|
517
508
|
return res
|
|
518
509
|
},
|
|
@@ -103,7 +103,8 @@ export default {
|
|
|
103
103
|
this.closeInterval()
|
|
104
104
|
},
|
|
105
105
|
methods: {
|
|
106
|
-
init (chooseId, editableTab, agentids) {
|
|
106
|
+
async init (chooseId, editableTab, agentids) {
|
|
107
|
+
console.log('init planContent edittab', editableTab)
|
|
107
108
|
if (this.agentids.join('') !== agentids.join('')) {
|
|
108
109
|
// reset data
|
|
109
110
|
this.patternList = []
|
|
@@ -113,7 +114,16 @@ export default {
|
|
|
113
114
|
this.chooseId = chooseId
|
|
114
115
|
// this.getRouteInfo()
|
|
115
116
|
this.routeData = editableTab
|
|
116
|
-
this.
|
|
117
|
+
let patternList = this.getPatternListFromTab(editableTab, this.patternList)
|
|
118
|
+
let phaseList = this.getPatternListFromTab(editableTab, this.patternList)
|
|
119
|
+
if (patternList && patternList.length > 0 && phaseList && phaseList.length > 0) {
|
|
120
|
+
this.patternList = patternList
|
|
121
|
+
this.phaseList = phaseList
|
|
122
|
+
this.handlePatternTable()
|
|
123
|
+
console.log('use params feature form editableTab', editableTab)
|
|
124
|
+
} else {
|
|
125
|
+
this.getAllPatternOfRoute()
|
|
126
|
+
}
|
|
117
127
|
},
|
|
118
128
|
getPatternListFromTab (tab, list) {
|
|
119
129
|
let res = []
|
|
@@ -134,8 +144,23 @@ export default {
|
|
|
134
144
|
res = devPatternList
|
|
135
145
|
return res
|
|
136
146
|
},
|
|
137
|
-
getPhaseListFromTab (tab) {
|
|
147
|
+
getPhaseListFromTab (tab, list) {
|
|
138
148
|
let res = []
|
|
149
|
+
let devs = tab.devs
|
|
150
|
+
for (let dev of devs) {
|
|
151
|
+
if (!dev.feature || !dev.feature.phaseList || dev.feature.phaseList.length === 0) {
|
|
152
|
+
res = list
|
|
153
|
+
return res
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
let devPatternList = devs.map(item => {
|
|
157
|
+
let pattern = {
|
|
158
|
+
agentid: item.agentid,
|
|
159
|
+
feature: item.feature
|
|
160
|
+
}
|
|
161
|
+
return pattern
|
|
162
|
+
})
|
|
163
|
+
res = devPatternList
|
|
139
164
|
return res
|
|
140
165
|
},
|
|
141
166
|
closeInterval () {
|
|
@@ -491,6 +516,7 @@ export default {
|
|
|
491
516
|
},
|
|
492
517
|
getAllPatternOfRoute () {
|
|
493
518
|
if (this.agentids.length === 0) return
|
|
519
|
+
console.log('this.routeData', this.routeData)
|
|
494
520
|
getAllPatternOfDevs(this.agentids).then(res => {
|
|
495
521
|
if (!res.data.success) {
|
|
496
522
|
let agentid = res.data.data.agentid
|
|
@@ -519,6 +545,7 @@ export default {
|
|
|
519
545
|
},
|
|
520
546
|
getAllPhaseOfRouter () {
|
|
521
547
|
if (this.agentids.length === 0) return
|
|
548
|
+
console.log('this.routeData', this.routeData)
|
|
522
549
|
getAllPhaseOfDevs(this.agentids).then(res => {
|
|
523
550
|
if (!res.data.success) {
|
|
524
551
|
let agentid = res.data.data.agentid
|
|
@@ -538,7 +565,11 @@ export default {
|
|
|
538
565
|
this.$emit('ErrorOcurrred')
|
|
539
566
|
return
|
|
540
567
|
}
|
|
541
|
-
this.
|
|
568
|
+
this.allPhaseList = res.data.data.devs
|
|
569
|
+
let editableTab = this.routeData
|
|
570
|
+
let list = this.getPhaseListFromTab(editableTab, this.allPhaseList)
|
|
571
|
+
this.phaseList = list
|
|
572
|
+
// this.phaseList = res.data.data.devs
|
|
542
573
|
this.handlePatternTable()
|
|
543
574
|
this.handlePlanChart()
|
|
544
575
|
this.handleMaskVisible()
|
package/src/kisscomps/index.js
CHANGED
|
@@ -32,7 +32,6 @@ import XiaoKanBan from './components/XiaoKanBan/index.vue'
|
|
|
32
32
|
import DirectionListConfiguration from './components/DirectionListConfiguration/index.js'
|
|
33
33
|
import IntersectionDirectionSelection from './components/IntersectionDirectionSelection/index.js'
|
|
34
34
|
import PhaseLegend from './components/PhaseLegend/index.js'
|
|
35
|
-
import OverviewComponent from './components/OverviewComponent/index.js'
|
|
36
35
|
import { setToken, setHost, setIsCheckPermission, setUserRoles, setPermissions } from '../utils/auth.js'
|
|
37
36
|
import componentsGlobalParam from '../store/modules/globalParam'
|
|
38
37
|
|
|
@@ -74,8 +73,7 @@ const components = {
|
|
|
74
73
|
PhaseDirectionSelect,
|
|
75
74
|
DirectionListConfiguration,
|
|
76
75
|
IntersectionDirectionSelection,
|
|
77
|
-
PhaseLegend
|
|
78
|
-
OverviewComponent
|
|
76
|
+
PhaseLegend
|
|
79
77
|
}
|
|
80
78
|
|
|
81
79
|
const language = {
|
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: 'gjnlahql',
|
|
27
|
-
sum: 0,
|
|
28
|
-
Token: 'eyJraWQiOiIxNzI5NzQ2MDcxNzc3IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcyOTc0OTY3MSwiaWF0IjoxNzI5NzQyNDcxfQ.dK2P6NGoG0ZI-j8d2wiVqM1JzkzOjFapHf99cJd7uXw',
|
|
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
|
},
|