openatc-components 0.1.181 → 0.1.182
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.
|
@@ -122,7 +122,7 @@ export default {
|
|
|
122
122
|
props: {
|
|
123
123
|
cycleChange: {
|
|
124
124
|
type: Boolean,
|
|
125
|
-
default:
|
|
125
|
+
default: true
|
|
126
126
|
},
|
|
127
127
|
stagesChange: {
|
|
128
128
|
type: Array
|
|
@@ -233,6 +233,7 @@ export default {
|
|
|
233
233
|
},
|
|
234
234
|
cycleChange: {
|
|
235
235
|
handler: function (val, oldVal) {
|
|
236
|
+
this.getStage()
|
|
236
237
|
this.handleCurrentChange(this.patternStatusList)
|
|
237
238
|
this.handleBarrierHeight()
|
|
238
239
|
},
|
|
@@ -407,15 +408,27 @@ export default {
|
|
|
407
408
|
},
|
|
408
409
|
getStage () {
|
|
409
410
|
if (!this.stagesChange) return
|
|
410
|
-
|
|
411
|
-
|
|
411
|
+
const globalParamModel = this.$store.getters.globalParamModel
|
|
412
|
+
let pattern = globalParamModel.getParamsByType('patternList')
|
|
413
|
+
let mapAdd = pattern.map(item => item.stagesList).map(item => {
|
|
414
|
+
return item.map(val => {
|
|
415
|
+
return val.stageSplit
|
|
416
|
+
})
|
|
412
417
|
})
|
|
413
|
-
let
|
|
414
|
-
return a
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
//
|
|
418
|
+
let maxCycle = mapAdd.length > 0 ? mapAdd.map(item => {
|
|
419
|
+
return item.length > 0 ? item.reduce((a, b) => {
|
|
420
|
+
return a + b
|
|
421
|
+
}) : 0
|
|
422
|
+
}) : 0
|
|
423
|
+
let stageMaxCyle = Math.max(...maxCycle)// 每个环的周期最大值
|
|
424
|
+
if (!this.cycleChange) {
|
|
425
|
+
let stageCycleList = this.stagesChange.map(item => {
|
|
426
|
+
return item.stageSplit ? item.stageSplit : 0
|
|
427
|
+
})
|
|
428
|
+
stageMaxCyle = stageCycleList.reduce((a, b) => {
|
|
429
|
+
return a + b
|
|
430
|
+
}, 0)
|
|
431
|
+
}
|
|
419
432
|
this.stageLists = this.stagesChange.map(item => {
|
|
420
433
|
return {
|
|
421
434
|
...item,
|