openatc-components 0.4.71 → 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/config/index.js +137 -137
- package/package/kisscomps/components/OptimizeKanban/index.js +2 -0
- package/package/kisscomps/components/OptimizeKanban/index.vue +369 -0
- package/package/kisscomps/components/OverLap/OverLap.vue +22 -1
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +45 -3
- package/package/kisscomps/components/StageOptimize/index.vue +310 -0
- 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 +45 -3
- package/src/node_modules/.package_versions.json +1 -0
package/package.json
CHANGED
|
@@ -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),
|
|
@@ -757,6 +757,20 @@ export default {
|
|
|
757
757
|
let addRing1 = [...new Set(resultArrs[1])].filter(item => newCurrent[h].includes(item))
|
|
758
758
|
ring1s.push(addRing1)
|
|
759
759
|
}
|
|
760
|
+
// 双环相位数不等的时候
|
|
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
|
+
}
|
|
772
|
+
}
|
|
773
|
+
}
|
|
760
774
|
barrierRing1.push(...ring1, ...ring1s)
|
|
761
775
|
let resultList = []
|
|
762
776
|
if (newRings.length > 1) {
|
|
@@ -1043,6 +1057,20 @@ export default {
|
|
|
1043
1057
|
let addRing1 = [...new Set(resultArrs[1])].filter(item => newCurrent[h].includes(item))
|
|
1044
1058
|
ring1s.push(addRing1)
|
|
1045
1059
|
}
|
|
1060
|
+
// 双环相位数不等的时候
|
|
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
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1046
1074
|
barrierRing1.push(...ring1, ...ring1s)
|
|
1047
1075
|
let resultList = []
|
|
1048
1076
|
if (newRings.length > 1) {
|
|
@@ -1292,6 +1320,20 @@ export default {
|
|
|
1292
1320
|
let addRing1 = [...new Set(resultArrs[1])].filter(item => newCurrent[h].includes(item))
|
|
1293
1321
|
ring1s.push(addRing1)
|
|
1294
1322
|
}
|
|
1323
|
+
// 双环相位数不等的时候
|
|
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
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1295
1337
|
barrierRing1.push(...ring1, ...ring1s)
|
|
1296
1338
|
let resultList = []
|
|
1297
1339
|
if (newRings.length >= 1) {
|
|
@@ -1350,9 +1392,6 @@ export default {
|
|
|
1350
1392
|
if (this.patternList) {
|
|
1351
1393
|
this.setBarrier(ringTeams, val)
|
|
1352
1394
|
}
|
|
1353
|
-
if (newRings.length > 1) {
|
|
1354
|
-
this.fillGap(ringTeams, val)
|
|
1355
|
-
}
|
|
1356
1395
|
if (this.cycleChange) {
|
|
1357
1396
|
const globalParamModel = this.$store.getters.globalParamModel
|
|
1358
1397
|
let pattern = globalParamModel.getParamsByType('patternList')
|
|
@@ -1362,6 +1401,9 @@ export default {
|
|
|
1362
1401
|
} else {
|
|
1363
1402
|
this.max = ''
|
|
1364
1403
|
}
|
|
1404
|
+
if (newRings.length > 1) {
|
|
1405
|
+
this.fillGap(ringTeams, val)
|
|
1406
|
+
}
|
|
1365
1407
|
let barrier = this.step2(ringTeams, newPattern)
|
|
1366
1408
|
let barrierLeft = barrier.map(item => item)// 屏障左移显示出人行横道
|
|
1367
1409
|
this.barrierList = barrierLeft.map(j => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|