openatc-components 0.2.7 → 0.2.8
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/BoardCard/BoardCard.vue +0 -4
- package/package/kisscomps/components/OverLap/OverLap.vue +24 -3
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +7 -12
- package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +159 -496
- package/package/kisscomps/components/StageBord/StageBord.vue +29 -74
- package/package/kisscomps/components/patternList/patternList.vue +0 -4
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/i18n/language/en.js +1 -6
- package/src/i18n/language/zh.js +1 -6
- package/src/kisscomps/components/BoardCard/BoardCard.vue +0 -4
- package/src/kisscomps/components/OverLap/OverLap.vue +24 -3
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +7 -12
- package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +159 -496
- package/src/kisscomps/components/StageBord/StageBord.vue +29 -74
- package/src/kisscomps/components/patternList/patternList.vue +0 -4
- package/static/styles/schemeconfig.scss +1 -1
- package/src/kisscomps/components/SelectCrossPhase/index.vue +0 -417
- package/src/kisscomps/components/SelectCrossPhase/utils.js +0 -142
package/package.json
CHANGED
package/src/i18n/language/en.js
CHANGED
|
@@ -455,10 +455,7 @@ const en = {
|
|
|
455
455
|
'phase': 'Phase',
|
|
456
456
|
'agentidError': 'Failed to get agentid!',
|
|
457
457
|
'splitCheckMsg': 'The green letter ratio must be greater than the phase transition time or the pedestrian crossing + pedestrian transition time!',
|
|
458
|
-
'pattern': 'Pattern'
|
|
459
|
-
'green': 'Green',
|
|
460
|
-
'yellow': 'Yellow',
|
|
461
|
-
'red': 'Red'
|
|
458
|
+
'pattern': 'Pattern'
|
|
462
459
|
},
|
|
463
460
|
'plan': {
|
|
464
461
|
'tipcontext': 'Please input your plan_name',
|
|
@@ -893,8 +890,6 @@ const en = {
|
|
|
893
890
|
'common': {
|
|
894
891
|
'confirm': 'Confirm',
|
|
895
892
|
'query': 'Query',
|
|
896
|
-
'stageStyle': 'Stage Style',
|
|
897
|
-
'ringStyle': 'Ring Style',
|
|
898
893
|
'cancel': 'Cancel',
|
|
899
894
|
'add': 'Add',
|
|
900
895
|
'delete': 'Delete',
|
package/src/i18n/language/zh.js
CHANGED
|
@@ -453,10 +453,7 @@ const zh = {
|
|
|
453
453
|
'phase': '相位',
|
|
454
454
|
'agentidError': '获取设备ID失败!',
|
|
455
455
|
'splitCheckMsg': '绿信比需大于相位过渡时间或绿信比需大于行人过街+行人过渡时间!',
|
|
456
|
-
'pattern': '方案'
|
|
457
|
-
'green': '绿灯',
|
|
458
|
-
'yellow': '黄灯',
|
|
459
|
-
'red': '红灯清空'
|
|
456
|
+
'pattern': '方案'
|
|
460
457
|
},
|
|
461
458
|
'plan': {
|
|
462
459
|
'tipcontext': '请输入计划名!',
|
|
@@ -891,8 +888,6 @@ const zh = {
|
|
|
891
888
|
'common': {
|
|
892
889
|
'confirm': '确认',
|
|
893
890
|
'query': '查询',
|
|
894
|
-
'stageStyle': '阶段配置',
|
|
895
|
-
'ringStyle': '环配置',
|
|
896
891
|
'cancel': '取消',
|
|
897
892
|
'add': '添加',
|
|
898
893
|
'delete': '删除',
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
:localPatternList="localPatternList"
|
|
14
14
|
:showCondition="showCondition"
|
|
15
15
|
:contrloType="contrloType"
|
|
16
|
-
:allPatternList="allPatternList"
|
|
17
16
|
:stagesChange="stagesChange"
|
|
18
17
|
:cycleChange="cycleChange"
|
|
19
18
|
:patternList="patternList"
|
|
@@ -55,9 +54,6 @@ export default {
|
|
|
55
54
|
controlPhase: {
|
|
56
55
|
type: Object
|
|
57
56
|
},
|
|
58
|
-
allPatternList: {
|
|
59
|
-
type: Array
|
|
60
|
-
},
|
|
61
57
|
localPatternList: {
|
|
62
58
|
type: Array
|
|
63
59
|
},
|
|
@@ -47,7 +47,8 @@ export default {
|
|
|
47
47
|
},
|
|
48
48
|
data () {
|
|
49
49
|
return {
|
|
50
|
-
overlapDatas: []
|
|
50
|
+
overlapDatas: [],
|
|
51
|
+
max: ''
|
|
51
52
|
}
|
|
52
53
|
},
|
|
53
54
|
props: {
|
|
@@ -67,6 +68,10 @@ export default {
|
|
|
67
68
|
type: Boolean,
|
|
68
69
|
default: false
|
|
69
70
|
},
|
|
71
|
+
cycleChange: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: true
|
|
74
|
+
},
|
|
70
75
|
cycle: {
|
|
71
76
|
type: Number
|
|
72
77
|
},
|
|
@@ -82,6 +87,13 @@ export default {
|
|
|
82
87
|
// 深度观察监听
|
|
83
88
|
deep: true
|
|
84
89
|
},
|
|
90
|
+
cycleChange: {
|
|
91
|
+
handler: function (val, oldVal) {
|
|
92
|
+
this.doAdd(this.stageList, this.overlap)
|
|
93
|
+
},
|
|
94
|
+
// 深度观察监听
|
|
95
|
+
deep: true
|
|
96
|
+
},
|
|
85
97
|
stageList: {
|
|
86
98
|
handler: function (val, oldVal) {
|
|
87
99
|
this.doAdd(this.stageList, this.overlap)
|
|
@@ -140,6 +152,15 @@ export default {
|
|
|
140
152
|
if (findItems.length) findIndexs.push(...findItems.map(m => m.key))
|
|
141
153
|
})
|
|
142
154
|
findIndexs = Array.from(new Set(findIndexs))
|
|
155
|
+
if (this.cycleChange) {
|
|
156
|
+
const globalParamModel = this.$store.getters.globalParamModel
|
|
157
|
+
let pattern = globalParamModel.getParamsByType('patternList')
|
|
158
|
+
const allCycle = pattern.map(item => item.cycle)
|
|
159
|
+
let cycle = Math.max(...allCycle)
|
|
160
|
+
this.max = cycle
|
|
161
|
+
} else {
|
|
162
|
+
this.max = ''
|
|
163
|
+
}
|
|
143
164
|
return {
|
|
144
165
|
...item,
|
|
145
166
|
peddirection: this.getPedPhasePos(item.peddirection),
|
|
@@ -150,8 +171,8 @@ export default {
|
|
|
150
171
|
...sta,
|
|
151
172
|
direction: this.getRoad(item),
|
|
152
173
|
// peddirection: this.getPedPhasePos(item.peddirection),
|
|
153
|
-
greenWidth: find ? (sta.split / this.cycle * 100).toFixed(3) + '%' : '0%',
|
|
154
|
-
redWidth: !find ? (sta.split / this.cycle * 100).toFixed(3) + '%' : '0%'
|
|
174
|
+
greenWidth: find ? (sta.split / (this.max ? this.max : this.cycle) * 100).toFixed(3) + '%' : '0%',
|
|
175
|
+
redWidth: !find ? (sta.split / (this.max ? this.max : this.cycle) * 100).toFixed(3) + '%' : '0%'
|
|
155
176
|
}
|
|
156
177
|
})
|
|
157
178
|
}
|
|
@@ -144,9 +144,6 @@ export default {
|
|
|
144
144
|
type: Boolean,
|
|
145
145
|
default: false
|
|
146
146
|
},
|
|
147
|
-
allPatternList: {
|
|
148
|
-
type: Array
|
|
149
|
-
},
|
|
150
147
|
localPatternList: {
|
|
151
148
|
type: Array
|
|
152
149
|
},
|
|
@@ -432,11 +429,11 @@ export default {
|
|
|
432
429
|
},
|
|
433
430
|
getStage () {
|
|
434
431
|
if (!this.stagesChange) return
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
let mapAdd =
|
|
432
|
+
const globalParamModel = this.$store.getters.globalParamModel
|
|
433
|
+
let pattern = globalParamModel.getParamsByType('patternList')
|
|
434
|
+
let mapAdd = pattern.map(item => item.stagesList).map(item => {
|
|
438
435
|
return item.map(val => {
|
|
439
|
-
return val.stageSplit
|
|
436
|
+
return val.stageSplit
|
|
440
437
|
})
|
|
441
438
|
})
|
|
442
439
|
let maxCycle = mapAdd.length > 0 ? mapAdd.map(item => {
|
|
@@ -444,7 +441,6 @@ export default {
|
|
|
444
441
|
return a + b
|
|
445
442
|
}) : 0
|
|
446
443
|
}) : 0
|
|
447
|
-
console.log(maxCycle, 'maxCycle')
|
|
448
444
|
let stageMaxCyle = Math.max(...maxCycle)// 每个环的周期最大值
|
|
449
445
|
if (!this.cycleChange) {
|
|
450
446
|
let stageCycleList = this.stagesChange.map(item => {
|
|
@@ -464,7 +460,6 @@ export default {
|
|
|
464
460
|
redWidth: (item.red / stageMaxCyle * 100).toFixed(3) + '%'
|
|
465
461
|
}
|
|
466
462
|
})
|
|
467
|
-
console.log(this.stageLists, '011')
|
|
468
463
|
},
|
|
469
464
|
getBusPos () {
|
|
470
465
|
// 公交相位信息
|
|
@@ -1051,9 +1046,9 @@ export default {
|
|
|
1051
1046
|
this.fillGap(ringTeams, val)
|
|
1052
1047
|
}
|
|
1053
1048
|
if (this.cycleChange) {
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
const allCycle =
|
|
1049
|
+
const globalParamModel = this.$store.getters.globalParamModel
|
|
1050
|
+
let pattern = globalParamModel.getParamsByType('patternList')
|
|
1051
|
+
const allCycle = pattern.map(item => item.cycle)
|
|
1057
1052
|
let cycle = Math.max(...allCycle)
|
|
1058
1053
|
this.max = cycle
|
|
1059
1054
|
} else {
|