openatc-components 0.2.10 → 0.2.12

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.
@@ -432,9 +432,9 @@ export default {
432
432
  },
433
433
  getStage () {
434
434
  if (!this.stagesChange) return
435
- // const globalParamModel = this.$store.getters.globalParamModel
436
- // let pattern = globalParamModel.getParamsByType('patternList')
437
- let mapAdd = this.allPatternList.map(item => item.stagesList).map(item => {
435
+ const globalParamModel = this.$store.getters.globalParamModel
436
+ let pattern = globalParamModel.getParamsByType('patternList')
437
+ let mapAdd = (this.allPatternList ? this.allPatternList : pattern).map(item => item.stagesList).map(item => {
438
438
  return item.map(val => {
439
439
  return val.stageSplit ? val.stageSplit : val.split
440
440
  })
@@ -1051,9 +1051,9 @@ export default {
1051
1051
  this.fillGap(ringTeams, val)
1052
1052
  }
1053
1053
  if (this.cycleChange) {
1054
- // const globalParamModel = this.$store.getters.globalParamModel
1055
- // let pattern = globalParamModel.getParamsByType('patternList')
1056
- const allCycle = this.patternList.map(item => item.cycle)
1054
+ const globalParamModel = this.$store.getters.globalParamModel
1055
+ let pattern = globalParamModel.getParamsByType('patternList')
1056
+ const allCycle = pattern.map(item => item.cycle)
1057
1057
  let cycle = Math.max(...allCycle)
1058
1058
  this.max = cycle
1059
1059
  } else {