openatc-components 0.0.75 → 0.0.76
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/OverLap/OverLap.vue +4 -1
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +44 -7
- package/package/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +6 -16
- package/package/kisscomps/components/Stages/index.vue +0 -1
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/OverLap/OverLap.vue +4 -1
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +44 -7
- package/src/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +6 -16
- package/src/kisscomps/components/Stages/index.vue +0 -1
- package/src/utils/RingDataModel.js +10 -3
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<div class="overLap" v-if="checked" :style="{'margin':this.controlData ? '20px 0 0 0' :tentative ? '0' : '0 40px 0 417px'}">
|
|
3
3
|
<div class="ring-first" v-for="(list, index1) in this.overlapDatas" :key="index1">
|
|
4
4
|
<div v-for="(item,index2) in list.stageLists" :key="index2" >
|
|
5
|
+
<!-- {{list.peddirection}} -->
|
|
5
6
|
<div class="first-2">
|
|
6
7
|
<el-tooltip v-if="item.greenWidth" placement="top-start" effect="light">
|
|
7
8
|
<div slot="content">
|
|
@@ -12,7 +13,7 @@
|
|
|
12
13
|
</div>
|
|
13
14
|
<div style="cursor:pointer;">
|
|
14
15
|
<div class="ring-phase">
|
|
15
|
-
<patternwalksvg :
|
|
16
|
+
<patternwalksvg :showWalk="list.peddirection" :Width="'32'" :Height="'34'"></patternwalksvg>
|
|
16
17
|
<xdrdirselector Width="36px" Height="34px" :showlist="item.direction"></xdrdirselector>
|
|
17
18
|
</div>
|
|
18
19
|
<div class="box">
|
|
@@ -135,6 +136,7 @@ export default {
|
|
|
135
136
|
findIndexs = Array.from(new Set(findIndexs))
|
|
136
137
|
return {
|
|
137
138
|
...item,
|
|
139
|
+
peddirection: this.getPedPhasePos(item.peddirection),
|
|
138
140
|
sidewalkPhaseData: this.getPedPhasePos(item.peddirection),
|
|
139
141
|
stageLists: stageList.map(sta => {
|
|
140
142
|
const find = findIndexs.includes(sta.key)
|
|
@@ -148,6 +150,7 @@ export default {
|
|
|
148
150
|
})
|
|
149
151
|
}
|
|
150
152
|
})
|
|
153
|
+
console.log(overlapData, 'overlapData')
|
|
151
154
|
this.overlapDatas = overlapData
|
|
152
155
|
}
|
|
153
156
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<div slot="content">P{{item.id}}:{{item.split}}</div>
|
|
21
21
|
<div style="cursor:pointer;">
|
|
22
22
|
<div class="ring-phase">
|
|
23
|
-
<patternwalksvg :
|
|
23
|
+
<patternwalksvg :showWalk="item.peddirection" :Width="'32'" :Height="'34'"></patternwalksvg>
|
|
24
24
|
<xdrdirselector Width="36px" Height="34px" :showlist="item.direction"></xdrdirselector>
|
|
25
25
|
</div>
|
|
26
26
|
<div class="box">
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
</div>
|
|
64
64
|
<div style="cursor:pointer;">
|
|
65
65
|
<div class="ring-phase">
|
|
66
|
-
<patternwalksvg :
|
|
66
|
+
<patternwalksvg :showWalk="list.peddirection" :Width="'32'" :Height="'34'"></patternwalksvg>
|
|
67
67
|
<xdrdirselector Width="36px" Height="34px" :showlist="list.direction"></xdrdirselector>
|
|
68
68
|
</div>
|
|
69
69
|
<div class="box" style="line-height:28px">
|
|
@@ -274,9 +274,16 @@ export default {
|
|
|
274
274
|
return item.id === stg
|
|
275
275
|
})[0]
|
|
276
276
|
for (let walk of this.sidewalkPhaseData) {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
277
|
+
for (let ped of currPhase.peddirection) {
|
|
278
|
+
if (stg === walk.phaseid) {
|
|
279
|
+
let obj = {}
|
|
280
|
+
obj.name = walk.name
|
|
281
|
+
obj.id = walk.id
|
|
282
|
+
if (ped === walk.id) {
|
|
283
|
+
peddirections.push(obj)
|
|
284
|
+
peddirections = Array.from(new Set(peddirections))
|
|
285
|
+
}
|
|
286
|
+
}
|
|
280
287
|
}
|
|
281
288
|
}
|
|
282
289
|
ped.push(...peddirections)
|
|
@@ -420,7 +427,22 @@ export default {
|
|
|
420
427
|
obj.yellowWidth = (currPhase.yellow / cycle * 100).toFixed(3) + '%'
|
|
421
428
|
obj.greenWidth = ((split - currPhase.redclear - currPhase.yellow - currPhase.flashgreen) / cycle * 100).toFixed(3) + '%'
|
|
422
429
|
obj.flashgreen = (currPhase.flashgreen / cycle * 100).toFixed(3) + '%'
|
|
423
|
-
obj.peddirection = currPhase.peddirection
|
|
430
|
+
// obj.peddirection = currPhase.peddirection
|
|
431
|
+
let peddirections = []
|
|
432
|
+
for (let walk of this.sidewalkPhaseData) {
|
|
433
|
+
for (let ped of currPhase.peddirection) {
|
|
434
|
+
// if (stg === walk.phaseid) {
|
|
435
|
+
let objs = {}
|
|
436
|
+
objs.name = walk.name
|
|
437
|
+
objs.id = walk.id
|
|
438
|
+
if (ped === walk.id) {
|
|
439
|
+
peddirections.push(objs)
|
|
440
|
+
peddirections = Array.from(new Set(peddirections))
|
|
441
|
+
}
|
|
442
|
+
// }
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
obj.peddirection = peddirections
|
|
424
446
|
obj.split = split
|
|
425
447
|
obj.direction = currPhase.direction.map(item => {
|
|
426
448
|
return {
|
|
@@ -517,7 +539,22 @@ export default {
|
|
|
517
539
|
obj.flashgreen = (currPhase.flashgreen / (this.max ? this.max : this.newCycle) * 100).toFixed(3) + '%'
|
|
518
540
|
obj.redWidth = (currPhase.redclear / (this.max ? this.max : this.newCycle) * 100).toFixed(3) + '%'
|
|
519
541
|
obj.yellowWidth = (currPhase.yellow / (this.max ? this.max : this.newCycle) * 100).toFixed(3) + '%'
|
|
520
|
-
obj.peddirection = currPhase.peddirection
|
|
542
|
+
// obj.peddirection = currPhase.peddirection
|
|
543
|
+
let peddirections = []
|
|
544
|
+
for (let walk of this.sidewalkPhaseData) {
|
|
545
|
+
for (let ped of currPhase.peddirection) {
|
|
546
|
+
// if (stg === walk.phaseid) {
|
|
547
|
+
let objs = {}
|
|
548
|
+
objs.name = walk.name
|
|
549
|
+
objs.id = walk.id
|
|
550
|
+
if (ped === walk.id) {
|
|
551
|
+
peddirections.push(objs)
|
|
552
|
+
peddirections = Array.from(new Set(peddirections))
|
|
553
|
+
}
|
|
554
|
+
// }
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
obj.peddirection = peddirections
|
|
521
558
|
// 忽略相位不显示
|
|
522
559
|
let mode = ring.mode
|
|
523
560
|
if (mode !== 7) { // 忽略相位不显示
|
|
@@ -370,9 +370,6 @@ export default {
|
|
|
370
370
|
}
|
|
371
371
|
},
|
|
372
372
|
props: {
|
|
373
|
-
sidewalkPhaseData: {
|
|
374
|
-
type: Array
|
|
375
|
-
},
|
|
376
373
|
showWalk: {
|
|
377
374
|
type: Array
|
|
378
375
|
},
|
|
@@ -389,28 +386,21 @@ export default {
|
|
|
389
386
|
}
|
|
390
387
|
},
|
|
391
388
|
watch: {
|
|
392
|
-
sidewalkPhaseData: {
|
|
393
|
-
handler: function () {
|
|
394
|
-
this.getShow()
|
|
395
|
-
},
|
|
396
|
-
deep: true // 深度监听
|
|
397
|
-
},
|
|
398
389
|
showWalk: {
|
|
399
|
-
handler: function () {
|
|
400
|
-
this.
|
|
390
|
+
handler: function (newList) {
|
|
391
|
+
this.refreshShow(newList)
|
|
401
392
|
},
|
|
402
393
|
deep: true // 深度监听
|
|
403
394
|
}
|
|
404
395
|
},
|
|
405
396
|
created () {
|
|
406
|
-
this.
|
|
397
|
+
this.refreshShow(this.showWalk)
|
|
407
398
|
},
|
|
408
399
|
methods: {
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
for (let i = 0; i < this.sidewalkPhaseData.length; i++) {
|
|
400
|
+
refreshShow (showWalk) {
|
|
401
|
+
for (let i = 0; i < this.showWalk.length; i++) {
|
|
412
402
|
for (let j = 0; j < this.status.length; j++) {
|
|
413
|
-
if (this.
|
|
403
|
+
if (this.showWalk[i].name === this.status[j].name) {
|
|
414
404
|
this.status[j].isshow = true
|
|
415
405
|
}
|
|
416
406
|
}
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
</template> -->
|
|
27
27
|
<patternwalksvg class="patternWalk"
|
|
28
28
|
:showWalk="item[0].peddirection"
|
|
29
|
-
:sidewalkPhaseData="item[0].sidewalkPhaseData"
|
|
30
29
|
:Width="'40'"
|
|
31
30
|
:Height="'40'" />
|
|
32
31
|
<xdr-dir-selector Width="40PX" Height="40PX" :showlist="item"></xdr-dir-selector>
|