openatc-components 0.5.47 → 0.5.49
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 +8 -4
- package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +13 -4
- package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +11 -4
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +8 -4
- package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +13 -4
- package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +11 -4
- package/package/kisscomps/components/OptimizeKanban/index.js +0 -2
- package/package/kisscomps/components/OptimizeKanban/index.vue +0 -369
- package/package/kisscomps/components/StageOptimize/index.vue +0 -310
- package/src/node_modules/.package_versions.json +0 -1
|
@@ -100,10 +100,10 @@
|
|
|
100
100
|
</div>
|
|
101
101
|
<!-- 车道灯 -->
|
|
102
102
|
<div v-if="resetflag" class="roadwayLightIcon">
|
|
103
|
-
<div :key="item.id" v-for="item in
|
|
103
|
+
<div :key="item.id" v-for="item in compRoadwayLightData" :style="{position: 'absolute', left: item.lightx, top: item.lighty}">
|
|
104
104
|
<svg t="1773302927218" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="22220" width="17.59" height="17.59"><path d="M868.018201 392.930029h-79.379804V252.956975C789.432195 101.34155 665.070503 0 512.13208 0S234.567366 102.664546 234.567366 254.279972v138.650057h-79.379804A68.266631 68.266631 0 0 0 87.450129 460.932062v495.065377a68.266631 68.266631 0 0 0 68.531231 68.002032H868.018201a68.266631 68.266631 0 0 0 68.531231-68.002032V460.932062a68.266631 68.266631 0 0 0-68.531231-68.002033z m-317.519215 328.367789v108.221133a8.996378 8.996378 0 0 1-8.996378 8.996378h-59.005655a8.996378 8.996378 0 0 1-8.996377-8.996378v-108.221133a84.407192 84.407192 0 0 1-46.834085-74.881615 85.465589 85.465589 0 0 1 170.666579 0 83.877993 83.877993 0 0 1-46.834084 74.881615z m132.299673-326.515593H341.200902V243.695998c0-79.379804 76.73381-144.735843 170.931178-144.735842s170.931178 65.091439 170.931178 144.735842z" fill="#fff" p-id="22221"></path></svg>
|
|
105
105
|
</div>
|
|
106
|
-
<PhaseIconSvg v-for="(item, index) in
|
|
106
|
+
<PhaseIconSvg v-for="(item, index) in compRoadwayLightData" :key="item.key + '-' + index" :Data="item" :clickMode="false" />
|
|
107
107
|
</div>
|
|
108
108
|
<!-- 公交相位 -->
|
|
109
109
|
<div v-if="resetflag && !isVipRoute" class="busIcon">
|
|
@@ -407,6 +407,7 @@ export default {
|
|
|
407
407
|
comdireOverlapPhaseData: [], // 对比相同方向车道跟随相位数据后,被删减的唯一direction的数组
|
|
408
408
|
busPhaseData: [], // 公交相位数据
|
|
409
409
|
comdireBusPhaseData: [], // 对比相同方向公交车道数据后,被删减的唯一direction的数组
|
|
410
|
+
compRoadwayLightData: [], // 车道灯状态映射过的车道灯数据
|
|
410
411
|
channelStatusMap: new Map(), // 通道实时状态映射
|
|
411
412
|
channelStatusList: [], // 通道实时状态列表
|
|
412
413
|
phaseDirMap: new Map(),
|
|
@@ -464,6 +465,9 @@ export default {
|
|
|
464
465
|
this.SpecialControl(val)
|
|
465
466
|
}
|
|
466
467
|
this.isHasPhase = false
|
|
468
|
+
// 特殊控制拿不到状态数据,需要重置车道灯map,状态映射车道灯消失
|
|
469
|
+
this.roadwayLightStatusMap = new Map()
|
|
470
|
+
this.getRoadwayLightStatus()
|
|
467
471
|
return
|
|
468
472
|
}
|
|
469
473
|
if (!val.phase && !this.overlapStatusList) {
|
|
@@ -789,7 +793,7 @@ export default {
|
|
|
789
793
|
}
|
|
790
794
|
curData.push(data)
|
|
791
795
|
}
|
|
792
|
-
this.
|
|
796
|
+
this.compRoadwayLightData = JSON.parse(JSON.stringify(curData))
|
|
793
797
|
},
|
|
794
798
|
getBusPhaseStatus () {
|
|
795
799
|
// 得到公交车道相位状态(颜色)
|
|
@@ -1211,7 +1215,7 @@ export default {
|
|
|
1211
1215
|
})
|
|
1212
1216
|
// 去掉重复方向的数据
|
|
1213
1217
|
const ids = Array.from(new Set(this.roadwayLightData.map(item => item.id)))
|
|
1214
|
-
this.
|
|
1218
|
+
this.compRoadwayLightData = ids.map(id => this.roadwayLightData.find(item => item.id === id))
|
|
1215
1219
|
},
|
|
1216
1220
|
getEffectDirectionPos () {
|
|
1217
1221
|
this.effectDirData = []
|
package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue
CHANGED
|
@@ -80,9 +80,14 @@ export default {
|
|
|
80
80
|
if (this.isVipRoute) {
|
|
81
81
|
this.handleStatus()
|
|
82
82
|
}
|
|
83
|
-
if (
|
|
84
|
-
|
|
85
|
-
//
|
|
83
|
+
if (val.type === 4 || val.type === '黄闪' || val.type === 5 || val.type === 6) {
|
|
84
|
+
// type黄闪代表全部相位黄闪状态
|
|
85
|
+
// type 4绿闪、5黄闪、6 红闪
|
|
86
|
+
if (val.type !== this.lastType) {
|
|
87
|
+
// 清除旧的
|
|
88
|
+
if (this.GreenIntervalId) {
|
|
89
|
+
clearInterval(this.GreenIntervalId)
|
|
90
|
+
}
|
|
86
91
|
let highlightColor = ''
|
|
87
92
|
if (val.type === 4) {
|
|
88
93
|
highlightColor = this.GreenColor
|
|
@@ -101,7 +106,11 @@ export default {
|
|
|
101
106
|
}
|
|
102
107
|
}
|
|
103
108
|
if (this.GreenIntervalId && val.type !== 4 && val.type !== '黄闪' && val.type !== 5 && val.type !== 6 && val.type !== this.lastType) {
|
|
104
|
-
|
|
109
|
+
// 非闪烁状态 → 清除
|
|
110
|
+
if (this.GreenIntervalId) {
|
|
111
|
+
clearInterval(this.GreenIntervalId)
|
|
112
|
+
this.GreenIntervalId = null
|
|
113
|
+
}
|
|
105
114
|
this.FlashColor = undefined
|
|
106
115
|
this.lastType = ''
|
|
107
116
|
}
|
package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue
CHANGED
|
@@ -100,11 +100,14 @@ export default {
|
|
|
100
100
|
if (this.isVipRoute || this.customClick) {
|
|
101
101
|
this.handleStatus()
|
|
102
102
|
}
|
|
103
|
-
if (
|
|
103
|
+
if (val.type === 4 || val.type === '黄闪' || val.type === 5 || val.type === 6) {
|
|
104
104
|
// type黄闪代表全部相位黄闪状态
|
|
105
105
|
// type 4绿闪、5黄闪、6 红闪
|
|
106
|
-
if (val.type
|
|
107
|
-
//
|
|
106
|
+
if (val.type !== this.lastStatus) {
|
|
107
|
+
// 清除旧的
|
|
108
|
+
if (this.GreenIntervalId) {
|
|
109
|
+
clearInterval(this.GreenIntervalId)
|
|
110
|
+
}
|
|
108
111
|
let highlightColor = ''
|
|
109
112
|
if (val.type === 4) {
|
|
110
113
|
highlightColor = this.GreenColor
|
|
@@ -123,7 +126,11 @@ export default {
|
|
|
123
126
|
}
|
|
124
127
|
}
|
|
125
128
|
if (this.GreenIntervalId && val.type !== 4 && val.type !== '黄闪' && val.type !== 5 && val.type !== 6 && val.type !== this.lastStatus) {
|
|
126
|
-
|
|
129
|
+
// 非闪烁状态 → 清除
|
|
130
|
+
if (this.GreenIntervalId) {
|
|
131
|
+
clearInterval(this.GreenIntervalId)
|
|
132
|
+
this.GreenIntervalId = null
|
|
133
|
+
}
|
|
127
134
|
this.FlashColor = undefined
|
|
128
135
|
this.lastStatus = ''
|
|
129
136
|
}
|