openatc-components 0.2.77 → 0.2.79
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/ChannelRealtimeIntersection/ChannelRealtimeIntersection.vue +100 -0
- package/package/kisscomps/components/ChannelRealtimeIntersection/index.js +2 -0
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkClickSvg.vue +34 -4
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/sidewalk.svg +535 -0
- package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +68 -61
- package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +19 -19
- package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +19 -19
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.json +8 -8
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.left.json +8 -8
- package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +13 -1
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +1 -25
- package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +0 -8
- package/package/kisscomps/index.js +2 -0
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/i18n/language/en.js +0 -2
- package/src/i18n/language/zh.js +0 -2
- package/src/kisscomps/components/ChannelRealtimeIntersection/ChannelRealtimeIntersection.vue +100 -0
- package/src/kisscomps/components/ChannelRealtimeIntersection/index.js +2 -0
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkClickSvg.vue +34 -4
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/sidewalk.svg +535 -0
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +68 -61
- package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +19 -19
- package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +19 -19
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.json +8 -8
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.left.json +8 -8
- package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +13 -1
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +1 -25
- package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +0 -8
- package/src/kisscomps/index.js +2 -0
- package/src/views/intersection.vue +60 -28
- package/src/views/overView.vue +1 -1
- package/src/node_modules/.package_versions.json +0 -1
|
@@ -32,14 +32,11 @@
|
|
|
32
32
|
<div class="right-dir-road" v-if="roadDir === 'right'">
|
|
33
33
|
<div class="centerText" v-if="crossType !== 'Customroads' && isHasPhase">
|
|
34
34
|
<!-- 相位倒计时 -->
|
|
35
|
-
<div class="phaseCountdown" v-show="isShowInterval" v-if="isLoaded && isHasPhase
|
|
35
|
+
<div class="phaseCountdown" v-show="isShowInterval" v-if="isLoaded && isHasPhase" :class="{'countdownBg': isLoaded}">
|
|
36
36
|
<div v-for="curPhase in phaseCountdownList" :key="curPhase.id" :style="{color: curPhase.phaseCountdownColor}">
|
|
37
|
-
<div v-if="curPhase.phaseCountdown !==
|
|
38
|
-
<span style="float: left;
|
|
39
|
-
|
|
40
|
-
</span>
|
|
41
|
-
<span style="float: left;color: #fff;margin-right: 8px;width: 30px;">P{{curPhase.id}}:</span>
|
|
42
|
-
<span style="float: left;font-size: 25px;">{{curPhase.phaseCountdown}}</span>
|
|
37
|
+
<div v-if="curPhase.phaseCountdown !== -1">
|
|
38
|
+
<span style="float: left;font-size: 20px;color: #fff;width: 70px;">{{$t('openatccomponents.overview.phase')}}{{curPhase.id}}:</span>
|
|
39
|
+
<span style="float: left;">{{curPhase.phaseCountdown}}</span>
|
|
43
40
|
</div>
|
|
44
41
|
</div>
|
|
45
42
|
</div>
|
|
@@ -97,14 +94,11 @@
|
|
|
97
94
|
<div class="left-dir-road" v-if="roadDir === 'left'">
|
|
98
95
|
<div class="centerText" v-if="mainType === '100' || mainType === '101'" :class="{'countdownBg': isLoaded}">
|
|
99
96
|
<!-- 相位倒计时 -->
|
|
100
|
-
<div class="phaseCountdown" v-
|
|
97
|
+
<div class="phaseCountdown" v-if="isLoaded && isHasPhase">
|
|
101
98
|
<div v-for="curPhase in phaseCountdownList" :key="curPhase.id" :style="{color: curPhase.phaseCountdownColor}">
|
|
102
|
-
<div v-if="curPhase.phaseCountdown !==
|
|
103
|
-
<span style="float: left;
|
|
104
|
-
|
|
105
|
-
</span>
|
|
106
|
-
<span style="float: left;color: #fff;margin-right: 8px;width: 30px;">P{{curPhase.id}}:</span>
|
|
107
|
-
<span style="float: left;font-size: 25px;">{{curPhase.phaseCountdown}}</span>
|
|
99
|
+
<div v-if="curPhase.phaseCountdown !== -1">
|
|
100
|
+
<span style="float: left;font-size: 20px;color: #fff;width: 70px;">{{$t('openatccomponents.overview.phase')}}{{curPhase.id}}:</span>
|
|
101
|
+
<span style="float: left;">{{curPhase.phaseCountdown}}</span>
|
|
108
102
|
</div>
|
|
109
103
|
</div>
|
|
110
104
|
</div>
|
|
@@ -246,10 +240,12 @@ export default {
|
|
|
246
240
|
default: ''
|
|
247
241
|
},
|
|
248
242
|
choosedDirection: {
|
|
249
|
-
type: Array
|
|
243
|
+
type: Array,
|
|
244
|
+
default: () => []
|
|
250
245
|
},
|
|
251
246
|
choosedPedDirection: {
|
|
252
|
-
type: Array
|
|
247
|
+
type: Array,
|
|
248
|
+
default: () => []
|
|
253
249
|
},
|
|
254
250
|
isVipRoute: { // 区分普通路口和VIP路口,如果是vip路口(特勤路线和分组管控),才需要获取通道和处理通道冲突,并显示已选方向
|
|
255
251
|
type: Boolean,
|
|
@@ -262,6 +258,10 @@ export default {
|
|
|
262
258
|
isThirdSignal: {
|
|
263
259
|
type: Boolean,
|
|
264
260
|
default: false
|
|
261
|
+
},
|
|
262
|
+
channelType: {
|
|
263
|
+
type: Boolean,
|
|
264
|
+
default: false
|
|
265
265
|
}
|
|
266
266
|
},
|
|
267
267
|
// computed: {
|
|
@@ -279,10 +279,20 @@ export default {
|
|
|
279
279
|
handler: function (val, oldVal) {
|
|
280
280
|
// 路口状态数据
|
|
281
281
|
this.statusData = JSON.parse(JSON.stringify(val))
|
|
282
|
-
this.phaseStatusList = val.phase
|
|
283
|
-
this.overlapStatusList = val.overlap
|
|
284
282
|
// 默认显示相位数据(包括黄闪、全红、关灯状态下,或者匝道,均不做比对跟随相位的处理)
|
|
285
283
|
this.drawDefaultPhaseIcon()
|
|
284
|
+
if (this.channelType) {
|
|
285
|
+
this.channelStatusList = val.channellamp
|
|
286
|
+
// 显示实时通道状态
|
|
287
|
+
this.createChannelStatusMap()
|
|
288
|
+
this.getChannelPhaseStatus()
|
|
289
|
+
// this.getChannelPedStatus()
|
|
290
|
+
// this.getChannelCountdown()
|
|
291
|
+
return
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
this.phaseStatusList = val.phase
|
|
295
|
+
this.overlapStatusList = val.overlap
|
|
286
296
|
if (val.control === 1 || val.control === 2 || val.control === 3) {
|
|
287
297
|
// 黄闪、全红、关灯属于特殊控制,优先级最高,直接改变灯色,不用判断phase里的type,也不需要考虑跟随相位的灯色优先级
|
|
288
298
|
if (val.control === 1) {
|
|
@@ -382,15 +392,8 @@ export default {
|
|
|
382
392
|
comdireOverlapPhaseData: [], // 对比相同方向车道跟随相位数据后,被删减的唯一direction的数组
|
|
383
393
|
busPhaseData: [], // 公交相位数据
|
|
384
394
|
comdireBusPhaseData: [], // 对比相同方向公交车道数据后,被删减的唯一direction的数组
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
left: '5px',
|
|
388
|
-
top: '4px'
|
|
389
|
-
},
|
|
390
|
-
xdrpedData: {
|
|
391
|
-
left: '1px',
|
|
392
|
-
top: '1px'
|
|
393
|
-
}
|
|
395
|
+
channelStatusMap: new Map(), // 通道实时状态映射
|
|
396
|
+
channelStatusList: [] // 通道实时状态列表
|
|
394
397
|
}
|
|
395
398
|
},
|
|
396
399
|
methods: {
|
|
@@ -642,7 +645,6 @@ export default {
|
|
|
642
645
|
getCurPhaseCountdown () {
|
|
643
646
|
// 获取当前相位倒计时颜色
|
|
644
647
|
this.phaseCountdownList = []
|
|
645
|
-
this.isHasCountdown = false
|
|
646
648
|
this.curPhase.forEach(curP => {
|
|
647
649
|
this.phaseStatusList.forEach(phaseInfo => {
|
|
648
650
|
if (phaseInfo.id === curP) {
|
|
@@ -650,35 +652,11 @@ export default {
|
|
|
650
652
|
countdownObj.id = phaseInfo.id
|
|
651
653
|
countdownObj.phaseCountdown = phaseInfo.countdown
|
|
652
654
|
countdownObj.phaseCountdownColor = this.ColorMap.get(phaseInfo.type)
|
|
653
|
-
let curphasedir = this.phaseDirMap.get(phaseInfo.id)
|
|
654
|
-
if (curphasedir !== undefined) {
|
|
655
|
-
countdownObj.showlist = curphasedir.direction.map(dir => {
|
|
656
|
-
return {
|
|
657
|
-
id: dir,
|
|
658
|
-
peddirection: this.getshowped(curphasedir.peddirection),
|
|
659
|
-
color: '#fff'
|
|
660
|
-
}
|
|
661
|
-
})
|
|
662
|
-
} else {
|
|
663
|
-
countdownObj.showlist = []
|
|
664
|
-
}
|
|
665
|
-
|
|
666
655
|
this.phaseCountdownList.push(countdownObj)
|
|
667
|
-
if (phaseInfo.countdown !== undefined && phaseInfo.countdown !== -1) {
|
|
668
|
-
this.isHasCountdown = true
|
|
669
|
-
}
|
|
670
656
|
}
|
|
671
657
|
})
|
|
672
658
|
})
|
|
673
659
|
},
|
|
674
|
-
getshowped (peddirection) {
|
|
675
|
-
let peddirarr = peddirection.map(peddir => ({
|
|
676
|
-
id: peddir,
|
|
677
|
-
name: this.PhaseDataModel.getSidePos(peddir).name,
|
|
678
|
-
color: 'rgba(255, 255, 255, 0.4)'
|
|
679
|
-
}))
|
|
680
|
-
return peddirarr
|
|
681
|
-
},
|
|
682
660
|
getIntersectionInfo () {
|
|
683
661
|
// 获取路口信息
|
|
684
662
|
const agentid = this.agentId || '0'
|
|
@@ -709,8 +687,11 @@ export default {
|
|
|
709
687
|
this.getChannelInfo()
|
|
710
688
|
return
|
|
711
689
|
}
|
|
690
|
+
if (this.channelType) {
|
|
691
|
+
this.getChannelInfo()
|
|
692
|
+
return
|
|
693
|
+
}
|
|
712
694
|
this.crossInfo = res.data.data.param
|
|
713
|
-
this.crossInfo.phaseList.forEach(cross => this.phaseDirMap.set(cross.id, {direction: cross.direction, peddirection: cross.peddirection}))
|
|
714
695
|
if (this.mainType === '100' || this.mainType === '101' || this.mainType === '104') {
|
|
715
696
|
// 城市道路加载车道相位坐标和人行道坐标
|
|
716
697
|
this.getPhasePos()
|
|
@@ -1085,7 +1066,7 @@ export default {
|
|
|
1085
1066
|
async drawPhaseIcon () {
|
|
1086
1067
|
const targetIds = [4, 8, 12, 16] // 掉头相位后画
|
|
1087
1068
|
this.LanePhaseData = this.LanePhaseData.filter(item => !targetIds.includes(item.id)).concat(this.LanePhaseData.filter(item => targetIds.includes(item.id)))
|
|
1088
|
-
if (!this.isThirdSignal) {
|
|
1069
|
+
if (!this.isThirdSignal && this.isVipRoute) {
|
|
1089
1070
|
await this.getConflictList()
|
|
1090
1071
|
this.handleClickedPhase()
|
|
1091
1072
|
this.compLanePhaseData = JSON.parse(JSON.stringify(this.LanePhaseData))
|
|
@@ -1195,6 +1176,34 @@ export default {
|
|
|
1195
1176
|
// console.log(this.LanePhaseData)
|
|
1196
1177
|
}
|
|
1197
1178
|
})
|
|
1179
|
+
},
|
|
1180
|
+
createChannelStatusMap () {
|
|
1181
|
+
// 生成相位id和相位状态对应数据结构
|
|
1182
|
+
this.channelStatusList.map(channel => {
|
|
1183
|
+
let channelId = channel.id
|
|
1184
|
+
let channelInfo = {
|
|
1185
|
+
type: channel.light
|
|
1186
|
+
}
|
|
1187
|
+
this.channelStatusMap.set(channelId, channelInfo)
|
|
1188
|
+
})
|
|
1189
|
+
},
|
|
1190
|
+
getChannelPhaseStatus () {
|
|
1191
|
+
this.comdirePhaseData = []
|
|
1192
|
+
let curLanePhaseData = []
|
|
1193
|
+
for (let i = 0; i < this.LanePhaseData.length; i++) {
|
|
1194
|
+
let curPhaseStatus = this.channelStatusMap.get(this.LanePhaseData[i].channelid)
|
|
1195
|
+
if (!curPhaseStatus) continue
|
|
1196
|
+
const data = {
|
|
1197
|
+
...this.LanePhaseData[i],
|
|
1198
|
+
type: curPhaseStatus.type,
|
|
1199
|
+
color: this.ColorMap.get(curPhaseStatus.type),
|
|
1200
|
+
// phaseCountdown: curPhaseStatus.phaseCountdown,
|
|
1201
|
+
flag: 'channel' // 车道相位数据标识
|
|
1202
|
+
}
|
|
1203
|
+
curLanePhaseData.push(data)
|
|
1204
|
+
}
|
|
1205
|
+
this.LanePhaseData = JSON.parse(JSON.stringify(curLanePhaseData))
|
|
1206
|
+
this.compLanePhaseData = JSON.parse(JSON.stringify(this.LanePhaseData))
|
|
1198
1207
|
}
|
|
1199
1208
|
},
|
|
1200
1209
|
mounted () {
|
|
@@ -1227,8 +1236,8 @@ export default {
|
|
|
1227
1236
|
/* padding-left: 16px; */
|
|
1228
1237
|
}
|
|
1229
1238
|
.phaseCountdown {
|
|
1230
|
-
line-height:
|
|
1231
|
-
font-size:
|
|
1239
|
+
line-height: 40px;
|
|
1240
|
+
font-size: 30px;
|
|
1232
1241
|
font-weight: normal;
|
|
1233
1242
|
font-stretch: normal;
|
|
1234
1243
|
letter-spacing: 0px;
|
|
@@ -1237,16 +1246,14 @@ export default {
|
|
|
1237
1246
|
margin: 0 auto;
|
|
1238
1247
|
}
|
|
1239
1248
|
.countdownBg {
|
|
1240
|
-
border-radius:
|
|
1249
|
+
border-radius: 10px;
|
|
1241
1250
|
background-color: rgba(94, 90, 90, 0.8);
|
|
1242
|
-
padding-left:
|
|
1243
|
-
padding-top: 10PX;
|
|
1244
|
-
padding-bottom: 10PX;
|
|
1251
|
+
padding-left: 16px;
|
|
1245
1252
|
}
|
|
1246
1253
|
.centerText .text {
|
|
1247
1254
|
display: inline-block;
|
|
1248
1255
|
color: #299BCC;
|
|
1249
|
-
margin-top:
|
|
1256
|
+
margin-top: 20px;
|
|
1250
1257
|
}
|
|
1251
1258
|
|
|
1252
1259
|
.baseImg {
|
package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue
CHANGED
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
<template>
|
|
13
13
|
<div :id="Data.key" :style="{position: 'absolute', left: Data.left, top: Data.top}">
|
|
14
14
|
<div :class="Data.id < 9 ? '' : 'hide'">
|
|
15
|
-
<svg v-if="Data.id === 4 || Data.id === 8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 18.1 14.5" :width="IconLenghDiaoTou" :height="IconWdithDiaoTou">
|
|
15
|
+
<!-- <svg v-if="Data.id === 4 || Data.id === 8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 18.1 14.5" :width="IconLenghDiaoTou" :height="IconWdithDiaoTou">
|
|
16
16
|
<path id="东掉头" :class="Data.name === '东掉头' ? '' : 'invisible'" d="M4.876,3.054H8.5V0.039L16.07,4.276,8.411,8.513V5.5H4.792C3.53,5.5,2.436,6.883,2.436,8.513s1.094,3.015,2.357,3.015H18.006v2.444H4.876A5.2,5.2,0,0,1-.005,8.513,5.2,5.2,0,0,1,4.876,3.054Z" transform="translate(0 -0.031)" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
17
17
|
<path id="西掉头" :class="Data.name === '西掉头' ? '' : 'invisible'" d="M13.124,10.964H9.5v3.028L1.93,9.736,9.589,5.48V8.508h3.619c1.262,0,2.357-1.391,2.357-3.028S14.47,2.452,13.208,2.452H-0.006V0H13.124c2.693,0,4.881,2.455,4.881,5.483S15.817,10.964,13.124,10.964Z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
18
|
-
</svg>
|
|
19
|
-
<svg
|
|
18
|
+
</svg> -->
|
|
19
|
+
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
20
20
|
viewBox="0 0 36 26" style="enable-background:new 0 0 36 26;" xml:space="preserve" :width="IconLengh" :height="IconWdith">
|
|
21
21
|
<!-- 东相位 -->
|
|
22
22
|
<path id="东左转" :class="Data.name === '东左转' ? '' : 'invisible'" d="M11,7.1h24v-3H10.9c-3.1,0-5.7,2.6-5.8,5.7l-0.4,2.9L1,12.2l3.9,9.7l6.5-8.2l-3.7-0.5l0.5-3.3
|
|
@@ -24,24 +24,22 @@
|
|
|
24
24
|
<path id="东右转" :class="Data.name === '东右转' ? '' : 'invisible'" d="M8.1,15.8l-0.4-3l3.7-0.5L4.9,4.1L1,13.8l3.7-0.5l0.4,2.9c0,3.2,2.6,5.7,5.8,5.7H35v-3H10.9
|
|
25
25
|
c-1.5,0-2.8-1.3-2.8-2.8V15.8z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
26
26
|
<polygon id="东直行" :class="Data.name === '东直行' ? '' : 'invisible'" points="35,11.5 10.1,11.5 10.1,7.8 0.9,13 10.1,18.2 10.1,14.5 35,14.5 " :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
27
|
-
|
|
28
|
-
l9.1-5.2l-9.1-5.2v3.7h-4.3C16.2,8.5,13.6,11.5,13.6,15.2z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/> -->
|
|
27
|
+
<path id="东掉头" :class="Data.name === '东掉头' ? '' : 'invisible'" d="M1.1,14.5c0,3.7,2.6,6.7,5.8,6.7H35v-3H6.8c-1.5,0-2.8-1.7-2.8-3.7s1.3-3.7,2.8-3.7h4.3v3.7l9.1-5.2l-9-5.2v3.7H6.9C3.7,7.8,1.1,10.8,1.1,14.5z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
29
28
|
<!-- 西相位 -->
|
|
30
29
|
<path id="西左转" :class="Data.name === '西左转' ? '' : 'invisible'" d="M25,18.9H1v3h24.1c3.1,0,5.7-2.6,5.8-5.7l0.4-2.9l3.7,0.5l-3.9-9.7l-6.5,8.2l3.7,0.5l-0.5,3.3
|
|
31
30
|
C27.8,17.6,26.6,18.9,25,18.9L25,18.9z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
32
31
|
<path id="西右转" :class="Data.name === '西右转' ? '' : 'invisible'" d="M27.9,10.2l0.4,3l-3.7,0.5l6.5,8.2l3.9-9.7l-3.7,0.5l-0.4-2.9c0-3.2-2.6-5.7-5.8-5.7H1v3h24.1
|
|
33
32
|
c1.5,0,2.8,1.3,2.8,2.8V10.2z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
34
33
|
<polygon id="西直行" :class="Data.name === '西直行' ? '' : 'invisible'" points="1,14.5 26,14.5 26,18.2 35.1,13 26,7.8 26,11.5 1,11.5 " :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
35
|
-
|
|
36
|
-
L3.3,16l9,5.3v-3.8h4.3C19.8,17.5,22.4,14.5,22.4,10.8z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/> -->
|
|
34
|
+
<path id="西掉头" :class="Data.name === '西掉头' ? '' : 'invisible'" d="M34.9,10.8c0-3.7-2.6-6.7-5.8-6.7H0.9v3h28.3c1.5,0,2.8,1.7,2.8,3.7s-1.3,3.7-2.8,3.7h-4.3v-3.7L15.8,16l9,5.2v-3.7h4.3C32.3,17.5,34.9,14.5,34.9,10.8z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
37
35
|
</svg>
|
|
38
36
|
</div>
|
|
39
37
|
<div :class="Data.id >= 9 ? '' : 'hide'">
|
|
40
|
-
<svg v-if="Data.id === 12 || Data.id === 16" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 14.5 18.1" :width="IconWdithDiaoTou" :height="IconLenghDiaoTou">
|
|
38
|
+
<!-- <svg v-if="Data.id === 12 || Data.id === 16" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 14.5 18.1" :width="IconWdithDiaoTou" :height="IconLenghDiaoTou">
|
|
41
39
|
<path id="南掉头" :class="Data.name === '南掉头' ? '' : 'invisible'" d="M10.946,4.876V8.5h3.015L9.724,16.07,5.487,8.411H8.5V4.792c0-1.262-1.385-2.357-3.015-2.357S2.472,3.53,2.472,4.792V18.006H0.028V4.876A5.2,5.2,0,0,1,5.487-.005,5.2,5.2,0,0,1,10.946,4.876Z" transform="translate(-0.031)" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
42
40
|
<path id="北掉头" :class="Data.name === '北掉头' ? '' : 'invisible'" d="M3.036,13.124V9.5H0.008L4.264,1.93,8.52,9.589H5.492v3.619c0,1.262,1.391,2.357,3.028,2.357s3.028-1.094,3.028-2.357V-0.006H14V13.124c0,2.693-2.455,4.881-5.483,4.881S3.036,15.817,3.036,13.124Z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
43
|
-
</svg>
|
|
44
|
-
<svg
|
|
41
|
+
</svg> -->
|
|
42
|
+
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
45
43
|
viewBox="0 0 26 36" style="enable-background:new 0 0 26 36;" xml:space="preserve" :width="IconWdith" :height="IconLengh">
|
|
46
44
|
<!-- 南相位 -->
|
|
47
45
|
<path id="南左转" :class="Data.name === '南左转' ? '' : 'invisible'" d="M18.9,11v24h3V10.9c0-3.1-2.6-5.7-5.7-5.8l-2.9-0.4L13.8,1L4.1,4.9l8.2,6.5l0.5-3.7l3.3,0.5
|
|
@@ -49,16 +47,14 @@ L3.3,16l9,5.3v-3.8h4.3C19.8,17.5,22.4,14.5,22.4,10.8z" :fill="this.FlashColor ?
|
|
|
49
47
|
<path id="南右转" :class="Data.name === '南右转' ? '' : 'invisible'" d="M10.2,8.1l3-0.4l0.5,3.7l8.2-6.5L12.2,1l0.5,3.7L9.8,5.1c-3.2,0-5.7,2.6-5.7,5.8V35h3V10.9
|
|
50
48
|
c0-1.5,1.3-2.8,2.8-2.8H10.2z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
51
49
|
<polygon id="南直行" :class="Data.name === '南直行' ? '' : 'invisible'" points="14.5,35 14.5,10.1 18.2,10.1 13,0.9 7.8,10.1 11.5,10.1 11.5,35 " :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
52
|
-
|
|
53
|
-
l5.2,9.1l5.2-9.1h-3.8v-4.3C17.4,16.2,14.4,13.6,10.8,13.6z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/> -->
|
|
50
|
+
<path id="南掉头" :class="Data.name === '南掉头' ? '' : 'invisible'" d="M11.5,1.1c-3.7,0-6.7,2.6-6.7,5.8V35h3V6.8C7.8,5.3,9.5,4,11.5,4s3.7,1.3,3.7,2.8v4.3h-3.7l5.2,9.1l5.2-9h-3.7V6.9C18.2,3.7,15.2,1.1,11.5,1.1z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
54
51
|
<!-- 北相位 -->
|
|
55
52
|
<path id="北左转" :class="Data.name === '北左转' ? '' : 'invisible'" d="M7.1,25V1h-3v24.1c0,3.1,2.6,5.7,5.7,5.8l2.9,0.4L12.2,35l9.7-3.9l-8.2-6.5l-0.5,3.7l-3.3-0.5
|
|
56
53
|
C8.4,27.8,7.1,26.6,7.1,25L7.1,25z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
57
54
|
<path id="北右转" :class="Data.name === '北右转' ? '' : 'invisible'" d="M15.8,27.9l-3,0.4l-0.5-3.7l-8.2,6.5l9.7,3.9l-0.5-3.7l2.9-0.4c3.2,0,5.7-2.6,5.7-5.8V1h-3v24.1
|
|
58
55
|
c0,1.5-1.3,2.8-2.8,2.8H15.8z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
59
56
|
<polygon id="北直行" :class="Data.name === '北直行' ? '' : 'invisible'" points="11.5,0.9 11.5,25.9 7.8,25.9 13,35 18.2,25.9 14.5,25.9 14.5,0.9 " :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
60
|
-
|
|
61
|
-
L10,3.3l-5.2,9h3.7v4.3C8.5,19.8,11.5,22.4,15.2,22.4z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/> -->
|
|
57
|
+
<path id="北掉头" :class="Data.name === '北掉头' ? '' : 'invisible'" d="M14.5,34.9c3.7,0,6.7-2.6,6.7-5.8V0.9h-3v28.3c0,1.5-1.7,2.8-3.7,2.8s-3.7-1.3-3.7-2.8v-4.3h3.7l-5.2-9.1l-5.2,9h3.7v4.3C7.8,32.3,10.8,34.9,14.5,34.9z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
62
58
|
</svg>
|
|
63
59
|
</div>
|
|
64
60
|
</div>
|
|
@@ -140,8 +136,9 @@ export default {
|
|
|
140
136
|
},
|
|
141
137
|
methods: {
|
|
142
138
|
handleClick (e) {
|
|
143
|
-
let
|
|
144
|
-
// console.log(
|
|
139
|
+
let clickedSvg = e.currentTarget
|
|
140
|
+
// console.log(clickedSvg)
|
|
141
|
+
let clickedPath = clickedSvg.querySelector(`#${this.Data.name}`)
|
|
145
142
|
if (clickedPath) {
|
|
146
143
|
// 在这里对找到的元素进行操作
|
|
147
144
|
if (clickedPath.getAttribute('disabled') === 'true') {
|
|
@@ -173,9 +170,12 @@ export default {
|
|
|
173
170
|
},
|
|
174
171
|
IconAddEvent () {
|
|
175
172
|
let IconDom = document.getElementById(this.Data.key)
|
|
176
|
-
let DirDom = IconDom.querySelector(`#${this.Data.name}`)
|
|
177
|
-
if (this.clickMode && DirDom.getAttribute('class') !== 'invisible') {
|
|
178
|
-
|
|
173
|
+
// let DirDom = IconDom.querySelector(`#${this.Data.name}`)
|
|
174
|
+
// if (this.clickMode && DirDom.getAttribute('class') !== 'invisible') {
|
|
175
|
+
// DirDom.addEventListener('click', this.handleClick)
|
|
176
|
+
// }
|
|
177
|
+
if (this.clickMode) {
|
|
178
|
+
IconDom.addEventListener('click', this.handleClick)
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
},
|
package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue
CHANGED
|
@@ -12,35 +12,33 @@
|
|
|
12
12
|
<template>
|
|
13
13
|
<div :id="Data.key" :style="{position: 'absolute', left: Data.left, top: Data.top}">
|
|
14
14
|
<div :class="Data.id < 9 ? '' : 'hide'">
|
|
15
|
-
<svg v-if="Data.id === 4 || Data.id === 8" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 14" :width="IconLenghDiaoTou" :height="IconWdithDiaoTou">
|
|
15
|
+
<!-- <svg v-if="Data.id === 4 || Data.id === 8" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 14" :width="IconLenghDiaoTou" :height="IconWdithDiaoTou">
|
|
16
16
|
<path id="东掉头" :class="Data.name === '东掉头' ? '' : 'invisible'" d="M4.876,10.981H8.5v3.042L16.07,9.748,8.411,5.474V8.515H4.792c-1.262,0-2.357-1.4-2.357-3.042S3.53,2.432,4.792,2.432H18.006V-0.034H4.876c-2.693,0-4.881,2.466-4.881,5.508S2.183,10.981,4.876,10.981Z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
17
17
|
<path id="西掉头" :class="Data.name === '西掉头' ? '' : 'invisible'" d="M13.124,3.036H9.5V0.008L1.93,4.264,9.589,8.52V5.492h3.619c1.262,0,2.357,1.391,2.357,3.028s-1.094,3.028-2.357,3.028H-0.006V14H13.124c2.693,0,4.881-2.455,4.881-5.483S15.817,3.036,13.124,3.036Z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
18
|
-
</svg>
|
|
19
|
-
<svg
|
|
18
|
+
</svg> -->
|
|
19
|
+
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 36 26" :width="IconLengh" :height="IconWdith">
|
|
20
20
|
<!-- 东相位 -->
|
|
21
21
|
<path id="东左转" :class="Data.name === '东左转' ? '' : 'invisible'" d="M11,7.1h24v-3H10.9c-3.1,0-5.7,2.6-5.8,5.7l-0.4,2.9L1,12.2l3.9,9.7l6.5-8.2l-3.7-0.5l0.5-3.3
|
|
22
22
|
C8.2,8.4,9.4,7.1,11,7.1L11,7.1z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
23
23
|
<path id="东右转" :class="Data.name === '东右转' ? '' : 'invisible'" d="M8.1,15.8l-0.4-3l3.7-0.5L4.9,4.1L1,13.8l3.7-0.5l0.4,2.9c0,3.2,2.6,5.7,5.8,5.7H35v-3H10.9
|
|
24
24
|
c-1.5,0-2.8-1.3-2.8-2.8V15.8z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
25
25
|
<polygon id="东直行" :class="Data.name === '东直行' ? '' : 'invisible'" points="35,11.5 10.1,11.5 10.1,7.8 0.9,13 10.1,18.2 10.1,14.5 35,14.5 " :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
26
|
-
|
|
27
|
-
c-3.2,0-5.8,3-5.8,6.7C13.6,14.5,16.2,17.5,19.4,17.5z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/> -->
|
|
26
|
+
<path id="东掉头" :class="Data.name === '东掉头' ? '' : 'invisible'" d="M6.9,17.5h4.3v3.7l9-5.2l-9.1-5.2v3.7H6.8c-1.5,0-2.8-1.7-2.8-3.7s1.3-3.7,2.8-3.7H35v-3H6.9c-3.2,0-5.8,3-5.8,6.7C1.1,14.5,3.7,17.5,6.9,17.5z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
28
27
|
<!-- 西相位 -->
|
|
29
28
|
<path id="西左转" :class="Data.name === '西左转' ? '' : 'invisible'" d="M25,18.9H1v3h24.1c3.1,0,5.7-2.6,5.8-5.7l0.4-2.9l3.7,0.5l-3.9-9.7l-6.5,8.2l3.7,0.5l-0.5,3.3
|
|
30
29
|
C27.8,17.6,26.6,18.9,25,18.9L25,18.9z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
31
30
|
<path id="西右转" :class="Data.name === '西右转' ? '' : 'invisible'" d="M27.9,10.2l0.4,3l-3.7,0.5l6.5,8.2l3.9-9.7l-3.7,0.5l-0.4-2.9c0-3.2-2.6-5.7-5.8-5.7H1v3h24.1
|
|
32
31
|
c1.5,0,2.8,1.3,2.8,2.8V10.2z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
33
32
|
<polygon id="西直行" :class="Data.name === '西直行' ? '' : 'invisible'" points="1,14.5 26,14.5 26,18.2 35.1,13 26,7.8 26,11.5 1,11.5 " :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
34
|
-
|
|
35
|
-
c3.2,0,5.8-3,5.8-6.7C22.4,11.5,19.8,8.5,16.6,8.5z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/> -->
|
|
33
|
+
<path id="西掉头" :class="Data.name === '西掉头' ? '' : 'invisible'" d="M29.1,8.5h-4.3V4.8l-9,5.2l9.1,5.2v-3.7h4.3c1.5,0,2.8,1.7,2.8,3.7s-1.3,3.7-2.8,3.7H0.9v3h28.2c3.2,0,5.8-3,5.8-6.7C34.9,11.5,32.3,8.5,29.1,8.5z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
36
34
|
</svg>
|
|
37
35
|
</div>
|
|
38
36
|
<div :class="Data.id >= 9 ? '' : 'hide'">
|
|
39
|
-
<svg v-if="Data.id === 12 || Data.id === 16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 18" :width="IconWdithDiaoTou" :height="IconLenghDiaoTou">
|
|
37
|
+
<!-- <svg v-if="Data.id === 12 || Data.id === 16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 18" :width="IconWdithDiaoTou" :height="IconLenghDiaoTou">
|
|
40
38
|
<path id="南掉头" :class="Data.name === '南掉头' ? '' : 'invisible'" d="M3.036,4.876V8.5H0.008L4.264,16.07,8.52,8.411H5.492V4.792c0-1.262,1.391-2.357,3.028-2.357s3.028,1.094,3.028,2.357V18.006H14V4.876C14,2.183,11.548-.005,8.52-0.005S3.036,2.183,3.036,4.876Z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)" />
|
|
41
39
|
<path id="北掉头" :class="Data.name === '北掉头' ? '' : 'invisible'" d="M10.981,13.124V9.5h3.042L9.748,1.93,5.474,9.589H8.515v3.619c0,1.262-1.4,2.357-3.042,2.357S2.432,14.47,2.432,13.208V-0.006H-0.034V13.124c0,2.693,2.466,4.881,5.508,4.881S10.981,15.817,10.981,13.124Z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)" />
|
|
42
|
-
</svg>
|
|
43
|
-
<svg
|
|
40
|
+
</svg> -->
|
|
41
|
+
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
|
|
44
42
|
viewBox="0 0 26 36" style="enable-background:new 0 0 26 36;" xml:space="preserve" :width="IconWdith" :height="IconLengh">
|
|
45
43
|
<!-- 南相位 -->
|
|
46
44
|
<path id="南左转" :class="Data.name === '南左转' ? '' : 'invisible'" d="M18.9,11v24h3V10.9c0-3.1-2.6-5.7-5.7-5.8l-2.9-0.4L13.8,1L4.1,4.9l8.2,6.5l0.5-3.7l3.3,0.5
|
|
@@ -48,16 +46,14 @@
|
|
|
48
46
|
<path id="南右转" :class="Data.name === '南右转' ? '' : 'invisible'" d="M10.2,8.1l3-0.4l0.5,3.7l8.2-6.5L12.2,1l0.5,3.7L9.8,5.1c-3.2,0-5.7,2.6-5.7,5.8V35h3V10.9
|
|
49
47
|
c0-1.5,1.3-2.8,2.8-2.8H10.2z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
50
48
|
<polygon id="南直行" :class="Data.name === '南直行' ? '' : 'invisible'" points="14.5,35 14.5,10.1 18.2,10.1 13,0.9 7.8,10.1 11.5,10.1 11.5,35 " :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
51
|
-
|
|
52
|
-
c0-3.2-3-5.8-6.7-5.8C11.5,13.6,8.5,16.2,8.5,19.4z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/> -->
|
|
49
|
+
<path id="南掉头" :class="Data.name === '南掉头' ? '' : 'invisible'" d="M8.5,6.9v4.3H4.8l5.2,9l5.2-9.1h-3.7V6.8c0-1.5,1.7-2.8,3.7-2.8s3.7,1.3,3.7,2.8V35h3V6.9c0-3.2-3-5.8-6.7-5.8C11.5,1.1,8.5,3.7,8.5,6.9z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
53
50
|
<!-- 北相位 -->
|
|
54
51
|
<path id="北左转" :class="Data.name === '北左转' ? '' : 'invisible'" d="M7.1,25V1h-3v24.1c0,3.1,2.6,5.7,5.7,5.8l2.9,0.4L12.2,35l9.7-3.9l-8.2-6.5l-0.5,3.7l-3.3-0.5
|
|
55
52
|
C8.4,27.8,7.1,26.6,7.1,25L7.1,25z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
56
53
|
<path id="北右转" :class="Data.name === '北右转' ? '' : 'invisible'" d="M15.8,27.9l-3,0.4l-0.5-3.7l-8.2,6.5l9.7,3.9l-0.5-3.7l2.9-0.4c3.2,0,5.7-2.6,5.7-5.8V1h-3v24.1
|
|
57
54
|
c0,1.5-1.3,2.8-2.8,2.8H15.8z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
58
55
|
<polygon id="北直行" :class="Data.name === '北直行' ? '' : 'invisible'" points="11.5,0.9 11.5,25.9 7.8,25.9 13,35 18.2,25.9 14.5,25.9 14.5,0.9 " :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
59
|
-
|
|
60
|
-
c0,3.2,3,5.8,6.7,5.8C14.5,22.4,17.5,19.8,17.5,16.6z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/> -->
|
|
56
|
+
<path id="北掉头" :class="Data.name === '北掉头' ? '' : 'invisible'" d="M17.5,29.1v-4.3h3.7l-5.2-9l-5.2,9.1h3.7v4.3c0,1.5-1.7,2.8-3.7,2.8s-3.7-1.3-3.7-2.8V0.9h-3v28.2c0,3.2,3,5.8,6.7,5.8C14.5,34.9,17.5,32.3,17.5,29.1z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
|
|
61
57
|
</svg>
|
|
62
58
|
</div>
|
|
63
59
|
</div>
|
|
@@ -139,8 +135,9 @@ export default {
|
|
|
139
135
|
},
|
|
140
136
|
methods: {
|
|
141
137
|
handleClick (e) {
|
|
142
|
-
let
|
|
143
|
-
// console.log(
|
|
138
|
+
let clickedSvg = e.currentTarget
|
|
139
|
+
// console.log(clickedSvg)
|
|
140
|
+
let clickedPath = clickedSvg.querySelector(`#${this.Data.name}`)
|
|
144
141
|
if (clickedPath) {
|
|
145
142
|
// 在这里对找到的元素进行操作
|
|
146
143
|
if (clickedPath.getAttribute('disabled') === 'true') {
|
|
@@ -172,9 +169,12 @@ export default {
|
|
|
172
169
|
},
|
|
173
170
|
IconAddEvent () {
|
|
174
171
|
let IconDom = document.getElementById(this.Data.key)
|
|
175
|
-
let DirDom = IconDom.querySelector(`#${this.Data.name}`)
|
|
176
|
-
if (this.clickMode && DirDom.getAttribute('class') !== 'invisible') {
|
|
177
|
-
|
|
172
|
+
// let DirDom = IconDom.querySelector(`#${this.Data.name}`)
|
|
173
|
+
// if (this.clickMode && DirDom.getAttribute('class') !== 'invisible') {
|
|
174
|
+
// DirDom.addEventListener('click', this.handleClick)
|
|
175
|
+
// }
|
|
176
|
+
if (this.clickMode) {
|
|
177
|
+
IconDom.addEventListener('click', this.handleClick)
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
},
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"id": 4,
|
|
25
25
|
"name": "东掉头",
|
|
26
26
|
"ename": "East-Back",
|
|
27
|
-
"x": "
|
|
28
|
-
"y": "
|
|
27
|
+
"x": "588px",
|
|
28
|
+
"y": "325px"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"id": 5,
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"id": 8,
|
|
53
53
|
"name": "西掉头",
|
|
54
54
|
"ename": "West-Back",
|
|
55
|
-
"x": "
|
|
56
|
-
"y": "
|
|
55
|
+
"x": "244px",
|
|
56
|
+
"y": "300px"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"id": 9,
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
"id": 12,
|
|
81
81
|
"name": "北掉头",
|
|
82
82
|
"ename": "North-Back",
|
|
83
|
-
"x": "
|
|
84
|
-
"y": "
|
|
83
|
+
"x": "436px",
|
|
84
|
+
"y": "134px"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"id": 13,
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"id": 16,
|
|
109
109
|
"name": "南掉头",
|
|
110
110
|
"ename": "South-Back",
|
|
111
|
-
"x": "
|
|
112
|
-
"y": "
|
|
111
|
+
"x": "412px",
|
|
112
|
+
"y": "476px"
|
|
113
113
|
}
|
|
114
114
|
]
|
|
115
115
|
}
|
package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.left.json
CHANGED
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"id": 4,
|
|
25
25
|
"name": "东掉头",
|
|
26
26
|
"ename": "East-Back",
|
|
27
|
-
"x": "
|
|
28
|
-
"y": "
|
|
27
|
+
"x": "591px",
|
|
28
|
+
"y": "301px"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"id": 5,
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"id": 8,
|
|
53
53
|
"name": "西掉头",
|
|
54
54
|
"ename": "West-Back",
|
|
55
|
-
"x": "
|
|
56
|
-
"y": "
|
|
55
|
+
"x": "246px",
|
|
56
|
+
"y": "325px"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"id": 9,
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
"id": 12,
|
|
81
81
|
"name": "北掉头",
|
|
82
82
|
"ename": "North-Back",
|
|
83
|
-
"x": "
|
|
84
|
-
"y": "
|
|
83
|
+
"x": "412px",
|
|
84
|
+
"y": "135px"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"id": 13,
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"id": 16,
|
|
109
109
|
"name": "南掉头",
|
|
110
110
|
"ename": "South-Back",
|
|
111
|
-
"x": "
|
|
112
|
-
"y": "
|
|
111
|
+
"x": "436px",
|
|
112
|
+
"y": "481px"
|
|
113
113
|
}
|
|
114
114
|
]
|
|
115
115
|
}
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
:isVipRoute="isVipRoute"
|
|
41
41
|
:clickMode="clickMode"
|
|
42
42
|
:isThirdSignal="isThirdSignal"
|
|
43
|
+
:channelType="channelType"
|
|
43
44
|
@handleClickCrossIcon="handleClickCrossIcon" />
|
|
44
45
|
</div>
|
|
45
46
|
</div>
|
|
@@ -125,6 +126,10 @@ export default {
|
|
|
125
126
|
isThirdSignal: {
|
|
126
127
|
type: Boolean,
|
|
127
128
|
default: false
|
|
129
|
+
},
|
|
130
|
+
channelType: {
|
|
131
|
+
type: Boolean,
|
|
132
|
+
default: false
|
|
128
133
|
}
|
|
129
134
|
},
|
|
130
135
|
watch: {
|
|
@@ -143,6 +148,13 @@ export default {
|
|
|
143
148
|
this.reset = true
|
|
144
149
|
}
|
|
145
150
|
}
|
|
151
|
+
},
|
|
152
|
+
channelType: {
|
|
153
|
+
handler: function (val, oldVal) {
|
|
154
|
+
if (val) {
|
|
155
|
+
this.reset = true
|
|
156
|
+
}
|
|
157
|
+
}
|
|
146
158
|
}
|
|
147
159
|
},
|
|
148
160
|
created () {
|
|
@@ -152,7 +164,7 @@ export default {
|
|
|
152
164
|
},
|
|
153
165
|
mounted () {
|
|
154
166
|
this.getParentSize()
|
|
155
|
-
if (this.isVipRoute) {
|
|
167
|
+
if (this.isVipRoute || this.channelType) {
|
|
156
168
|
this.reset = true
|
|
157
169
|
}
|
|
158
170
|
},
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
<div class="divider" :style="{'left':item, 'height':barrierHeight}"></div>
|
|
49
49
|
</div>
|
|
50
50
|
</div>
|
|
51
|
-
<div v-show="(
|
|
51
|
+
<div v-show="(cycle && cycle>0 && this.isControl) || (newCycle && newCycle>0 && this.isControl)">
|
|
52
52
|
<div class="curTimeDiv" :style="{'left':paddingLeft }">{{ timeNumDevide }}</div>
|
|
53
53
|
<div class="curTimeLine" :style="{'left':paddingLeft, 'height':barrierHeight}"></div>
|
|
54
54
|
</div>
|
|
@@ -84,15 +84,6 @@
|
|
|
84
84
|
<div class="first-1" :style="{'width':list.yellowWidth,'height':'34px','background':'#f9dc6a'}"></div>
|
|
85
85
|
<div class="first-1" :style="{'width':list.redWidth,'height':'34px','background':'#f27979'}"></div>
|
|
86
86
|
</div>
|
|
87
|
-
<div v-if="this.controlData && this.controlData.curTime">
|
|
88
|
-
<div class="curTimeDiv" :style="{ left: paddingLefts }">
|
|
89
|
-
{{ timeNumDevides }}
|
|
90
|
-
</div>
|
|
91
|
-
<div
|
|
92
|
-
class="curTimeLine"
|
|
93
|
-
:style="{ left: paddingLefts, height: '56px' }"
|
|
94
|
-
></div>
|
|
95
|
-
</div>
|
|
96
87
|
</div>
|
|
97
88
|
<!-- </div> -->
|
|
98
89
|
</div>
|
|
@@ -112,7 +103,6 @@ export default {
|
|
|
112
103
|
data () {
|
|
113
104
|
return {
|
|
114
105
|
barrierHeight: '',
|
|
115
|
-
stageCycle: '',
|
|
116
106
|
barrierList: [],
|
|
117
107
|
newCycle: this.cycles,
|
|
118
108
|
patternIds: this.patternId,
|
|
@@ -187,19 +177,6 @@ export default {
|
|
|
187
177
|
}
|
|
188
178
|
},
|
|
189
179
|
computed: {
|
|
190
|
-
paddingLefts () {
|
|
191
|
-
let res = '0%'
|
|
192
|
-
let curPercent = this.curtime / this.stageCycle
|
|
193
|
-
if (curPercent >= 1) {
|
|
194
|
-
curPercent = 1
|
|
195
|
-
}
|
|
196
|
-
res = curPercent * 100 + '%'
|
|
197
|
-
return res
|
|
198
|
-
},
|
|
199
|
-
timeNumDevides () {
|
|
200
|
-
let res = this.curtime
|
|
201
|
-
return res
|
|
202
|
-
},
|
|
203
180
|
paddingLeft () {
|
|
204
181
|
let res = '0%'
|
|
205
182
|
if (this.contrloCycle > 0) {
|
|
@@ -440,7 +417,6 @@ export default {
|
|
|
440
417
|
let stageMaxCyle = stageCycleList.reduce((a, b) => {
|
|
441
418
|
return a + b
|
|
442
419
|
}, 0)
|
|
443
|
-
this.stageCycle = stageMaxCyle
|
|
444
420
|
this.stageLists = this.localPatternList[i].stagesList.map(item => {
|
|
445
421
|
return {
|
|
446
422
|
...item,
|
|
@@ -49,14 +49,6 @@
|
|
|
49
49
|
<div style="float: left;" class="cross-name">{{$t('openatccomponents.overview.platform')}}:</div>
|
|
50
50
|
<div style="margin-left: 85px;" class="cross-value">{{platform}}</div>
|
|
51
51
|
</div>
|
|
52
|
-
<div class="cross-content" v-if="controlData.current_stagecd !== undefined">
|
|
53
|
-
<div style="float: left;" class="cross-name">{{$t('openatccomponents.overview.stagecountdown')}}:</div>
|
|
54
|
-
<div style="margin-left: 85px;" class="cross-value">{{controlData.current_stagecd}}</div>
|
|
55
|
-
</div>
|
|
56
|
-
<div class="cross-content" v-if="controlData.stages_len">
|
|
57
|
-
<div style="float: left;" class="cross-name">{{$t('openatccomponents.overview.stageduration')}}:</div>
|
|
58
|
-
<div style="margin-left: 85px;" class="cross-value">{{controlData.stages_len + ''}}</div>
|
|
59
|
-
</div>
|
|
60
52
|
<div class="cross-content">
|
|
61
53
|
<div style="float: left;" class="cross-name">{{$t('openatccomponents.overview.faultinfo')}}:</div>
|
|
62
54
|
<div style="margin-left: 85px;" v-if="curFaultList.length">
|