openatc-components 0.0.34 → 0.0.35
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.
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div v-for="(item, index) in barrierList" :key="index + '1'">
|
|
47
47
|
<div class="divider" :style="{'left':item, 'height':barrierHeight}"></div>
|
|
48
48
|
</div>
|
|
49
|
-
<div v-show="syncTime && cycle && cycle >
|
|
49
|
+
<div v-show="(syncTime && cycle && cycle>0) || (syncTime && newCycle && newCycle>0)">
|
|
50
50
|
<div class="curTimeDiv" :style="{'left':paddingLeft, 'background-color': '#409EFF'}">{{ timeNumDevide }}</div>
|
|
51
51
|
<div class="curTimeLine" :style="{'left':paddingLeft, 'height':barrierHeight}"></div>
|
|
52
52
|
</div>
|
|
@@ -152,6 +152,10 @@ export default {
|
|
|
152
152
|
computed: {
|
|
153
153
|
paddingLeft () {
|
|
154
154
|
let res = '0%'
|
|
155
|
+
if (this.newCycle && this.newCycle > 0) {
|
|
156
|
+
let curPercent = (this.newCycle - this.syncTime) / this.newCycle
|
|
157
|
+
res = curPercent * 100 + '%'
|
|
158
|
+
}
|
|
155
159
|
if (this.cycle && this.cycle > 0) {
|
|
156
160
|
let curPercent = (this.cycle - this.syncTime) / this.cycle
|
|
157
161
|
res = curPercent * 100 + '%'
|
|
@@ -159,8 +163,14 @@ export default {
|
|
|
159
163
|
return res
|
|
160
164
|
},
|
|
161
165
|
timeNumDevide () {
|
|
162
|
-
|
|
163
|
-
|
|
166
|
+
if (this.newCycle && this.newCycle > 0) {
|
|
167
|
+
let res = (this.newCycle - this.syncTime) + '/' + this.newCycle
|
|
168
|
+
return res
|
|
169
|
+
}
|
|
170
|
+
if (this.cycle && this.cycle > 0) {
|
|
171
|
+
let res = (this.cycle - this.syncTime) + '/' + this.cycle
|
|
172
|
+
return res
|
|
173
|
+
}
|
|
164
174
|
}
|
|
165
175
|
},
|
|
166
176
|
watch: {
|
|
@@ -171,6 +181,7 @@ export default {
|
|
|
171
181
|
}
|
|
172
182
|
// this.controlDatas = this.controlData
|
|
173
183
|
this.handlePatternData()
|
|
184
|
+
this.handleBarrierHeight()
|
|
174
185
|
},
|
|
175
186
|
// 深度观察监听
|
|
176
187
|
deep: true
|
|
@@ -243,7 +254,7 @@ export default {
|
|
|
243
254
|
setTimeout(() => {
|
|
244
255
|
this.handleCurrentChange(this.patternStatusList)
|
|
245
256
|
this.handleBarrierHeight()
|
|
246
|
-
},
|
|
257
|
+
}, 400)
|
|
247
258
|
} else {
|
|
248
259
|
this.handlePatternData()
|
|
249
260
|
}
|