openatc-components 0.1.79 → 0.1.80
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 +19 -6
- package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +3 -7
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +19 -6
- package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +3 -7
- package/src/node_modules/.package_versions.json +1 -0
- package/static/styles/channelizatioon.scss +0 -1
package/package.json
CHANGED
|
@@ -826,6 +826,17 @@ 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)// 每个环的周期最大值
|
|
829
840
|
let newRings = ringsequence.filter(item => item)
|
|
830
841
|
let minLength = Math.min(...ringlength)
|
|
831
842
|
let resultArrs = [] // 环1分组
|
|
@@ -923,7 +934,9 @@ export default {
|
|
|
923
934
|
if (this.patternList) {
|
|
924
935
|
this.setBarrier(ringTeams, val)
|
|
925
936
|
}
|
|
926
|
-
|
|
937
|
+
if (newRings.length > 1) {
|
|
938
|
+
this.fillGap(ringTeams, val)
|
|
939
|
+
}
|
|
927
940
|
let barrier = this.step2(ringTeams, newPattern)
|
|
928
941
|
this.barrierList = barrier.map(j => {
|
|
929
942
|
return (j / (this.max ? this.max : this.newCycle) * 100) + '%'
|
|
@@ -993,14 +1006,14 @@ export default {
|
|
|
993
1006
|
}
|
|
994
1007
|
obj.split = split
|
|
995
1008
|
if (ring.sum) {
|
|
996
|
-
obj.redWidth = ((currPhase.redclear + ring.sum) / (this.max ? this.max :
|
|
1009
|
+
obj.redWidth = ((currPhase.redclear + ring.sum) / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
997
1010
|
} else {
|
|
998
|
-
obj.redWidth = (currPhase.redclear / (this.max ? this.max :
|
|
1011
|
+
obj.redWidth = (currPhase.redclear / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
999
1012
|
}
|
|
1000
1013
|
obj.mode = ring.mode
|
|
1001
|
-
obj.greenWidth = ((split - currPhase.redclear - currPhase.yellow - currPhase.flashgreen) / (this.max ? this.max :
|
|
1002
|
-
obj.flashgreen = (currPhase.flashgreen / (this.max ? this.max :
|
|
1003
|
-
obj.yellowWidth = (currPhase.yellow / (this.max ? this.max :
|
|
1014
|
+
obj.greenWidth = ((split - currPhase.redclear - currPhase.yellow - currPhase.flashgreen) / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
1015
|
+
obj.flashgreen = (currPhase.flashgreen / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
1016
|
+
obj.yellowWidth = (currPhase.yellow / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
1004
1017
|
// 忽略相位不显示
|
|
1005
1018
|
// let mode = ring.mode
|
|
1006
1019
|
// if (mode !== 7) { // 忽略相位不显示
|
|
@@ -182,14 +182,10 @@ export default {
|
|
|
182
182
|
control: 24,
|
|
183
183
|
delay: this.manualInfo.delay,
|
|
184
184
|
duration: this.manualInfo.duration,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
level: this.manualInfo.level
|
|
189
|
-
}
|
|
190
|
-
|
|
185
|
+
type: this.manualInfo.type,
|
|
186
|
+
phase: this.manualInfo.phase,
|
|
187
|
+
level: this.manualInfo.level
|
|
191
188
|
}
|
|
192
|
-
console.log(submitdata, 'submitdata')
|
|
193
189
|
this.$emit('closePhaseControl', submitdata)
|
|
194
190
|
}
|
|
195
191
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|