openatc-components 0.4.72 → 0.4.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/OverLap/OverLap.vue +22 -1
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +33 -27
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/OverLap/OverLap.vue +22 -1
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +33 -27
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
<span v-for="(ids,index3) in list.includedphases" :key="index3">
|
|
11
11
|
{{$t('openatccomponents.phase.phase')}}{{ids}}<span v-if="index3+1!==list.includedphases.length">,</span>
|
|
12
12
|
</span>
|
|
13
|
+
<span v-if="list.modifyphase && list.modifyphase.length>0">(<span v-for="(ids, index4) in list.modifyphase" :key="index4">
|
|
14
|
+
*P{{ ids
|
|
15
|
+
}}<span v-if="index4 + 1 !== list.modifyphase.length"
|
|
16
|
+
>,</span
|
|
17
|
+
>
|
|
18
|
+
</span>)</span>
|
|
13
19
|
</div>
|
|
14
20
|
<div style="cursor:pointer;">
|
|
15
21
|
<div class="ring-phase">
|
|
@@ -22,6 +28,12 @@
|
|
|
22
28
|
<span v-for="(ids,index3) in list.includedphases" :key="index3">
|
|
23
29
|
{{$t('openatccomponents.phase.phase')}}{{ids}}<span v-if="index3+1!==list.includedphases.length">,</span>
|
|
24
30
|
</span>
|
|
31
|
+
<span v-if="list.modifyphase && list.modifyphase.length>0">(<span v-for="(ids, index4) in list.modifyphase" :key="index4">
|
|
32
|
+
*P{{ ids
|
|
33
|
+
}}<span v-if="index4 + 1 !== list.modifyphase.length"
|
|
34
|
+
>,</span
|
|
35
|
+
>
|
|
36
|
+
</span>)</span>
|
|
25
37
|
</div>
|
|
26
38
|
</div>
|
|
27
39
|
</div>
|
|
@@ -153,7 +165,16 @@ export default {
|
|
|
153
165
|
const findItems = stageList.filter(j => (j.phases ? j.phases : j.stages).includes(i))
|
|
154
166
|
if (findItems.length) findIndexs.push(...findItems.map(m => m.key))
|
|
155
167
|
})
|
|
168
|
+
// 收集所有包含 modifyphase 中相位的阶段 key
|
|
169
|
+
let modifyIndexs = []
|
|
170
|
+
if (item.modifyphase !== undefined) {
|
|
171
|
+
item.modifyphase.forEach(i => {
|
|
172
|
+
const findItems = stageList.filter(j => j.phases.includes(i))
|
|
173
|
+
if (findItems.length) modifyIndexs.push(...findItems.map(m => m.key))
|
|
174
|
+
})
|
|
175
|
+
}
|
|
156
176
|
findIndexs = Array.from(new Set(findIndexs))
|
|
177
|
+
modifyIndexs = Array.from(new Set(modifyIndexs))
|
|
157
178
|
if (this.cycleChange) {
|
|
158
179
|
const globalParamModel = this.$store.getters.globalParamModel
|
|
159
180
|
let pattern = globalParamModel.getParamsByType('patternList')
|
|
@@ -168,7 +189,7 @@ export default {
|
|
|
168
189
|
peddirection: this.getPedPhasePos(item.peddirection),
|
|
169
190
|
sidewalkPhaseData: this.getPedPhasePos(item.peddirection),
|
|
170
191
|
stageLists: stageList.map(sta => {
|
|
171
|
-
const find = findIndexs.includes(sta.key)
|
|
192
|
+
const find = findIndexs.includes(sta.key) && !modifyIndexs.includes(sta.key)
|
|
172
193
|
return {
|
|
173
194
|
...sta,
|
|
174
195
|
direction: this.getRoad(item),
|
|
@@ -758,15 +758,17 @@ export default {
|
|
|
758
758
|
ring1s.push(addRing1)
|
|
759
759
|
}
|
|
760
760
|
// 双环相位数不等的时候
|
|
761
|
-
if (newRings
|
|
762
|
-
|
|
763
|
-
let
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
let
|
|
769
|
-
|
|
761
|
+
if (newRings.length > 1) {
|
|
762
|
+
if (newRings[0].length !== newRings[1].length) {
|
|
763
|
+
for (let h = 0; h < newCurrent.length; h++) {
|
|
764
|
+
let adds = [...new Set(ringsequence[0])].filter(item => newCurrent[h].includes(item))
|
|
765
|
+
ring1.push(adds)
|
|
766
|
+
}
|
|
767
|
+
let ring1s = [] // 环1与关系2的并集
|
|
768
|
+
for (let h = 0; h < newCurrent.length; h++) {
|
|
769
|
+
let addRing1 = [...new Set(ringsequence[1])].filter(item => newCurrent[h].includes(item))
|
|
770
|
+
ring1s.push(addRing1)
|
|
771
|
+
}
|
|
770
772
|
}
|
|
771
773
|
}
|
|
772
774
|
barrierRing1.push(...ring1, ...ring1s)
|
|
@@ -1056,15 +1058,17 @@ export default {
|
|
|
1056
1058
|
ring1s.push(addRing1)
|
|
1057
1059
|
}
|
|
1058
1060
|
// 双环相位数不等的时候
|
|
1059
|
-
if (newRings
|
|
1060
|
-
|
|
1061
|
-
let
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
let
|
|
1067
|
-
|
|
1061
|
+
if (newRings.length > 1) {
|
|
1062
|
+
if (newRings[0].length !== newRings[1].length) {
|
|
1063
|
+
for (let h = 0; h < newCurrent.length; h++) {
|
|
1064
|
+
let adds = [...new Set(ringsequence[0])].filter(item => newCurrent[h].includes(item))
|
|
1065
|
+
ring1.push(adds)
|
|
1066
|
+
}
|
|
1067
|
+
let ring1s = [] // 环1与关系2的并集
|
|
1068
|
+
for (let h = 0; h < newCurrent.length; h++) {
|
|
1069
|
+
let addRing1 = [...new Set(ringsequence[1])].filter(item => newCurrent[h].includes(item))
|
|
1070
|
+
ring1s.push(addRing1)
|
|
1071
|
+
}
|
|
1068
1072
|
}
|
|
1069
1073
|
}
|
|
1070
1074
|
barrierRing1.push(...ring1, ...ring1s)
|
|
@@ -1317,15 +1321,17 @@ export default {
|
|
|
1317
1321
|
ring1s.push(addRing1)
|
|
1318
1322
|
}
|
|
1319
1323
|
// 双环相位数不等的时候
|
|
1320
|
-
if (newRings
|
|
1321
|
-
|
|
1322
|
-
let
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
let
|
|
1328
|
-
|
|
1324
|
+
if (newRings.length > 1) {
|
|
1325
|
+
if (newRings[0].length !== newRings[1].length) {
|
|
1326
|
+
for (let h = 0; h < newCurrent.length; h++) {
|
|
1327
|
+
let adds = [...new Set(ringsequence[0])].filter(item => newCurrent[h].includes(item))
|
|
1328
|
+
ring1.push(adds)
|
|
1329
|
+
}
|
|
1330
|
+
let ring1s = [] // 环1与关系2的并集
|
|
1331
|
+
for (let h = 0; h < newCurrent.length; h++) {
|
|
1332
|
+
let addRing1 = [...new Set(ringsequence[1])].filter(item => newCurrent[h].includes(item))
|
|
1333
|
+
ring1s.push(addRing1)
|
|
1334
|
+
}
|
|
1329
1335
|
}
|
|
1330
1336
|
}
|
|
1331
1337
|
barrierRing1.push(...ring1, ...ring1s)
|