|
@@ -35,6 +35,9 @@
|
|
|
<div v-show="isMyTab == 2">
|
|
|
<handsontable-main @lookEqu="lookEqu" ref="handsontable" :zoneCode="activeName" :id="`handsontable${activeName}`"></handsontable-main>
|
|
|
</div>
|
|
|
+ <div class="infectedTips" v-show="isMyTab==1&&infectedTotal>0">
|
|
|
+ <p>因底图变化而受影响的业务空间{{infectedTotal.toString()}}个,本层受影响的业务空间{{infectedCurfloor.toString()}}个</p>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div v-show="needCalculate" style="display:flex;align-items:center;justify-content:center;height:100%;background-color:#fff;">
|
|
|
<div class="center" style="flex:1">
|
|
@@ -63,6 +66,7 @@ import {
|
|
|
queryDictionaryHead, //数据中心-字典头部信息查询接口
|
|
|
getrelationTypeProject, //数据中心-当该项目中的"建筑体下的业务空间"“楼层下的业务空间”关系的状态为需更新时,业务空间台账功能不可用
|
|
|
getSpaceBdFlCount, // 属于多建筑楼层的空间数据统计
|
|
|
+ countObjZone, //受影响统计
|
|
|
} from "@/api/scan/request";
|
|
|
import tools from '@/utils/scan/tools'
|
|
|
import floorCascader from "@/components/ledger/lib/floorCascader";
|
|
@@ -119,7 +123,9 @@ export default {
|
|
|
buildFloorSelectd: [''], //当前所选的建筑楼层
|
|
|
childBackParam: {},
|
|
|
needCalculate: false, // 关系是否需要计算
|
|
|
- mutiCount: 0
|
|
|
+ mutiCount: 0,
|
|
|
+ infectedTotal: 1,
|
|
|
+ infectedCurfloor: '-'
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -134,6 +140,7 @@ export default {
|
|
|
this.getTypes()
|
|
|
this.getBuilding()
|
|
|
this.getMutiCount()
|
|
|
+ this.getInfected();
|
|
|
},
|
|
|
// 获取项目下建筑
|
|
|
getBuilding() {
|
|
@@ -163,6 +170,22 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ // 获取受影响统计
|
|
|
+ getInfected(floor) {
|
|
|
+ let pa = {
|
|
|
+ Filters: `State=1`
|
|
|
+ }
|
|
|
+ if (floor) {
|
|
|
+ pa.Filters += `;FloorId="${floor}"`
|
|
|
+ }
|
|
|
+ countObjZone(pa, res => {
|
|
|
+ if (floor) {
|
|
|
+ this.infectedCurfloor = res.Count
|
|
|
+ } else {
|
|
|
+ this.infectedTotal = res.Count
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 切换平面图和列表
|
|
|
changeRadio(val) {
|
|
|
this.changeGraphyOrTable(val)
|
|
@@ -260,6 +283,7 @@ export default {
|
|
|
if (num == 2) {
|
|
|
this.initMessage();
|
|
|
} else {
|
|
|
+ this.getInfected(this.buildFloorSelectd[1]);
|
|
|
this.$refs.graphy.getData(this.buildFloorSelectd, this.FloorMap, this.activeTabType);
|
|
|
}
|
|
|
},
|
|
@@ -309,7 +333,7 @@ export default {
|
|
|
this.floor.facility = true
|
|
|
this.$refs.facility.getData(infos, this.buildMess)
|
|
|
},
|
|
|
- copyID(val){
|
|
|
+ copyID(val) {
|
|
|
this.$refs.handsontable.zoneItemID = val;
|
|
|
},
|
|
|
// 空间属于多个建筑楼层
|
|
@@ -432,6 +456,17 @@ export default {
|
|
|
border-top: 2px solid #409eff;
|
|
|
}
|
|
|
}
|
|
|
+ .infectedTips {
|
|
|
+ position: absolute;
|
|
|
+ bottom: 0px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ width: 100%;
|
|
|
+ margin-left: -10px;
|
|
|
+ padding: 0 20px;
|
|
|
+ line-height: 40px;
|
|
|
+ background: #ec808d;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
}
|
|
|
.spaceTypes {
|
|
|
.types {
|