openatc-components 0.2.23 → 0.2.25

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.
@@ -70,7 +70,7 @@ export default {
70
70
  },
71
71
  cycleChange: {
72
72
  type: Boolean,
73
- default: true
73
+ default: false
74
74
  },
75
75
  cycle: {
76
76
  type: Number
@@ -148,7 +148,7 @@ export default {
148
148
  let overlapData = overlap.map(item => {
149
149
  let findIndexs = []
150
150
  item.includedphases.forEach(i => {
151
- const findItems = stageList.filter(j => j.phases.includes(i))
151
+ const findItems = stageList.filter(j => (j.phases ? j.phases : j.stages).includes(i))
152
152
  if (findItems.length) findIndexs.push(...findItems.map(m => m.key))
153
153
  })
154
154
  findIndexs = Array.from(new Set(findIndexs))
@@ -490,15 +490,16 @@ export default {
490
490
  changeStage () {
491
491
  this.contrloType = 'stage'
492
492
  this.isRing = true
493
- this.patternOne = this.allPatternList.filter(item => {
494
- return item.id === Number(this.manualInfo.tempPatternid)
495
- })
496
- this.getStageCycle()
493
+ // this.patternOne = this.allPatternList.filter(item => {
494
+ // return item.id === Number(this.manualInfo.tempPatternid)
495
+ // })
496
+ // this.getStageCycle()
497
497
  },
498
498
  getStageCycle () {
499
499
  // this.patternOne.length === 0 ? this.allPatternList this.patternOne
500
500
  if (this.patternOne.length === 0) {
501
- this.setStageList(this.planPattern.stagesList, this.planPattern.id)
501
+ // this.setStageList(this.planPattern.stagesList, this.planPattern.id)
502
+ // this.planPattern.stagesList = []
502
503
  } else {
503
504
  // this.patternOne = this.allPatternList.filter(item => {
504
505
  // return item.id === Number(this.manualInfo.tempPatternid)