openatc-components 0.0.79 → 0.0.82

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.
@@ -179,6 +179,7 @@ export default {
179
179
  this.getIndexStage()
180
180
  }
181
181
  // this.controlDatas = this.controlData
182
+ this.getPedPhasePos()
182
183
  this.handlePatternData()
183
184
  this.handleBarrierHeight()
184
185
  },
@@ -190,6 +191,7 @@ export default {
190
191
  this.getPedPhasePos()
191
192
  this.getBusPos()
192
193
  this.getStage()
194
+ this.handlePatternData()
193
195
  },
194
196
  // 深度观察监听
195
197
  deep: true
@@ -10,7 +10,7 @@
10
10
  * See the Mulan PSL v2 for more details.
11
11
  **/
12
12
  <template>
13
- <div id="intersection-stages" class="intersection-stages">
13
+ <div id="intersection-stages" class="intersection-stages" :style="stageStyle">
14
14
  <!-- <div class="cross-content"><div style="float: left;" class="cross-name">{{'当前阶段'}}:</div> -->
15
15
  <div style="margin-left: 10PX;" >
16
16
  <div style="width: 100%; height: auto;">
@@ -40,6 +40,7 @@
40
40
  </div>
41
41
  <i class="iconfont icon-gongjiaoche" style="font-size:11PX;color:#606266;" v-if="item[item.length-1].controltype === 3"></i>
42
42
  <i class="iconfont icon-youguidianche" style="font-size:11PX;color:#606266;" v-if="item[item.length-1].controltype === 5"></i>
43
+ <div v-if="presetIndex === index + 1" style="color:red;width:50px;position:absolute;right:0px;bottom:5px;font-size:11px;">{{presetText}}</div>
43
44
  </div>
44
45
  </div>
45
46
  </div>
@@ -71,6 +72,18 @@ export default {
71
72
  type: Array,
72
73
  default: () => []
73
74
  },
75
+ presetText: {
76
+ type: String,
77
+ default: '预置'
78
+ },
79
+ presetIndex: {
80
+ type: Number,
81
+ default: -1
82
+ },
83
+ zoom: {
84
+ type: Number,
85
+ default: 1
86
+ },
74
87
  StageWidth: {
75
88
  type: String,
76
89
  default: '70px'
@@ -104,6 +117,11 @@ export default {
104
117
  }
105
118
  }
106
119
  return list
120
+ },
121
+ stageStyle () {
122
+ return {
123
+ zoom: this.zoom
124
+ }
107
125
  }
108
126
  },
109
127
  methods: {