openatc-components 0.4.20 → 0.4.22
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
|
@@ -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: {
|
|
@@ -664,16 +665,19 @@ export default {
|
|
|
664
665
|
this.overlapStatusList = this.overlapStatusList.filter(ele => {
|
|
665
666
|
let phaseids = this.phaseStatusList.map(item => item.id)
|
|
666
667
|
let mphase = ele.mphase
|
|
668
|
+
console.log(phaseids)
|
|
669
|
+
console.log(mphase)
|
|
667
670
|
const phaseidsSet = new Set(phaseids)
|
|
668
671
|
isMphaseStatusDataReturn = mphase.every(value => phaseidsSet.has(value))
|
|
669
672
|
console.log(`跟随相位${ele.id}的母相位状态数据是否均返回?`, isMphaseStatusDataReturn)
|
|
670
|
-
if (isMphaseStatusDataReturn !== this.isMphaseStatusDataReturnMap.get(ele.id) && !reset) {
|
|
673
|
+
if (isMphaseStatusDataReturn !== this.isMphaseStatusDataReturnMap.get(ele.id) && !reset && this.overlapStatusCompareSum > 0) {
|
|
671
674
|
this.getIntersectionInfo()
|
|
672
675
|
reset = true
|
|
673
676
|
}
|
|
674
677
|
this.isMphaseStatusDataReturnMap = this.isMphaseStatusDataReturnMap.set(ele.id, isMphaseStatusDataReturn)
|
|
675
678
|
return isMphaseStatusDataReturn
|
|
676
679
|
})
|
|
680
|
+
this.overlapStatusCompareSum = this.overlapStatusCompareSum + 1
|
|
677
681
|
// 得到跟随相位状态Map数据
|
|
678
682
|
this.overlapPhaseStatusMap = new Map()
|
|
679
683
|
this.overlapStatusList.map(phase => {
|
|
@@ -167,7 +167,7 @@ export default {
|
|
|
167
167
|
// agentId: '12007_390',
|
|
168
168
|
// agentId: '12014',
|
|
169
169
|
reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
170
|
-
Token: '
|
|
170
|
+
Token: 'eyJraWQiOiIxNzM5NDI1ODM3MzQ3IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczOTQyOTQzNywiaWF0IjoxNzM5NDIyMjM3fQ.vUDOYbb0xRKLdCSYtZfYoxFKp84ih7w_NmTaTlIMUG0',
|
|
171
171
|
// agentId: '30003-352',
|
|
172
172
|
// reqUrl: 'https://kints-dev.devdolphin.com/openatc',
|
|
173
173
|
// Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',
|