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
package/package.json
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,
|
package/src/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">
|
package/src/utils/errorcode.js
CHANGED
|
@@ -34,8 +34,6 @@ let errorCodeMap = new Map([
|
|
|
34
34
|
[503, '星期超出限值'],
|
|
35
35
|
[504, '日期值超出限值'],
|
|
36
36
|
[505, '配置未知计划号'],
|
|
37
|
-
[505, '配置未知计划号'],
|
|
38
|
-
[506, '包含普通计划的日期未覆盖全年'],
|
|
39
37
|
[601, '通道数超出限值'],
|
|
40
38
|
[602, '通道配置未知控制源'],
|
|
41
39
|
[603, '通道控制源未配置'],
|
|
@@ -123,8 +121,6 @@ let errorCodeMapEn = new Map([
|
|
|
123
121
|
[503, 'The week exceeds the limit'],
|
|
124
122
|
[504, 'The date value exceeds the limit'],
|
|
125
123
|
[505, 'Configure unknown plan number'],
|
|
126
|
-
[506, 'Dates that include common plans do not cover the full year'],
|
|
127
|
-
[507, 'No month is configured for the scheduling plan'],
|
|
128
124
|
[601, 'The number of channels exceeds the limit'],
|
|
129
125
|
[602, 'Channel configuration unknown control source'],
|
|
130
126
|
[603, 'Channel control source is not configured'],
|
|
@@ -11,6 +11,21 @@
|
|
|
11
11
|
.changePaddingBottom {
|
|
12
12
|
padding-bottom: 30px;
|
|
13
13
|
}
|
|
14
|
+
@media only screen and (min-width: 2048px){
|
|
15
|
+
.crossDirection-display{
|
|
16
|
+
zoom: 1.5;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
@media only screen and (max-width: 2048px){
|
|
20
|
+
.crossDirection-display{
|
|
21
|
+
zoom: 1.3;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
@media only screen and (max-width: 1920px){
|
|
25
|
+
.crossDirection-display{
|
|
26
|
+
zoom: 1.2;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
14
29
|
/*当屏幕小于等于1680px的屏幕样式*/
|
|
15
30
|
@media only screen and (max-width: 1680px){
|
|
16
31
|
.crossDirection-display{
|
|
@@ -76,39 +91,37 @@
|
|
|
76
91
|
font-size: 12px;
|
|
77
92
|
}
|
|
78
93
|
}
|
|
94
|
+
|
|
95
|
+
.widescreenCrossImg {
|
|
96
|
+
// 宽屏最大缩放到1.3,否则高度溢出
|
|
97
|
+
zoom: 1.3;
|
|
98
|
+
}
|
|
79
99
|
.superlargeCrossImg {
|
|
80
100
|
// transform: scale(0.9);
|
|
81
|
-
|
|
82
|
-
|
|
101
|
+
zoom: 1.3;
|
|
83
102
|
}
|
|
84
103
|
.largeCrossImg {
|
|
85
|
-
|
|
86
|
-
zoom: 0.9;
|
|
87
|
-
|
|
104
|
+
zoom: 1.2;
|
|
88
105
|
}
|
|
89
106
|
.middleCrossImg {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
107
|
+
zoom: 1.1;
|
|
108
|
+
}
|
|
109
|
+
.middleCrossImg2 {
|
|
110
|
+
zoom: 1;
|
|
93
111
|
}
|
|
94
112
|
.smallCrossImg {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
113
|
+
zoom: 0.9;
|
|
114
|
+
}
|
|
115
|
+
.smallCrossImg2 {
|
|
116
|
+
zoom: 0.8;
|
|
98
117
|
}
|
|
99
118
|
.miniCrossImg {
|
|
100
|
-
|
|
101
|
-
// zoom: 0.45;
|
|
102
|
-
zoom: 0.5;
|
|
119
|
+
zoom: 0.7;
|
|
103
120
|
}
|
|
104
121
|
.superminiCrossImg {
|
|
105
|
-
|
|
106
|
-
// zoom: 0.35;
|
|
107
|
-
zoom: 0.45;
|
|
122
|
+
zoom: 0.6;
|
|
108
123
|
}
|
|
109
124
|
.minimumCrossImg {
|
|
110
|
-
// transform: scale(0.25);
|
|
111
|
-
// zoom: 0.25;
|
|
112
125
|
zoom: 0.35;
|
|
113
126
|
}
|
|
114
127
|
.transMiddleCrossImg {
|
|
@@ -330,21 +330,6 @@
|
|
|
330
330
|
padding: 21PX 0PX 21PX 28PX;
|
|
331
331
|
min-width: 360PX;
|
|
332
332
|
overflow: auto;
|
|
333
|
-
.forbiddenstage{
|
|
334
|
-
width: 60%;
|
|
335
|
-
margin: 10px auto;
|
|
336
|
-
color: $--color-text-primary;
|
|
337
|
-
}
|
|
338
|
-
.stage-item {
|
|
339
|
-
cursor: pointer;
|
|
340
|
-
width: 100%;
|
|
341
|
-
height: auto;
|
|
342
|
-
margin: 5px 0;
|
|
343
|
-
line-height: 40px;
|
|
344
|
-
color: $--color-text-primary;
|
|
345
|
-
padding: 1px 1px;
|
|
346
|
-
box-sizing: border-box;
|
|
347
|
-
}
|
|
348
333
|
.title {
|
|
349
334
|
margin-bottom: 24PX;
|
|
350
335
|
font-size: 20PX;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|