openatc-components 0.2.3 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -23,7 +23,7 @@
23
23
  <!-- <patternwalksvg :showWalk="item.peddirection" :Width="'32'" :Height="'34'"></patternwalksvg> -->
24
24
  <xdrdirselector Width="60px" Height="60px" Widths="50px" Heights="50px" :showlist="item.direction"></xdrdirselector>
25
25
  </div>
26
- <div class="box" style="position: absolute; left:40px;top: -1px;">
26
+ <div class="box" style="position: absolute; left:40px; width:20px; top: -1px;">
27
27
  <div class="ring-nums">P{{item.id}}</div>
28
28
  <div class="ring-nums">{{item.split}}</div>
29
29
  </div>
@@ -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>
@@ -68,7 +68,7 @@
68
68
  <!-- <patternwalksvg :showWalk="list.peddirection" :Width="'32'" :Height="'34'"></patternwalksvg> -->
69
69
  <xdrdirselector v-if="list.direction&&list.direction.length>0" Width="60px" Height="60px" Widths="50px" Heights="50px" :showlist="list.direction"></xdrdirselector>
70
70
  </div>
71
- <div class="box" style="position: absolute; left:41px; top:-1px;">
71
+ <div class="box" style="position: absolute; left:41px; width:20px; top:-1px;">
72
72
  <div class="ring-nums">S{{list.key+1}}</div>
73
73
  <div class="ring-nums">{{list.stageSplit}}</div>
74
74
  </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 (this.controlPhase && this.controlPhase.curTime) {
213
- this.curtime = this.controlPhase.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 (!this.controlData.curTime) return
237
- this.curtime = this.controlData.curTime
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
@@ -64,12 +64,12 @@
64
64
  .curTimeDiv {
65
65
  position: absolute;
66
66
  z-index:50;
67
- top: -21PX;
67
+ top: -25PX;
68
68
  font-size: 14PX;
69
69
  margin-left: -10PX;
70
70
  text-align:center;
71
71
  vertical-align: middle;
72
- width: 60PX;
72
+ width: 25PX;
73
73
  height: 19PX;
74
74
  color: $--color-text-primary;
75
75
  // background-color: black;