openatc-components 0.4.20 → 0.4.21
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.
|
@@ -660,20 +660,24 @@ export default {
|
|
|
660
660
|
createOverlapPhaseStatusMap () {
|
|
661
661
|
// 处理跟随相位的母相位设置为忽略相位后的情况(如果跟随相位的母相位包含忽略相位,过滤掉跟随相位的状态数据,参照相位状态数据处理)
|
|
662
662
|
let isMphaseStatusDataReturn = false
|
|
663
|
+
let sum = 0 // 首次加载跳过比较母相位状态数据是否返回
|
|
663
664
|
let reset = false
|
|
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 && sum > 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
|
+
sum++
|
|
677
681
|
// 得到跟随相位状态Map数据
|
|
678
682
|
this.overlapPhaseStatusMap = new Map()
|
|
679
683
|
this.overlapStatusList.map(phase => {
|