openatc-components 0.0.56 → 0.0.57

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.
@@ -22,7 +22,7 @@
22
22
  :modelList="modelList"
23
23
  :patternSelect="patternSelect"
24
24
  :patternAll="patternAll"
25
- :crossStatusData="crossStatusData"
25
+ :crossStatusData="realtimeStage"
26
26
  :phaseList="phaseList"
27
27
  :specialcontrolList="specialcontrolList"
28
28
  :currModel="currModel"
@@ -293,18 +293,19 @@ export default {
293
293
  ignoredFault: [],
294
294
  untreatedFault: [],
295
295
  patternAll: [],
296
+ realtimeStage: {},
296
297
  patternSelect: [], // 所有方案id
297
298
  specialPage: '' // 哪一个特殊控制页面
298
299
  }
299
300
  },
300
301
  watch: {
301
- // statusData: {
302
- // handler: function (val) {
303
- // this.initData()
304
- // },
305
- // // 深度观察监听
306
- // deep: true
307
- // },
302
+ statusData: {
303
+ handler: function (val) {
304
+ this.initData()
305
+ },
306
+ // 深度观察监听
307
+ deep: true
308
+ },
308
309
  phaseList: {
309
310
  handler: function (val, oldVal) {
310
311
  this.getPedPhasePos()
@@ -338,6 +339,7 @@ export default {
338
339
  await this.getPhase()
339
340
  this.getFault()
340
341
  this.initData()
342
+ this.realtimeStages()
341
343
  },
342
344
  methods: {
343
345
  getIntersectionInfo (agentid) {
@@ -368,6 +370,9 @@ export default {
368
370
  this.faultTimer = null
369
371
  }
370
372
  },
373
+ realtimeStages () {
374
+ this.realtimeStage = JSON.parse(JSON.stringify(this.statusData))
375
+ },
371
376
  initData () {
372
377
  this.crossStatusData = JSON.parse(JSON.stringify(this.statusData))
373
378
  let TscData = JSON.parse(JSON.stringify(this.crossStatusData))