openatc-components 0.1.82 → 0.1.84
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/Channelization/Channelization.vue +5 -2
- package/package/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +5 -2
- package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +7 -2
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +6 -19
- package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +7 -3
- package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +3 -3
- package/package/kisscomps/components/StageBord/StageBord.vue +2 -2
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/Channelization/Channelization.vue +5 -2
- package/src/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +5 -2
- package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +7 -2
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +6 -19
- package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +7 -3
- package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +3 -3
- package/src/kisscomps/components/StageBord/StageBord.vue +2 -2
- package/src/utils/errorcode.js +0 -4
- package/static/styles/channelizatioon.scss +0 -1
- package/static/styles/intersection.scss +32 -19
- package/static/styles/schemeconfig.scss +0 -15
- package/src/node_modules/.package_versions.json +0 -1
|
@@ -12,10 +12,13 @@
|
|
|
12
12
|
<!--静态渠化路口,需要传入路口状态数据和检测器状态数据-->
|
|
13
13
|
<template>
|
|
14
14
|
<div class="show-channelization channelization-base-map" :class="{
|
|
15
|
+
'widescreenCrossImg': bodyDomWidth > 1680,
|
|
15
16
|
'superlargeCrossImg': bodyDomWidth <= 1680 && bodyDomWidth > 1440,
|
|
16
17
|
'largeCrossImg': bodyDomWidth <= 1440 && bodyDomWidth > 1280,
|
|
17
|
-
'middleCrossImg': bodyDomWidth <= 1280 && bodyDomWidth >
|
|
18
|
-
'
|
|
18
|
+
'middleCrossImg': bodyDomWidth <= 1280 && bodyDomWidth > 1100,
|
|
19
|
+
'middleCrossImg2': bodyDomWidth <= 1100 && bodyDomWidth > 960,
|
|
20
|
+
'smallCrossImg': bodyDomWidth <= 960 && bodyDomWidth > 890,
|
|
21
|
+
'smallCrossImg2': bodyDomWidth <= 890 && bodyDomWidth > 720,
|
|
19
22
|
'miniCrossImg': bodyDomWidth <= 720 && bodyDomWidth > 650,
|
|
20
23
|
'superminiCrossImg': bodyDomWidth <= 650 && bodyDomWidth > 450,
|
|
21
24
|
'transMiddleCrossImg': bodyDomWidth <= 450 && bodyDomWidth > 350,
|
package/package/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue
CHANGED
|
@@ -12,10 +12,13 @@
|
|
|
12
12
|
<!--流量统计渠化路口图-->
|
|
13
13
|
<template>
|
|
14
14
|
<div class="show-channelization channelization-base-map" :class="{
|
|
15
|
+
'widescreenCrossImg': bodyDomWidth > 1680,
|
|
15
16
|
'superlargeCrossImg': bodyDomWidth <= 1680 && bodyDomWidth > 1440,
|
|
16
17
|
'largeCrossImg': bodyDomWidth <= 1440 && bodyDomWidth > 1280,
|
|
17
|
-
'middleCrossImg': bodyDomWidth <= 1280 && bodyDomWidth >
|
|
18
|
-
'
|
|
18
|
+
'middleCrossImg': bodyDomWidth <= 1280 && bodyDomWidth > 1100,
|
|
19
|
+
'middleCrossImg2': bodyDomWidth <= 1100 && bodyDomWidth > 960,
|
|
20
|
+
'smallCrossImg': bodyDomWidth <= 960 && bodyDomWidth > 890,
|
|
21
|
+
'smallCrossImg2': bodyDomWidth <= 890 && bodyDomWidth > 720,
|
|
19
22
|
'miniCrossImg': bodyDomWidth <= 720 && bodyDomWidth > 650,
|
|
20
23
|
'superminiCrossImg': bodyDomWidth <= 650 && bodyDomWidth > 450,
|
|
21
24
|
'transMiddleCrossImg': bodyDomWidth <= 450 && bodyDomWidth > 350,
|
|
@@ -12,10 +12,13 @@
|
|
|
12
12
|
<template>
|
|
13
13
|
<div class="intersection-map">
|
|
14
14
|
<div class="crossDirection-display openatc-intersection-base-map" :class="{
|
|
15
|
+
'widescreenCrossImg': bodyDomWidth > 1680,
|
|
15
16
|
'superlargeCrossImg': bodyDomWidth <= 1680 && bodyDomWidth > 1440,
|
|
16
17
|
'largeCrossImg': bodyDomWidth <= 1440 && bodyDomWidth > 1280,
|
|
17
|
-
'middleCrossImg': bodyDomWidth <= 1280 && bodyDomWidth >
|
|
18
|
-
'
|
|
18
|
+
'middleCrossImg': bodyDomWidth <= 1280 && bodyDomWidth > 1100,
|
|
19
|
+
'middleCrossImg2': bodyDomWidth <= 1100 && bodyDomWidth > 960,
|
|
20
|
+
'smallCrossImg': bodyDomWidth <= 960 && bodyDomWidth > 890,
|
|
21
|
+
'smallCrossImg2': bodyDomWidth <= 890 && bodyDomWidth > 720,
|
|
19
22
|
'miniCrossImg': bodyDomWidth <= 720 && bodyDomWidth > 650,
|
|
20
23
|
'superminiCrossImg': bodyDomWidth <= 650 && bodyDomWidth > 450,
|
|
21
24
|
'transMiddleCrossImg': bodyDomWidth <= 450 && bodyDomWidth > 350,
|
|
@@ -136,11 +139,13 @@ export default {
|
|
|
136
139
|
if (this.$el.parentElement === null || this.$el.parentElement === undefined) return
|
|
137
140
|
this.bodyDomSize.width = this.$el.parentElement.clientWidth
|
|
138
141
|
this.bodyDomWidth = this.bodyDomSize.width
|
|
142
|
+
console.log(this.bodyDomWidth)
|
|
139
143
|
window.addEventListener('resize', () => {
|
|
140
144
|
// 定义窗口大小变更通知事件
|
|
141
145
|
if (_this.$el.parentElement === null || _this.$el.parentElement === undefined) return
|
|
142
146
|
_this.bodyDomSize.width = _this.$el.parentElement.clientWidth
|
|
143
147
|
this.bodyDomWidth = this.bodyDomSize.width
|
|
148
|
+
console.log(this.bodyDomWidth)
|
|
144
149
|
console.log('resize this.bodyDomSize.width', _this.bodyDomSize.width)
|
|
145
150
|
}, false)
|
|
146
151
|
})
|
|
@@ -826,17 +826,6 @@ export default {
|
|
|
826
826
|
return k.id
|
|
827
827
|
})
|
|
828
828
|
})
|
|
829
|
-
let valSplit = val.map(item => {
|
|
830
|
-
return item.map(val => {
|
|
831
|
-
return val.value + (val.sum ? val.sum : 0)
|
|
832
|
-
})
|
|
833
|
-
})
|
|
834
|
-
let splitCycle = valSplit.length > 0 ? valSplit.map(item => {
|
|
835
|
-
return item.length > 0 ? item.reduce((a, b) => {
|
|
836
|
-
return a + b
|
|
837
|
-
}) : 0
|
|
838
|
-
}) : 0
|
|
839
|
-
let cycle = Math.max(...splitCycle)// 每个环的周期最大值
|
|
840
829
|
let newRings = ringsequence.filter(item => item)
|
|
841
830
|
let minLength = Math.min(...ringlength)
|
|
842
831
|
let resultArrs = [] // 环1分组
|
|
@@ -934,9 +923,7 @@ export default {
|
|
|
934
923
|
if (this.patternList) {
|
|
935
924
|
this.setBarrier(ringTeams, val)
|
|
936
925
|
}
|
|
937
|
-
|
|
938
|
-
this.fillGap(ringTeams, val)
|
|
939
|
-
}
|
|
926
|
+
this.fillGap(ringTeams, val)
|
|
940
927
|
let barrier = this.step2(ringTeams, newPattern)
|
|
941
928
|
this.barrierList = barrier.map(j => {
|
|
942
929
|
return (j / (this.max ? this.max : this.newCycle) * 100) + '%'
|
|
@@ -1006,14 +993,14 @@ export default {
|
|
|
1006
993
|
}
|
|
1007
994
|
obj.split = split
|
|
1008
995
|
if (ring.sum) {
|
|
1009
|
-
obj.redWidth = ((currPhase.redclear + ring.sum) / (this.max ? this.max :
|
|
996
|
+
obj.redWidth = ((currPhase.redclear + ring.sum) / (this.max ? this.max : this.newCycle) * 100).toFixed(3) + '%'
|
|
1010
997
|
} else {
|
|
1011
|
-
obj.redWidth = (currPhase.redclear / (this.max ? this.max :
|
|
998
|
+
obj.redWidth = (currPhase.redclear / (this.max ? this.max : this.newCycle) * 100).toFixed(3) + '%'
|
|
1012
999
|
}
|
|
1013
1000
|
obj.mode = ring.mode
|
|
1014
|
-
obj.greenWidth = ((split - currPhase.redclear - currPhase.yellow - currPhase.flashgreen) / (this.max ? this.max :
|
|
1015
|
-
obj.flashgreen = (currPhase.flashgreen / (this.max ? this.max :
|
|
1016
|
-
obj.yellowWidth = (currPhase.yellow / (this.max ? this.max :
|
|
1001
|
+
obj.greenWidth = ((split - currPhase.redclear - currPhase.yellow - currPhase.flashgreen) / (this.max ? this.max : this.newCycle) * 100).toFixed(3) + '%'
|
|
1002
|
+
obj.flashgreen = (currPhase.flashgreen / (this.max ? this.max : this.newCycle) * 100).toFixed(3) + '%'
|
|
1003
|
+
obj.yellowWidth = (currPhase.yellow / (this.max ? this.max : this.newCycle) * 100).toFixed(3) + '%'
|
|
1017
1004
|
// 忽略相位不显示
|
|
1018
1005
|
// let mode = ring.mode
|
|
1019
1006
|
// if (mode !== 7) { // 忽略相位不显示
|
|
@@ -182,10 +182,14 @@ export default {
|
|
|
182
182
|
control: 24,
|
|
183
183
|
delay: this.manualInfo.delay,
|
|
184
184
|
duration: this.manualInfo.duration,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
185
|
+
data: {
|
|
186
|
+
type: this.manualInfo.type,
|
|
187
|
+
phase: this.manualInfo.phase,
|
|
188
|
+
level: this.manualInfo.level
|
|
189
|
+
}
|
|
190
|
+
|
|
188
191
|
}
|
|
192
|
+
console.log(submitdata, 'submitdata')
|
|
189
193
|
this.$emit('closePhaseControl', submitdata)
|
|
190
194
|
}
|
|
191
195
|
}
|
|
@@ -111,15 +111,15 @@
|
|
|
111
111
|
:list="patternOne.length===0?planPattern.rings[j-1]:patternOne[0].rings[j-1]"
|
|
112
112
|
>
|
|
113
113
|
</expend-config>
|
|
114
|
-
<div
|
|
114
|
+
<div style="width: 60%;margin: 10px auto;color:#ffffff">
|
|
115
115
|
{{$t('openatccomponents.pattern.forbiddenstage')}}
|
|
116
116
|
<el-input class="stage-value" size="small" v-model="forbiddenstage"></el-input>
|
|
117
117
|
</div>
|
|
118
|
-
<div
|
|
118
|
+
<div style="width: 60%;margin: 10px auto;color:#ffffff">
|
|
119
119
|
{{$t('openatccomponents.pattern.screenstage')}}
|
|
120
120
|
<el-input class="stage-value" size="small" v-model="screenstage"></el-input>
|
|
121
121
|
</div>
|
|
122
|
-
<div
|
|
122
|
+
<div style="width: 60%;margin: 10px auto;color:#ffffff">
|
|
123
123
|
{{$t('openatccomponents.pattern.coordinatestage')}}
|
|
124
124
|
<el-input class="stage-value" size="small" v-model="coordinatestage"></el-input>
|
|
125
125
|
</div>
|
|
@@ -228,14 +228,14 @@ export default {
|
|
|
228
228
|
height: auto;
|
|
229
229
|
margin: 5px 0;
|
|
230
230
|
line-height: 40px;
|
|
231
|
-
|
|
231
|
+
color: #FFFFFF;
|
|
232
232
|
padding: 1px 1px;
|
|
233
233
|
box-sizing: border-box;
|
|
234
234
|
}
|
|
235
235
|
.el-button--primary:hover, .el-button--primary:focus{
|
|
236
236
|
background: #409EFF;
|
|
237
237
|
border-color: #409EFF;
|
|
238
|
-
|
|
238
|
+
color: #FFFFFF;
|
|
239
239
|
}
|
|
240
240
|
</style>
|
|
241
241
|
<style lang="scss">
|