openatc-components 0.4.30 → 0.4.32

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.
@@ -441,8 +441,12 @@ export default {
441
441
  this.curPhase = val.current_phase
442
442
  this.curStage = val.current_stage
443
443
  this.isHasPhase = true
444
- this.createPhaseStatusMap()
445
- this.createOverlapPhaseStatusMap()
444
+ if (val.phase) {
445
+ this.createPhaseStatusMap()
446
+ }
447
+ if (val.overlap) {
448
+ this.createOverlapPhaseStatusMap()
449
+ }
446
450
  // 正常情况下,获取车道相位、车道跟随相位、相位倒计时、行人相位、行人跟随相位 的状态
447
451
  this.getPhaseStatus()
448
452
  this.getOverlapPhaseStatus()
@@ -26,7 +26,7 @@
26
26
  <el-input v-model="optimizecycle" clearable :placeholder="$t('openatccomponents.common.enter')"></el-input>
27
27
  <el-button v-if="isTentative" type="primary" @click="optimize()">{{$t('openatccomponents.pattern.inoptimize')}}</el-button>
28
28
  </div>
29
- <el-table class="tb-edit" ref="singleTables" row-key="id" :data="tableRing" element-loading-text="Loading" :max-height="tableHeight" fit highlight-current-row id="footerBtn">
29
+ <el-table :cell-style="{ padding: '0' }" :data="tableRing" :max-height="tableHeight" highlight-current-row>
30
30
  <el-table-column prop="id" sortable align="center" :label="$t('openatccomponents.overview.id')">
31
31
  <template slot-scope="scope">
32
32
  <span>{{scope.row.id}}</span>
@@ -26,7 +26,7 @@
26
26
  <el-input v-model="optimizecycle" clearable :placeholder="$t('openatccomponents.common.enter')"></el-input>
27
27
  <!-- <el-button type="primary" @click="optimize()">{{$t('openatccomponents.pattern.inoptimize')}}</el-button> -->
28
28
  </div>
29
- <el-table :cell-style="{ padding: '0' }" class="tb-edit" :data="tableRing" element-loading-text="Loading" :max-height="tableHeight" fit highlight-current-row id="footerBtn">
29
+ <el-table :cell-style="{ padding: '0' }" :data="tableRing" :max-height="tableHeight" highlight-current-row>
30
30
  <el-table-column prop="id" sortable align="center" :label="$t('openatccomponents.overview.id')">
31
31
  <template slot-scope="scope">
32
32
  <span>{{scope.row.id}}</span>