openatc-components 0.1.167 → 0.1.169

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.
@@ -174,6 +174,10 @@ export default {
174
174
  let curPercent = (this.contrloCycle - this.syncTime) / (this.max ? this.max : this.contrloCycle)
175
175
  res = curPercent * 100 + '%'
176
176
  }
177
+ if (this.cycles > 0) {
178
+ let curPercent = (this.cycles - this.syncTime) / (this.max ? this.max : this.cycles)
179
+ res = curPercent * 100 + '%'
180
+ }
177
181
  return res
178
182
  },
179
183
  timeNumDevide () {
@@ -181,6 +185,10 @@ export default {
181
185
  let res = (this.contrloCycle - this.syncTime) + '/' + this.contrloCycle
182
186
  return res
183
187
  }
188
+ if (this.cycles > 0) {
189
+ let res = (this.cycles - this.syncTime) + '/' + this.cycles
190
+ return res
191
+ }
184
192
  }
185
193
  },
186
194
  watch: {
@@ -268,6 +276,7 @@ export default {
268
276
  if (this.patternStatusList && this.newCycle) {
269
277
  setTimeout(() => {
270
278
  this.handleCurrentChange(this.patternStatusList)
279
+ this.handleBarrierHeight()
271
280
  }, 10)
272
281
  this.handleBarrierHeight()
273
282
  }