openatc-components 0.0.41-hotfix → 0.0.44-hotfix

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.0.41-hotfix",
3
+ "version": "0.0.44-hotfix",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -30,7 +30,9 @@
30
30
  </div>
31
31
  </el-tooltip>
32
32
  <div style="position:relative; width:50px;" v-for="(bus,index3) in busPhaseData" :key="index3">
33
+ <i class="iconfont icon-lukouquhua" style="position: absolute;top: 8px;font-size:12px;color:#454545;" v-if="bus.controltype === 1 && bus.phaseid===item.id"></i>
33
34
  <i class="iconfont icon-BRT" style="position: absolute;top: 8px;font-size:12px;color:#454545;" v-if="bus.controltype === 4 && bus.phaseid===item.id"></i>
35
+ <i class="iconfont icon-xuxiangwei" style="position: absolute;top: 8px;font-size:12px;color:#454545;" v-if="bus.controltype === 99 && bus.phaseid===item.id"></i>
34
36
  <i class="iconfont icon-feijidongche" style="position: absolute;top: 8px;font-size:12px;color:#454545;" v-if="bus.controltype === 6 && bus.phaseid===item.id"></i>
35
37
  <i class="iconfont icon-gongjiaoche" style="position: absolute;top: 8px;font-size:12px;color:#454545;" v-if="bus.controltype === 3 && bus.phaseid===item.id"></i>
36
38
  <i class="iconfont icon-youguidianche" style="position: absolute;top: 8px;font-size:12px;color:#454545;" v-if="bus.controltype === 5 && bus.phaseid===item.id"></i>
@@ -33,8 +33,10 @@
33
33
  <div style="display:flex;flex-direction:row;justify-content:center;align-items:center;">
34
34
  <div class="current-stage-num" style="width:20%;">{{index + 1}}</div>
35
35
  <div style="width:70%;">
36
- <i class="iconfont icon-BRT" style="font-size:11PX;color:#606266;" v-if="item[item.length-1].controltype === 4"></i>
37
36
  <i class="iconfont icon-feijidongche" style="font-size:11PX;color:#606266;" v-if="item[item.length-1].controltype === 6"></i>
37
+ <i class="iconfont icon-lukouquhua" style="position: absolute;top: 8px;font-size:11PX;color:#454545;" v-if="item[item.length-1].controltype === 1"></i>
38
+ <i class="iconfont icon-BRT" style="position: absolute;top: 8px;font-size:11PX;color:#454545;" v-if="item[item.length-1].controltype === 4"></i>
39
+ <i class="iconfont icon-xuxiangwei" style="position: absolute;top: 8px;font-size:11PX;color:#454545;" v-if="item[item.length-1].controltype === 99"></i>
38
40
  <i class="iconfont icon-gongjiaoche" style="font-size:11PX;color:#606266;" v-if="item[item.length-1].controltype === 3"></i>
39
41
  <i class="iconfont icon-youguidianche" style="font-size:11PX;color:#606266;" v-if="item[item.length-1].controltype === 5"></i>
40
42
  </div>
@@ -101,18 +101,18 @@ export default class RingDataModel {
101
101
  // 公交相位信息
102
102
  this.busPhaseData = []
103
103
  this.phaseList.forEach((ele, i) => {
104
- // if (ele.controltype >= 3 && ele.controltype <= 5) {
105
- ele.direction.forEach((dir, index) => {
104
+ if (ele.controltype) {
105
+ ele.direction.forEach((dir, index) => {
106
106
  // 车道相位
107
- this.busPhaseData.push({
107
+ this.busPhaseData.push({
108
108
  // key: this.CrossDiagramMgr.getUniqueKey('busphase'),
109
- phaseid: ele.id, // 相位id,用于对应相位状态
110
- id: dir, // 接口返回的dir字段,对应前端定义的相位方向id,唯一标识
111
- name: this.PhaseDataModel.getBusPhasePos(dir).name,
112
- controltype: ele.controltype
109
+ phaseid: ele.id, // 相位id,用于对应相位状态
110
+ id: dir, // 接口返回的dir字段,对应前端定义的相位方向id,唯一标识
111
+ name: this.PhaseDataModel.getBusPhasePos(dir).name,
112
+ controltype: ele.controltype
113
+ })
113
114
  })
114
- })
115
- // }
115
+ }
116
116
  })
117
117
  let result = []
118
118
  let obj = {}