openatc-components 0.0.78 → 0.0.81

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.
@@ -187,6 +187,7 @@ export default {
187
187
  },
188
188
  phaseList: {
189
189
  handler: function (val, oldVal) {
190
+ this.handlePatternData()
190
191
  this.getPedPhasePos()
191
192
  this.getBusPos()
192
193
  this.getStage()
@@ -155,12 +155,12 @@ export default {
155
155
  ip: {
156
156
  type: String
157
157
  },
158
- allPatternList: {
159
- type: Array
160
- },
161
- overlap: {
162
- type: Array
163
- },
158
+ // allPatternList: {
159
+ // type: Array
160
+ // },
161
+ // overlap: {
162
+ // type: Array
163
+ // },
164
164
  platform: {
165
165
  type: String
166
166
  },
@@ -189,6 +189,8 @@ export default {
189
189
  crossStatusData: null,
190
190
  controlData: {},
191
191
  control: '',
192
+ allPatternList: [],
193
+ overlap: [],
192
194
  sidewalkPhaseData: [],
193
195
  list: [{
194
196
  iconClass: 'model',
@@ -351,6 +353,8 @@ export default {
351
353
  // 获取路口信息
352
354
  getIntersectionInfo(agentid).then(res => {
353
355
  this.patternAll = res.data.data.param.patternList
356
+ this.allPatternList = res.data.data.param.patternList
357
+ this.overlap = res.data.data.param.overlaplList
354
358
  this.patternSelect = res.data.data.param.patternList.map(item => {
355
359
  return {
356
360
  value: item.id,
@@ -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: {