openatc-components 0.2.4 → 0.2.5
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.
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
<div class="divider" :style="{'left':item, 'height':barrierHeight}"></div>
|
|
49
49
|
</div>
|
|
50
50
|
</div>
|
|
51
|
-
<div v-show="(this.curtime>0 && cycle && cycle>0) || (this.curtime>0 && newCycle && newCycle>0)">
|
|
51
|
+
<div v-show="(this.curtime>0 && cycle && cycle>0 && this.isControl) || (this.curtime>0 && newCycle && newCycle>0 && this.isControl)">
|
|
52
52
|
<div class="curTimeDiv" :style="{'left':paddingLeft }">{{ timeNumDevide }}</div>
|
|
53
53
|
<div class="curTimeLine" :style="{'left':paddingLeft, 'height':barrierHeight}"></div>
|
|
54
54
|
</div>
|
|
@@ -108,6 +108,7 @@ export default {
|
|
|
108
108
|
patternIds: this.patternId,
|
|
109
109
|
newPatterns: [],
|
|
110
110
|
newList: [],
|
|
111
|
+
isControl: true,
|
|
111
112
|
contrloCycle: 0,
|
|
112
113
|
sidewalkPhaseData: [],
|
|
113
114
|
// controlDatas: this.controlData,
|
|
@@ -209,8 +210,13 @@ export default {
|
|
|
209
210
|
watch: {
|
|
210
211
|
controlPhase: {
|
|
211
212
|
handler: function (val, oldVal) {
|
|
212
|
-
if (
|
|
213
|
-
this.curtime =
|
|
213
|
+
if (val && val.curTime) {
|
|
214
|
+
this.curtime = val.curTime
|
|
215
|
+
if (val.control === '相位锁定' || val.control === '通道锁定' || val.control === '阶段锁定') {
|
|
216
|
+
this.isControl = false
|
|
217
|
+
} else {
|
|
218
|
+
this.isControl = true
|
|
219
|
+
}
|
|
214
220
|
}
|
|
215
221
|
},
|
|
216
222
|
// 深度观察监听
|
|
@@ -233,8 +239,14 @@ export default {
|
|
|
233
239
|
}
|
|
234
240
|
this.handleBarrierHeight()
|
|
235
241
|
}
|
|
236
|
-
if (
|
|
237
|
-
|
|
242
|
+
if (val && val.curTime) {
|
|
243
|
+
this.curtime = val.curTime
|
|
244
|
+
if (val.control === '相位锁定' || val.control === '通道锁定' || val.control === '阶段锁定') {
|
|
245
|
+
this.isControl = false
|
|
246
|
+
} else {
|
|
247
|
+
this.isControl = true
|
|
248
|
+
}
|
|
249
|
+
}
|
|
238
250
|
},
|
|
239
251
|
// 深度观察监听
|
|
240
252
|
deep: true
|