openatc-components 0.1.178 → 0.1.180

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.
@@ -873,7 +873,7 @@ export default {
873
873
  },
874
874
  handleCurrentChange (val) { // 两个ring的数据
875
875
  if (val === null || val.length === 0) return
876
- if (this.controlPhase.phase && this.controlPhase.phase[0].split) {
876
+ if (this.controlPhase && this.controlPhase.phase && this.controlPhase.phase[0].split) {
877
877
  val.map(i => {
878
878
  i.map(j => {
879
879
  j.value = this.controlPhase.phase.filter(item => item.id === j.id)[0].split
@@ -9,6 +9,7 @@
9
9
  :cycle="cycle"
10
10
  :cycleChange="cycleChange"
11
11
  :patternList="patternList"
12
+ :controlPhase="controlPhase"
12
13
  :showCondition="showCondition"
13
14
  :localPatternList="localPatternList"
14
15
  :phaseList="phaseList"
@@ -506,6 +507,9 @@ export default {
506
507
  type: Boolean,
507
508
  default: false
508
509
  },
510
+ controlPhase: {
511
+ type: Object
512
+ },
509
513
  localPatternList: {
510
514
  type: Array
511
515
  },