openatc-components 0.1.91 → 0.1.93
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/PatternStatus/PatternStatus.vue +24 -10
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/i18n/language/en.js +2 -3
- package/src/i18n/language/zh.js +8 -9
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +24 -10
- package/src/node_modules/.package_versions.json +1 -0
- package/static/styles/schemeconfig.scss +1 -1
package/package.json
CHANGED
package/src/i18n/language/en.js
CHANGED
|
@@ -140,7 +140,7 @@ const en = {
|
|
|
140
140
|
'patternnum': 'Pattern Number',
|
|
141
141
|
'details': 'Details',
|
|
142
142
|
'autocontrol': 'Multi Period',
|
|
143
|
-
'yellowflash': 'Yellow
|
|
143
|
+
'yellowflash': 'Yellow light',
|
|
144
144
|
'allred': 'Red Control',
|
|
145
145
|
'step': 'Step Control',
|
|
146
146
|
'fixedperiod': 'Fixed_Cycle Control',
|
|
@@ -201,13 +201,12 @@ const en = {
|
|
|
201
201
|
'modelList17': 'Webster Single Point Coordination',
|
|
202
202
|
'modelList18': 'Reserving18',
|
|
203
203
|
'modelList19': 'Inductive Pedestrian Crossing Control',
|
|
204
|
-
'modelList20': 'Program Intervention',
|
|
205
|
-
// 'modelList100': 'Program Intervention',
|
|
206
204
|
'modelList21': 'Reserving21',
|
|
207
205
|
'modelList22': 'Priority Control',
|
|
208
206
|
'modelList23': 'Close Phase',
|
|
209
207
|
'modelList100': 'Tentative Plan',
|
|
210
208
|
'modelList24': 'Priority Control',
|
|
209
|
+
'controlType201': 'Scheme Update Frequency',
|
|
211
210
|
'priorityType': 'Priority Type',
|
|
212
211
|
'priorityPhase': 'Priority Phase',
|
|
213
212
|
'typeOption0': 'Regular Priority',
|
package/src/i18n/language/zh.js
CHANGED
|
@@ -167,7 +167,7 @@ const zh = {
|
|
|
167
167
|
'patternnum': '方案编号',
|
|
168
168
|
'details': '详情',
|
|
169
169
|
'autocontrol': '多时段',
|
|
170
|
-
'yellowflash': '
|
|
170
|
+
'yellowflash': '黄灯',
|
|
171
171
|
'allred': '全红',
|
|
172
172
|
'step': '步进',
|
|
173
173
|
'fixedperiod': '定周期',
|
|
@@ -212,30 +212,29 @@ const zh = {
|
|
|
212
212
|
'modelList1': '黄闪',
|
|
213
213
|
'modelList2': '全红',
|
|
214
214
|
'modelList3': '关灯',
|
|
215
|
-
'modelList4': '
|
|
215
|
+
'modelList4': '阶段锁定',
|
|
216
216
|
'modelList5': '定周期',
|
|
217
|
-
'modelList6': '
|
|
217
|
+
'modelList6': '单点感应',
|
|
218
218
|
'modelList7': '协调感应控制',
|
|
219
219
|
'modelList8': '方案选择控制',
|
|
220
220
|
'modelList9': '自适应控制',
|
|
221
221
|
'modelList10': '无电缆协调',
|
|
222
|
-
'modelList11': '
|
|
222
|
+
'modelList11': '平台协调',
|
|
223
223
|
'modelList12': '行人过街',
|
|
224
224
|
'modelList13': '方案恢复过渡',
|
|
225
|
-
'modelList14': '
|
|
225
|
+
'modelList14': '相位驻留(Dwell)',
|
|
226
226
|
'modelList15': '通道检测',
|
|
227
|
-
'modelList16': '
|
|
227
|
+
'modelList16': '通道锁定',
|
|
228
228
|
'modelList17': '韦伯斯特单点控制',
|
|
229
229
|
'modelList18': '预留18',
|
|
230
230
|
'modelList19': '感应式行人过街',
|
|
231
|
-
'modelList20': '方案干预',
|
|
232
|
-
// 'modelList100': '方案干预',
|
|
233
231
|
'modelList21': '预留21',
|
|
234
232
|
'modelList22': '相位锁定',
|
|
235
|
-
'modelList23': '
|
|
233
|
+
'modelList23': '相位放行控制',
|
|
236
234
|
'modelList100': '临时方案',
|
|
237
235
|
'modelList24': '优先控制',
|
|
238
236
|
'modelList99': '设备维护',
|
|
237
|
+
'controlType201': '方案更新频次',
|
|
239
238
|
'tips': '提示',
|
|
240
239
|
'exitmanul': '退出前需要先恢复自主控制, 是否退出?',
|
|
241
240
|
'canceled': '已取消',
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
</div>
|
|
30
30
|
</div>
|
|
31
31
|
</el-tooltip>
|
|
32
|
-
<div style="
|
|
33
|
-
<i class="iconfont icon-lukouzhilu" style="position: absolute;top: 8px;font-size:12px;color:#454545;" v-if="bus.controltype === 1 && bus.phaseid===item.id"></i>
|
|
34
|
-
<i class="iconfont icon-BRT" style="position: absolute;top: 8px;font-size:12px;color:#454545;" v-if="bus.controltype === 4 && bus.phaseid===item.id"></i>
|
|
35
|
-
<i class="iconfont icon-xuxiangwei-xin" style="position: absolute;top: 8px;font-size:12px;color:#454545;" v-if="bus.controltype === 99 && bus.phaseid===item.id"></i>
|
|
36
|
-
<i class="iconfont icon-feijidongche" style="position: absolute;top: 8px;font-size:12px;color:#454545;" v-if="bus.controltype === 6 && bus.phaseid===item.id"></i>
|
|
37
|
-
<i class="iconfont icon-gongjiaoche" style="position: absolute;top: 8px;font-size:12px;color:#454545;" v-if="bus.controltype === 3 && bus.phaseid===item.id"></i>
|
|
38
|
-
<i class="iconfont icon-youguidianche" style="position: absolute;top: 8px;font-size:12px;color:#454545;" v-if="bus.controltype === 5 && bus.phaseid===item.id"></i>
|
|
32
|
+
<div style="width:50px;" v-for="(bus,index3) in busPhaseData" :key="index3">
|
|
33
|
+
<i class="iconfont icon-lukouzhilu" style="position: absolute;top: 8px;left:60px;font-size:12px;color:#454545;" v-if="bus.controltype === 1 && bus.phaseid===item.id"></i>
|
|
34
|
+
<i class="iconfont icon-BRT" style="position: absolute;top: 8px;left:60px;font-size:12px;color:#454545;" v-if="bus.controltype === 4 && bus.phaseid===item.id"></i>
|
|
35
|
+
<i class="iconfont icon-xuxiangwei-xin" style="position: absolute;top: 8px;left:60px;font-size:12px;color:#454545;" v-if="bus.controltype === 99 && bus.phaseid===item.id"></i>
|
|
36
|
+
<i class="iconfont icon-feijidongche" style="position: absolute;top: 8px;left:60px;font-size:12px;color:#454545;" v-if="bus.controltype === 6 && bus.phaseid===item.id"></i>
|
|
37
|
+
<i class="iconfont icon-gongjiaoche" style="position: absolute;top: 8px;left:60px;font-size:12px;color:#454545;" v-if="bus.controltype === 3 && bus.phaseid===item.id"></i>
|
|
38
|
+
<i class="iconfont icon-youguidianche" style="position: absolute;top: 8px;left:60px;font-size:12px;color:#454545;" v-if="bus.controltype === 5 && bus.phaseid===item.id"></i>
|
|
39
39
|
</div>
|
|
40
40
|
</div>
|
|
41
41
|
<div class="first-1" :class="item.mode===8?'mask': ''" :style="{'width':Number(item.flashgreen.replace('%', ''))/Number((((item.split+(item.sum?item.sum:0)) / (max?max:item.cycle) * 100).toFixed(3) + '%').replace('%', ''))*100+'%','height':'34px','float':'left','background': 'linear-gradient(to right, #ffffff 50%, #7ccc66 0)','background-size': '4px 100%'}"></div>
|
|
@@ -566,6 +566,7 @@ export default {
|
|
|
566
566
|
obj.split = split
|
|
567
567
|
obj.cycle = cycle
|
|
568
568
|
if (ring.sum) {
|
|
569
|
+
obj.sum = ring.sum
|
|
569
570
|
obj.redWidth = ((currPhase.redclear + ring.sum) / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
570
571
|
} else {
|
|
571
572
|
obj.redWidth = (currPhase.redclear / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
@@ -591,13 +592,23 @@ export default {
|
|
|
591
592
|
let nowPattern = this.localPatternList.filter(item => {
|
|
592
593
|
return item.id === this.controlData.patternid
|
|
593
594
|
})[0].rings
|
|
595
|
+
// 信号机忽略相位,更新最新的相位信息
|
|
596
|
+
let filterPattern = []
|
|
597
|
+
for (let i of nowPattern) {
|
|
598
|
+
for (let j of this.controlData.rings) {
|
|
599
|
+
let filterSequence = i.filter(item => j.sequence.includes(item.id))
|
|
600
|
+
if (filterSequence.length > 0) {
|
|
601
|
+
filterPattern.push(filterSequence)
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
594
605
|
for (let rings of this.controlData.rings) {
|
|
595
606
|
for (let sequ of rings.sequence) {
|
|
596
607
|
let split = this.controlData.phase.filter((item) => {
|
|
597
608
|
return item.id === sequ
|
|
598
609
|
})[0].split
|
|
599
|
-
|
|
600
|
-
d.map(r => {
|
|
610
|
+
filterPattern.map(d => {
|
|
611
|
+
return d.map(r => {
|
|
601
612
|
if (r.id === sequ) {
|
|
602
613
|
r.value = split
|
|
603
614
|
}
|
|
@@ -605,7 +616,7 @@ export default {
|
|
|
605
616
|
})
|
|
606
617
|
}
|
|
607
618
|
}
|
|
608
|
-
this.handleOverViewChange(
|
|
619
|
+
this.handleOverViewChange(filterPattern)
|
|
609
620
|
},
|
|
610
621
|
handleBarrierHeight () { // 屏障高度
|
|
611
622
|
if (!this.patternInfo) return
|
|
@@ -796,6 +807,7 @@ export default {
|
|
|
796
807
|
obj.split = split
|
|
797
808
|
obj.cycle = cycle
|
|
798
809
|
if (ring.sum) {
|
|
810
|
+
obj.sum = ring.sum
|
|
799
811
|
obj.redWidth = ((currPhase.redclear + ring.sum) / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
800
812
|
} else {
|
|
801
813
|
obj.redWidth = (currPhase.redclear / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
@@ -1002,7 +1014,9 @@ export default {
|
|
|
1002
1014
|
}
|
|
1003
1015
|
}
|
|
1004
1016
|
obj.split = split
|
|
1017
|
+
obj.cycle = cycle
|
|
1005
1018
|
if (ring.sum) {
|
|
1019
|
+
obj.sum = ring.sum
|
|
1006
1020
|
obj.redWidth = ((currPhase.redclear + ring.sum) / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
1007
1021
|
} else {
|
|
1008
1022
|
obj.redWidth = (currPhase.redclear / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|