|
@@ -6,7 +6,7 @@
|
|
|
<!-- 空间属于多个建筑楼层 -->
|
|
|
<!-- <roomInFloorDialog ref="roomInFloorDialog"></roomInFloorDialog> -->
|
|
|
<!--------- 页面头部 -------------->
|
|
|
- <div class="saga-title" v-show="1">
|
|
|
+ <div class="saga-title" v-show="!needCalculate">
|
|
|
<div class="saga-build-mess">
|
|
|
<floorCascader @change="changeCascader" ref="floorCascader"></floorCascader>
|
|
|
</div>
|
|
@@ -18,7 +18,7 @@
|
|
|
</div>
|
|
|
<!-- <div class="saga-build-tips" v-if="1" @click="getTips">有25个空间同时属于多个建筑楼层,点击处理</div> -->
|
|
|
</div>
|
|
|
- <div class="saga-business-sapce-main" v-show="1">
|
|
|
+ <div class="saga-business-sapce-main" v-show="!needCalculate">
|
|
|
<el-row class="spaceTypes">
|
|
|
<div class="types">
|
|
|
<el-tabs v-model="activeName" type='card' @tab-click="tabClick">
|
|
@@ -35,11 +35,11 @@
|
|
|
<handsontable-main @lookEqu="lookEqu" ref="handsontable" :zoneCode="activeName" :id="`handsontable${activeName}`"></handsontable-main>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-show="0" style="display:flex;align-items:center;justify-content:center;height:100%;background-color:#fff;">
|
|
|
+ <div v-show="needCalculate" style="display:flex;align-items:center;justify-content:center;height:100%;background-color:#fff;">
|
|
|
<div class="center" style="flex:1">
|
|
|
<i class="iconfont icon-jianzhu" style="font-size:50px;"></i>
|
|
|
<p style="margin:10px 0;">设备空间关系已产生变化,请请前往关系总览重新计算</p>
|
|
|
- <el-button>立即跳转</el-button>
|
|
|
+ <el-button @click="jumpToAllRelation">立即跳转</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -60,6 +60,7 @@ import {
|
|
|
getSpaceFloor,
|
|
|
buildingQuery, //数据中心-建筑查询
|
|
|
queryDictionaryHead, //数据中心-字典头部信息查询接口
|
|
|
+ getrelationTypeProject, //数据中心-当该项目中的"建筑体下的业务空间"“楼层下的业务空间”关系的状态为需更新时,业务空间台账功能不可用
|
|
|
} from "@/api/scan/request";
|
|
|
import tools from '@/utils/scan/tools'
|
|
|
import floorCascader from "@/components/ledger/lib/floorCascader";
|
|
@@ -113,11 +114,13 @@ export default {
|
|
|
floorToMap: {}, //楼层及其对应的模型图
|
|
|
FloorMap: {}, //当前选中的楼层对象
|
|
|
buildFloorSelectd: [''], //当前所选的建筑楼层
|
|
|
- childBackParam: {}
|
|
|
+ childBackParam: {},
|
|
|
+ needCalculate: false, // 关系是否需要计算
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- this.init();
|
|
|
+ // this.init();
|
|
|
+ this.getRelations()
|
|
|
this.childBackParam = this.$route.params;
|
|
|
},
|
|
|
mounted() { },
|
|
@@ -180,6 +183,20 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ // 获取关系是否需要计算
|
|
|
+ getRelations() {
|
|
|
+ let pa = {
|
|
|
+ Filters: `not ZoneType isNull;ComputationalState>1`
|
|
|
+ }
|
|
|
+ getrelationTypeProject(pa, res => {
|
|
|
+ if (res.Content.length) {
|
|
|
+ this.needCalculate = true;
|
|
|
+ } else {
|
|
|
+ this.needCalculate = false;
|
|
|
+ this.init()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 通过选中的tab-Code 获取选中的tab的所有数据
|
|
|
getItemForType() {
|
|
|
let data = {}
|
|
@@ -273,6 +290,10 @@ export default {
|
|
|
// 空间属于多个建筑楼层
|
|
|
getTips() {
|
|
|
this.$refs.roomInFloorDialog.showDialog();
|
|
|
+ },
|
|
|
+ // 跳转至关系总览
|
|
|
+ jumpToAllRelation() {
|
|
|
+ this.$router.push({ name: 'overView' })
|
|
|
}
|
|
|
},
|
|
|
watch: {
|