openatc-components 0.3.53 → 0.3.54

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.
@@ -29,7 +29,6 @@
29
29
  <div v-if="isMove" class="ring-nums">{{item.split}}</div>
30
30
  <el-input-number
31
31
  v-if="!isMove"
32
- :disabled="!cycles"
33
32
  class="ring-nums"
34
33
  size="small"
35
34
  :controls="false"
@@ -429,15 +428,12 @@ export default {
429
428
  }
430
429
  })
431
430
  })
432
- let n = this.index
433
- const globalParamModel = this.$store.getters.globalParamModel
434
- let pattern = globalParamModel.getParamsByType('patternList')[n]
435
- globalParamModel.getParamsByType('patternList')[n].cycle = this.getMaxCycle(pattern)
431
+ val.cycle = this.getMaxCycle(this.patternStatusList)
436
432
  },
437
433
  getMaxCycle (pattern) {
438
- let rings = pattern.rings
434
+ // let rings = pattern.rings
439
435
  let maxCycle = 0
440
- for (let ring of rings) {
436
+ for (let ring of pattern) {
441
437
  if (ring.length === 0) continue
442
438
  let cycle = 0
443
439
  for (let r of ring) {