openatc-components 0.5.36 → 0.5.37

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.
@@ -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: {