openatc-components 0.1.192 → 0.1.194
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/DirectionListConfiguration/DirectionListConfiguration.vue +19 -1
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +1 -1
- package/package/kisscomps/components/IntersectionDirectionSelection/IntersectionDirectionSelection.vue +1 -1
- package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +21 -3
- package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +4 -4
- package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +8 -8
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.json +7 -7
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.left.json +4 -4
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/DirectionListConfiguration/DirectionListConfiguration.vue +19 -1
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +1 -1
- package/src/kisscomps/components/IntersectionDirectionSelection/IntersectionDirectionSelection.vue +1 -1
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +21 -3
- package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +4 -4
- package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +8 -8
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.json +7 -7
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.left.json +4 -4
- package/src/router/index.js +7 -0
- package/src/utils/conflct.js +22 -5
- package/src/views/intersection.vue +1 -1
- package/src/views/intersection2.vue +329 -0
- package/static/styles/patternConfig.scss +3 -3
package/package/kisscomps/components/DirectionListConfiguration/DirectionListConfiguration.vue
CHANGED
|
@@ -247,11 +247,29 @@ export default {
|
|
|
247
247
|
this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
|
|
248
248
|
return
|
|
249
249
|
}
|
|
250
|
-
|
|
250
|
+
let channelList = res.data.data.channelList.filter(ele => ele.type !== undefined)
|
|
251
|
+
this.channelList = this.handleRepeatRealdir(channelList)
|
|
251
252
|
console.log('this.channelList', this.channelList)
|
|
252
253
|
this.handleChannelDirection()
|
|
253
254
|
})
|
|
254
255
|
},
|
|
256
|
+
handleRepeatRealdir (channelList) {
|
|
257
|
+
let map = new Map()
|
|
258
|
+
channelList.forEach(ele => {
|
|
259
|
+
ele.realdir.forEach(dir => {
|
|
260
|
+
if (map.get(dir) === undefined) {
|
|
261
|
+
map.set(dir, ele)
|
|
262
|
+
}
|
|
263
|
+
})
|
|
264
|
+
})
|
|
265
|
+
let arr = Array.from(map)
|
|
266
|
+
let newarr = []
|
|
267
|
+
arr.forEach(ele => {
|
|
268
|
+
newarr.push(ele[1])
|
|
269
|
+
})
|
|
270
|
+
// console.log(newarr)
|
|
271
|
+
return newarr
|
|
272
|
+
},
|
|
255
273
|
handleChannelDirection () {
|
|
256
274
|
this.LanePhaseData = []
|
|
257
275
|
this.sidewalkPhaseData = []
|
|
@@ -958,11 +958,30 @@ export default {
|
|
|
958
958
|
this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
|
|
959
959
|
return
|
|
960
960
|
}
|
|
961
|
-
|
|
962
|
-
|
|
961
|
+
let channelList = res.data.data.channelList.filter(ele => ele.type !== undefined)
|
|
962
|
+
this.channelList = this.handleRepeatRealdir(channelList)
|
|
963
|
+
console.log('this.channelList', this.channelList)
|
|
963
964
|
this.handleChannelDirection()
|
|
964
965
|
})
|
|
965
966
|
},
|
|
967
|
+
handleRepeatRealdir (channelList) {
|
|
968
|
+
// 按realdir去掉重复方向的数据
|
|
969
|
+
let map = new Map()
|
|
970
|
+
channelList.forEach(ele => {
|
|
971
|
+
ele.realdir.forEach(dir => {
|
|
972
|
+
if (map.get(dir) === undefined) {
|
|
973
|
+
map.set(dir, ele)
|
|
974
|
+
}
|
|
975
|
+
})
|
|
976
|
+
})
|
|
977
|
+
let arr = Array.from(map)
|
|
978
|
+
let newarr = []
|
|
979
|
+
arr.forEach(ele => {
|
|
980
|
+
newarr.push(ele[1])
|
|
981
|
+
})
|
|
982
|
+
// console.log(newarr)
|
|
983
|
+
return newarr
|
|
984
|
+
},
|
|
966
985
|
handleChannelDirection () {
|
|
967
986
|
this.LanePhaseData = []
|
|
968
987
|
this.sidewalkPhaseData = []
|
|
@@ -1057,7 +1076,6 @@ export default {
|
|
|
1057
1076
|
}
|
|
1058
1077
|
}
|
|
1059
1078
|
this.compLanePhaseData = JSON.parse(JSON.stringify(this.LanePhaseData))
|
|
1060
|
-
// console.log(this.compLanePhaseData)
|
|
1061
1079
|
let clickedDirection = this.compLanePhaseData.filter(ele => ele.clicked && !ele.disabled)
|
|
1062
1080
|
this.inneChoosedDirection = clickedDirection.map(ele => ele.id)
|
|
1063
1081
|
this.EmitAllChoosedDirection(curClickedPhase)
|
package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
<div :id="Data.key" :style="{position: 'absolute', left: Data.left, top: Data.top}">
|
|
14
14
|
<div :class="Data.id < 9 ? '' : 'hide'">
|
|
15
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
|
-
<path id="东掉头" :class="Data.name === '东掉头' ? '' : 'invisible'" d="
|
|
17
|
-
<path id="西掉头" :class="Data.name === '西掉头' ? '' : 'invisible'" d="
|
|
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
|
+
<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
18
|
</svg>
|
|
19
19
|
<svg v-else 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">
|
|
@@ -38,8 +38,8 @@ L3.3,16l9,5.3v-3.8h4.3C19.8,17.5,22.4,14.5,22.4,10.8z" :fill="this.FlashColor ?
|
|
|
38
38
|
</div>
|
|
39
39
|
<div :class="Data.id >= 9 ? '' : 'hide'">
|
|
40
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">
|
|
41
|
-
<path id="南掉头" :class="Data.name === '南掉头' ? '' : 'invisible'" d="
|
|
42
|
-
<path id="北掉头" :class="Data.name === '北掉头' ? '' : 'invisible'" d="
|
|
41
|
+
<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
|
+
<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
43
|
</svg>
|
|
44
44
|
<svg v-else 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
45
|
viewBox="0 0 26 36" style="enable-background:new 0 0 26 36;" xml:space="preserve" :width="IconWdith" :height="IconLengh">
|
package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
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
|
|
16
|
-
<path id="东掉头" :class="Data.name === '东掉头' ? '' : 'invisible'" d="M4.
|
|
17
|
-
<path id="西掉头" :class="Data.name === '西掉头' ? '' : 'invisible'" d="M13.
|
|
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
|
+
<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
|
+
<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
18
|
</svg>
|
|
19
19
|
<svg v-else xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 36 26" :width="IconLengh" :height="IconWdith">
|
|
20
20
|
<!-- 东相位 -->
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
</svg>
|
|
37
37
|
</div>
|
|
38
38
|
<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
|
|
40
|
-
<path id="南掉头" :class="Data.name === '南掉头' ? '' : 'invisible'" d="M3.
|
|
41
|
-
<path id="北掉头" :class="Data.name === '北掉头' ? '' : 'invisible'" d="
|
|
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">
|
|
40
|
+
<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
|
+
<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
42
|
</svg>
|
|
43
43
|
<svg v-else xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
|
|
44
44
|
viewBox="0 0 26 36" style="enable-background:new 0 0 26 36;" xml:space="preserve" :width="IconWdith" :height="IconLengh">
|
|
@@ -119,11 +119,11 @@ export default {
|
|
|
119
119
|
},
|
|
120
120
|
IconLenghDiaoTou: {
|
|
121
121
|
type: String,
|
|
122
|
-
default: '
|
|
122
|
+
default: '18px'
|
|
123
123
|
},
|
|
124
124
|
IconWdithDiaoTou: {
|
|
125
125
|
type: String,
|
|
126
|
-
default: '
|
|
126
|
+
default: '14px'
|
|
127
127
|
},
|
|
128
128
|
Data: {
|
|
129
129
|
type: Object
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"id": 4,
|
|
25
25
|
"name": "东掉头",
|
|
26
26
|
"ename": "East-Back",
|
|
27
|
-
"x": "
|
|
28
|
-
"y": "
|
|
27
|
+
"x": "602px",
|
|
28
|
+
"y": "300px"
|
|
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": "247px",
|
|
56
|
+
"y": "333px"
|
|
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": "137px"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"id": 13,
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"name": "南掉头",
|
|
110
110
|
"ename": "South-Back",
|
|
111
111
|
"x": "444px",
|
|
112
|
-
"y": "
|
|
112
|
+
"y": "489px"
|
|
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": "604px",
|
|
28
|
+
"y": "334px"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"id": 5,
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"name": "西掉头",
|
|
54
54
|
"ename": "West-Back",
|
|
55
55
|
"x": "248px",
|
|
56
|
-
"y": "
|
|
56
|
+
"y": "301px"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"id": 9,
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"id": 16,
|
|
109
109
|
"name": "南掉头",
|
|
110
110
|
"ename": "South-Back",
|
|
111
|
-
"x": "
|
|
111
|
+
"x": "412px",
|
|
112
112
|
"y": "495px"
|
|
113
113
|
}
|
|
114
114
|
]
|