openatc-components 0.1.167 → 0.1.168

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.1.167",
3
+ "version": "0.1.168",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -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: {