openatc-components 0.4.90 → 0.4.91
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/IntersectionDirectionSelection/IntersectionDirectionSelection.vue +4 -0
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkClickSvg.vue +4 -2
- package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +11 -7
- package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +5 -0
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/IntersectionDirectionSelection/IntersectionDirectionSelection.vue +4 -0
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkClickSvg.vue +4 -2
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +11 -7
- package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +5 -0
- package/src/views/intersection.vue +16 -17
package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkClickSvg.vue
CHANGED
|
@@ -1263,8 +1263,10 @@ export default {
|
|
|
1263
1263
|
init () {
|
|
1264
1264
|
this.sidewalkData = JSON.parse(JSON.stringify(this.Data))
|
|
1265
1265
|
this.getPedDirection()
|
|
1266
|
-
this
|
|
1267
|
-
|
|
1266
|
+
this.$nextTick(() => {
|
|
1267
|
+
this.handleStatus()
|
|
1268
|
+
this.IconAddEvent()
|
|
1269
|
+
})
|
|
1268
1270
|
}
|
|
1269
1271
|
},
|
|
1270
1272
|
mounted () {
|
|
@@ -879,7 +879,16 @@ export default {
|
|
|
879
879
|
return
|
|
880
880
|
}
|
|
881
881
|
this.isLoaded = true
|
|
882
|
-
this.
|
|
882
|
+
this.InfoRes = res
|
|
883
|
+
this.handleInfo(res)
|
|
884
|
+
})
|
|
885
|
+
},
|
|
886
|
+
refreshArrow () {
|
|
887
|
+
// 刷新所选方向箭头,不重新请求接口
|
|
888
|
+
this.handleInfo(this.InfoRes)
|
|
889
|
+
},
|
|
890
|
+
handleInfo (res) {
|
|
891
|
+
this.tempType = res.data.data.type
|
|
883
892
|
// 获取车道相位、行人相位信息(坐标、名称)
|
|
884
893
|
this.mainType = this.tempType.split('-')[0]
|
|
885
894
|
this.mainDirection = this.tempType.split('-')[1]
|
|
@@ -888,13 +897,11 @@ export default {
|
|
|
888
897
|
this.getMergeDirections()
|
|
889
898
|
}
|
|
890
899
|
if (this.isVipRoute && !this.isThirdSignal && !this.isRcp) {
|
|
891
|
-
alert('1')
|
|
892
900
|
// 特勤、分组管控下,非第三方设备且不是rcp协议,按通道显示相位方向;第三方设备和rcp协议还是按路口相位配置显示相位方向
|
|
893
901
|
this.getChannelInfo()
|
|
894
902
|
return
|
|
895
903
|
}
|
|
896
904
|
if (this.channelType && !this.isThirdSignal) {
|
|
897
|
-
alert('2')
|
|
898
905
|
this.getChannelInfo()
|
|
899
906
|
return
|
|
900
907
|
}
|
|
@@ -915,7 +922,6 @@ export default {
|
|
|
915
922
|
this.contrloType = 'ring'
|
|
916
923
|
}
|
|
917
924
|
}
|
|
918
|
-
})
|
|
919
925
|
},
|
|
920
926
|
getTempCrossInfo (res) {
|
|
921
927
|
this.crossInfo = res.data.data.param
|
|
@@ -938,7 +944,6 @@ export default {
|
|
|
938
944
|
this.drawDefaultPhaseIcon()
|
|
939
945
|
}
|
|
940
946
|
if ((this.isVipRoute && this.isThirdSignal) || (this.isVipRoute && this.isRcp)) {
|
|
941
|
-
alert('3')
|
|
942
947
|
this.LanePhaseData = this.CrossDiagramMgr.compare(this.LanePhaseData, this.overlapLanePhaseData, 'type', 'nostatus')
|
|
943
948
|
// console.log(this.LanePhaseData)
|
|
944
949
|
this.sidewalkPhaseData = this.CrossDiagramMgr.compare(this.sidewalkPhaseData, this.overlapsidewalkPhaseData, 'pedtype', 'nostatus')
|
|
@@ -1370,7 +1375,6 @@ export default {
|
|
|
1370
1375
|
const targetIds = [4, 8, 12, 16] // 掉头相位后画
|
|
1371
1376
|
this.LanePhaseData = this.LanePhaseData.filter(item => !targetIds.includes(item.id)).concat(this.LanePhaseData.filter(item => targetIds.includes(item.id)))
|
|
1372
1377
|
if (!this.isThirdSignal && this.isVipRoute && !this.isRcp) {
|
|
1373
|
-
alert('4')
|
|
1374
1378
|
await this.getConflictList()
|
|
1375
1379
|
this.handleClickedPhase()
|
|
1376
1380
|
this.compLanePhaseData = JSON.parse(JSON.stringify(this.LanePhaseData))
|
|
@@ -1421,7 +1425,7 @@ export default {
|
|
|
1421
1425
|
this.EmitAllChoosedDirection(curClickedPhase)
|
|
1422
1426
|
},
|
|
1423
1427
|
handleClickedPedPhase () {
|
|
1424
|
-
if (!this.isThirdSignal) {
|
|
1428
|
+
if (!this.isThirdSignal && !this.isRcp) {
|
|
1425
1429
|
this.inneChoosedPedDirection = this.inneChoosedPedDirection.filter(dir => this.pedConflictList.indexOf(dir) === -1)
|
|
1426
1430
|
}
|
|
1427
1431
|
// 排他
|