openatc-components 0.4.21 → 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.
|
@@ -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 &&
|
|
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
|
-
|
|
680
|
+
this.overlapStatusCompareSum = this.overlapStatusCompareSum + 1
|
|
681
681
|
// 得到跟随相位状态Map数据
|
|
682
682
|
this.overlapPhaseStatusMap = new Map()
|
|
683
683
|
this.overlapStatusList.map(phase => {
|