openatc-components 0.2.11 → 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
  })