openatc-components 0.5.36 → 0.5.38

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.
@@ -325,11 +325,12 @@ export default {
325
325
  handler: function (val, oldVal) {
326
326
  if ((val && val.curTime) || val.curTime === 0) {
327
327
  this.curtime = val.curTime
328
- if (val.control === 4 || val.control === 16 || val.control === 22) {
329
- this.isControl = false
330
- } else {
331
- this.isControl = true
332
- }
328
+ // if (val.control === 4 || val.control === 16 || val.control === 22) {
329
+ // this.isControl = false
330
+ // } else {
331
+ // this.isControl = true
332
+ // }
333
+ this.isControl = true
333
334
  }
334
335
  },
335
336
  // 深度观察监听
@@ -354,11 +355,12 @@ export default {
354
355
  }
355
356
  if ((val && val.curTime) || val.curTime === 0) {
356
357
  this.curtime = val.curTime
357
- if (val.control === 4 || val.control === 16 || val.control === 22) {
358
- this.isControl = false
359
- } else {
360
- this.isControl = true
361
- }
358
+ // if (val.control === 4 || val.control === 16 || val.control === 22) {
359
+ // this.isControl = false
360
+ // } else {
361
+ // this.isControl = true
362
+ // }
363
+ this.isControl = true
362
364
  }
363
365
  },
364
366
  // 深度观察监听
@@ -78,6 +78,7 @@
78
78
  :phaseList="phaseList"
79
79
  :sidewalkPhaseData="sidewalkPhaseData"
80
80
  :roadDirection="roadDirection"
81
+ :faultboardState="faultboardState"
81
82
  @changeStatus="changeStatus"
82
83
  @showFaultDetail="showFaultDetail"/>
83
84
  </div>
@@ -234,6 +235,13 @@ export default {
234
235
  protocol: {
235
236
  type: String,
236
237
  default: 'ocp'
238
+ },
239
+ faultboardState: {
240
+ type: Number,
241
+ default: null,
242
+ validator: function (value) {
243
+ return value === null || value === 1 || value === 2
244
+ }
237
245
  }
238
246
  },
239
247
  data () {
@@ -82,6 +82,10 @@
82
82
  v-if="!curFaultList.length"
83
83
  >{{$t('openatccomponents.overview.nofault')}}</div>
84
84
  </div>
85
+ <div class="cross-content" v-if="faultboardState !== null">
86
+ <div style="float: left;" class="cross-name">{{$t('openatccomponents.overview.faultboard')}}:</div>
87
+ <div style="margin-left: 85px;" class="cross-value">{{faultboardStateText}}</div>
88
+ </div>
85
89
  </div>
86
90
  <div class="control-bottom">
87
91
  <div
@@ -263,8 +267,24 @@ export default {
263
267
  },
264
268
  roadDirection: {
265
269
  type: String
270
+ },
271
+ faultboardState: {
272
+ type: Number,
273
+ default: null,
274
+ validator: function (value) {
275
+ return value === null || value === 1 || value === 2
276
+ }
277
+ }
278
+ },
279
+ computed: {
280
+ faultInfo () {
281
+ return this.$t('openatccomponents.overview.nofault')
282
+ },
283
+ faultboardStateText () {
284
+ return this.faultboardState === 1
285
+ ? this.$t('openatccomponents.overview.faultboardLearned')
286
+ : this.$t('openatccomponents.overview.faultboardNotLearned')
266
287
  }
267
-
268
288
  },
269
289
  watch: {
270
290
  agentId: {