openatc-components 0.4.29 → 0.4.31

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.
@@ -44,7 +44,7 @@
44
44
  </div>
45
45
  </div>
46
46
  <!-- 阶段倒计时 -->
47
- <div class="phaseCountdown" v-show="isShowInterval" v-if="isLoaded && contrloType === 'stage'" :class="{'countdownBg': isLoaded}">
47
+ <div class="phaseCountdown" v-show="isShowInterval" v-if="isLoaded && isHasStageCountdown && contrloType === 'stage'" :class="{'countdownBg': isLoaded}">
48
48
  <div style="overflow: hidden;margin-bottom: 4px;" :style="{color: stageCountdownList[0].phaseCountdownColor}">
49
49
  <span style="float: left;width: 42px;height: 42px;position: relative;border: 1px solid rgba(255, 255, 255, 0.1);margin-right: 5px;">
50
50
  <xdr-dir-selector :Data="xdrData" :Datas="xdrpedData" Width="55px" Height="55px" Widths="55px" Heights="55px" :showlist="dirListSetTheme(stageCountdownList)" :roadDirection="roadDirection"></xdr-dir-selector>
@@ -119,7 +119,7 @@
119
119
  </div>
120
120
  </div>
121
121
  <!-- 阶段倒计时 -->
122
- <div class="phaseCountdown" v-show="isShowInterval" v-if="isLoaded && contrloType === 'stage'" :class="{'countdownBg': isLoaded}">
122
+ <div class="phaseCountdown" v-show="isShowInterval" v-if="isLoaded && isHasStageCountdown && contrloType === 'stage'" :class="{'countdownBg': isLoaded}">
123
123
  <div style="overflow: hidden;margin-bottom: 4px;" :style="{color: stageCountdownList[0].phaseCountdownColor}">
124
124
  <span style="float: left;width: 42px;height: 42px;position: relative;border: 1px solid rgba(255, 255, 255, 0.1);margin-right: 5px;">
125
125
  <xdr-dir-selector :Data="xdrData" :Datas="xdrpedData" Width="55px" Height="55px" Widths="55px" Heights="55px" :showlist="dirListSetTheme(stageCountdownList)" :roadDirection="roadDirection"></xdr-dir-selector>
@@ -390,6 +390,7 @@ export default {
390
390
  top: '1px'
391
391
  },
392
392
  isHasCountdown: false,
393
+ isHasStageCountdown: false,
393
394
  contrloType: 'ring',
394
395
  isMphaseStatusDataReturnMap: new Map(), // 每个跟随相位的母相位是否返回了相位状态数据
395
396
  overlapStatusCompareSum: 0 // 首次加载跳过比较母相位状态数据是否返回
@@ -776,7 +777,9 @@ export default {
776
777
  },
777
778
  stagesList () {
778
779
  let list = []
780
+ this.isHasStageCountdown = false
779
781
  if (this.crossStatusData && this.crossStatusData.stages && this.crossInfo.phaseList && this.crossInfo.phaseList.length > 0) {
782
+ this.isHasStageCountdown = true
780
783
  let ringDataModel = new RingDataModel(this.crossStatusData, this.crossInfo.phaseList)
781
784
  list = ringDataModel.getStageData()
782
785
  if (this.isShowCurrentStage) {