openatc-components 0.2.71 → 0.2.73

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.2.71",
3
+ "version": "0.2.73",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -114,6 +114,8 @@ const en = {
114
114
  'maxFlow': 'The average lane flow is too large. Is it further optimized?',
115
115
  'typecycle-opt': 'Cycle Opt',
116
116
  'signalIP': 'Signal IP',
117
+ 'stagecountdown': 'Stage Countdown',
118
+ 'stageduration': 'Stage Duration',
117
119
  'currentphase': 'Current phase',
118
120
  'directionnull': 'Please select the import direction',
119
121
  'faultinfo': 'Fault Information',
@@ -114,6 +114,8 @@ const zh = {
114
114
  'protocoltype': '协议类型',
115
115
  'signalID': '路口ID',
116
116
  'signalIP': '信号机IP',
117
+ 'stagecountdown': '阶段倒计时',
118
+ 'stageduration': '阶段时长',
117
119
  'faultinfo': '故障信息',
118
120
  'platform': '平台类型',
119
121
  'online': '在线',
@@ -32,7 +32,7 @@
32
32
  <div class="right-dir-road" v-if="roadDir === 'right'">
33
33
  <div class="centerText" v-if="crossType !== 'Customroads' && isHasPhase">
34
34
  <!-- 相位倒计时 -->
35
- <div class="phaseCountdown" v-show="isShowInterval" v-if="isLoaded && isHasPhase" :class="{'countdownBg': isLoaded}">
35
+ <div class="phaseCountdown" v-show="isShowInterval" v-if="isLoaded && isHasPhase && isHasCountdown" :class="{'countdownBg': isLoaded}">
36
36
  <div v-for="curPhase in phaseCountdownList" :key="curPhase.id" :style="{color: curPhase.phaseCountdownColor}">
37
37
  <div v-if="curPhase.phaseCountdown !== undefined && curPhase.phaseCountdown !== -1" style="overflow: hidden;margin-bottom: 4px;">
38
38
  <span style="float: left;width: 33px;height: 33px;position: relative;border: 1px solid rgba(255, 255, 255, 0.1);margin-right: 7px;">
@@ -639,6 +639,7 @@ export default {
639
639
  getCurPhaseCountdown () {
640
640
  // 获取当前相位倒计时颜色
641
641
  this.phaseCountdownList = []
642
+ this.isHasCountdown = false
642
643
  this.curPhase.forEach(curP => {
643
644
  this.phaseStatusList.forEach(phaseInfo => {
644
645
  if (phaseInfo.id === curP) {
@@ -660,6 +661,9 @@ export default {
660
661
  }
661
662
 
662
663
  this.phaseCountdownList.push(countdownObj)
664
+ if (phaseInfo.countdown !== undefined && phaseInfo.countdown !== -1) {
665
+ this.isHasCountdown = true
666
+ }
663
667
  }
664
668
  })
665
669
  })
@@ -49,6 +49,14 @@
49
49
  <div style="float: left;" class="cross-name">{{$t('openatccomponents.overview.platform')}}:</div>
50
50
  <div style="margin-left: 85px;" class="cross-value">{{platform}}</div>
51
51
  </div>
52
+ <div class="cross-content" v-if="controlData.current_stagecd !== undefined">
53
+ <div style="float: left;" class="cross-name">{{$t('openatccomponents.overview.stagecountdown')}}:</div>
54
+ <div style="margin-left: 85px;" class="cross-value">{{controlData.current_stagecd}}</div>
55
+ </div>
56
+ <div class="cross-content" v-if="controlData.stages_len">
57
+ <div style="float: left;" class="cross-name">{{$t('openatccomponents.overview.stageduration')}}:</div>
58
+ <div style="margin-left: 85px;" class="cross-value">{{controlData.stages_len + ''}}</div>
59
+ </div>
52
60
  <div class="cross-content">
53
61
  <div style="float: left;" class="cross-name">{{$t('openatccomponents.overview.faultinfo')}}:</div>
54
62
  <div style="margin-left: 85px;" v-if="curFaultList.length">