openatc-components 0.4.21 → 0.4.23

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.4.21",
3
+ "version": "0.4.23",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -391,7 +391,8 @@ export default {
391
391
  },
392
392
  isHasCountdown: false,
393
393
  contrloType: 'ring',
394
- isMphaseStatusDataReturnMap: new Map() // 每个跟随相位的母相位是否返回了相位状态数据
394
+ isMphaseStatusDataReturnMap: new Map(), // 每个跟随相位的母相位是否返回了相位状态数据
395
+ overlapStatusCompareSum: 0 // 首次加载跳过比较母相位状态数据是否返回
395
396
  }
396
397
  },
397
398
  methods: {
@@ -660,7 +661,6 @@ export default {
660
661
  createOverlapPhaseStatusMap () {
661
662
  // 处理跟随相位的母相位设置为忽略相位后的情况(如果跟随相位的母相位包含忽略相位,过滤掉跟随相位的状态数据,参照相位状态数据处理)
662
663
  let isMphaseStatusDataReturn = false
663
- let sum = 0 // 首次加载跳过比较母相位状态数据是否返回
664
664
  let reset = false
665
665
  this.overlapStatusList = this.overlapStatusList.filter(ele => {
666
666
  let phaseids = this.phaseStatusList.map(item => item.id)
@@ -670,14 +670,14 @@ export default {
670
670
  const phaseidsSet = new Set(phaseids)
671
671
  isMphaseStatusDataReturn = mphase.every(value => phaseidsSet.has(value))
672
672
  console.log(`跟随相位${ele.id}的母相位状态数据是否均返回?`, isMphaseStatusDataReturn)
673
- if (isMphaseStatusDataReturn !== this.isMphaseStatusDataReturnMap.get(ele.id) && !reset && sum > 0) {
673
+ if (isMphaseStatusDataReturn !== this.isMphaseStatusDataReturnMap.get(ele.id) && !reset && this.overlapStatusCompareSum > 0) {
674
674
  this.getIntersectionInfo()
675
675
  reset = true
676
676
  }
677
677
  this.isMphaseStatusDataReturnMap = this.isMphaseStatusDataReturnMap.set(ele.id, isMphaseStatusDataReturn)
678
678
  return isMphaseStatusDataReturn
679
679
  })
680
- sum++
680
+ this.overlapStatusCompareSum = this.overlapStatusCompareSum + 1
681
681
  // 得到跟随相位状态Map数据
682
682
  this.overlapPhaseStatusMap = new Map()
683
683
  this.overlapStatusList.map(phase => {
@@ -28,7 +28,7 @@
28
28
  </el-tooltip>
29
29
  </div>
30
30
  <div class="first-1" :style="{'width':item.greenWidth,'height':'34px','background':'#7ccc66'}"></div>
31
- <div class="first-1" :style="{'width':item.redWidth,'height':'34px','background':'#f27979'}"></div>
31
+ <div class="first-1" :style="{'width':item.redWidth,'height':'17px',marginTop: '9px','background':'#f27979'}"></div>
32
32
  </div>
33
33
  </div>
34
34
  </div>
@@ -162,12 +162,12 @@ export default {
162
162
  return {
163
163
  roadDirection: 'right',
164
164
  // reqUrl: 'http://192.168.13.103:10003/openatc',
165
- agentId: 'jmlfql',
165
+ agentId: '32050101041121000001',
166
166
  // agentId: '13013',
167
167
  // agentId: '12007_390',
168
168
  // agentId: '12014',
169
169
  reqUrl: 'http://192.168.13.103:10003/openatc',
170
- Token: 'eyJraWQiOiIxNzM5NDI1ODM3MzQ3IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczOTQyOTQzNywiaWF0IjoxNzM5NDIyMjM3fQ.vUDOYbb0xRKLdCSYtZfYoxFKp84ih7w_NmTaTlIMUG0',
170
+ Token: 'eyJraWQiOiIxNzMwODU1NTQ1NzA3IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczMDg1OTE0NSwiaWF0IjoxNzMwODUxOTQ1fQ.CBl61S3eRifl4qEtTmgVjOZGo2hqNSGQKPxG1bN-utU',
171
171
  // agentId: '30003-352',
172
172
  // reqUrl: 'https://kints-dev.devdolphin.com/openatc',
173
173
  // Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',