Przeglądaj źródła

添加查询竖井关联的空间垂直交通关系接口

zhangyu 5 lat temu
rodzic
commit
c454109e36

+ 6 - 0
src/api/scan/request.js

@@ -863,6 +863,12 @@ export function spaceInShaftUnlink(param, success) {
   http.postJson(url, param.data, success)
 }
 
+//查询竖井关联的空间垂直交通关系
+export function shaftVerticalSpace(param, success) {
+  let url = `${baseUrl}/equip-component/shaft/shaft-vertical-space`
+  http.postJson(url, param.data, success)
+}
+
 //获取租户表格内容信息
 export function getRentTableData(param, success) {
   let url = `${baseUrl}/datacenter/tenant/query-with-count`

+ 45 - 34
src/components/ledger/cenote/elevationMap.vue

@@ -11,28 +11,40 @@
 </template>
 
 <script>
-  import {mapGetters} from 'vuex'
+  import { shaftVerticalSpace } from "@/api/scan/request"
 
+  import {mapGetters} from 'vuex'
   export default {
   data () {
     return {
       elevationData: {
-        'F1': [
-          {
-          id: 'f1-001',
-          name: '业务空间f1-001',
+        'F5': [{
+          id: 'f5-001',
+          name: '业务空间f5-001',
           isAI: false,
-          breakthrough: ['f2-001']
+          breakthrough: ['f4-002']
+        }],
+        'F4': [{
+          id: 'f4-001',
+          name: '业务空间f4-001',
+          isAI: false,
+          breakthrough: ['f3-002']
         }, {
-          id: 'f1-002',
-          name: '业务空间f1-002',
+          id: 'f4-002',
+          name: '业务空间f4-002',
           isAI: false,
-          breakthrough: []
+          breakthrough: ['f5-001']
+        }],
+        'F3': [{
+          id: 'f3-001',
+          name: '业务空间f3-001',
+          isAI: false,
+          breakthrough: ['f2-002']
         }, {
-          id: 'f1-003',
-          name: '业务空间f1-003',
+          id: 'f3-002',
+          name: '业务空间f3-002',
           isAI: false,
-          breakthrough: []
+          breakthrough: ['f2-002','f4-001']
         }],
         'F2': [{
           id: 'f2-001',
@@ -50,33 +62,22 @@
           isAI: false,
           breakthrough: []
         }],
-        'F3': [{
-          id: 'f3-001',
-          name: '业务空间f3-001',
+        'F1': [
+          {
+          id: 'f1-001',
+          name: '业务空间f1-001',
           isAI: false,
-          breakthrough: ['f2-002']
+          breakthrough: ['f2-001']
         }, {
-          id: 'f3-002',
-          name: '业务空间f3-002',
-          isAI: false,
-          breakthrough: ['f2-002','f4-001']
-        }],
-        'F4': [{
-          id: 'f4-001',
-          name: '业务空间f4-001',
+          id: 'f1-002',
+          name: '业务空间f1-002',
           isAI: false,
-          breakthrough: ['f3-002']
+          breakthrough: []
         }, {
-          id: 'f4-002',
-          name: '业务空间f4-002',
-          isAI: false,
-          breakthrough: ['f5-001']
-        }],
-        'F5': [{
-          id: 'f5-001',
-          name: '业务空间f5-001',
+          id: 'f1-003',
+          name: '业务空间f1-003',
           isAI: false,
-          breakthrough: ['f4-002']
+          breakthrough: []
         }]
       }
     }
@@ -92,11 +93,21 @@
   },
   methods: {
     init () {
+      let params = {
+        BuildingId: '', // 建筑Id
+        ObjectType: '', // 空间类型
+        ShaftId: '' // 竖井Id
+      }
+      // 查询竖井关联的空间垂直交通关系
+      shaftVerticalSpace(params, (res) => {
+
+      })
       console.log('数据获取-数据格式化')
     }
   },
   watch: {
     projectId() {
+      this.init();
       console.log(this.projectId)
     }
   }

+ 3 - 3
src/views/ledger/cenotelist/relatedSpace.vue

@@ -35,8 +35,8 @@
           </el-select>
         </el-badge>
         <div style="height:calc(100% - 42px);margin:10px 0 0 0;width:100%;">
-          <el-row style="height:100%;margin:0;width:55%;position:relative;display:inline-block;">
-            <el-col :span="4" style="height:100%;border:1px solid #e4e4e4;">
+          <el-row style="height:100%;margin:0;width:55%;position:relative;display:inline-block;border:1px solid #e4e4e4;">
+            <el-col :span="4" style="height:100%;border-right:1px solid #e4e4e4;">
               <el-scrollbar style="height:100%;">
                 <div class="floor" style="height:100%;text-align:center;">
                   <span class="floor-item" style="border-bottom:1px solid #e4e4e4;">楼 层</span>
@@ -47,7 +47,7 @@
                 </div>
               </el-scrollbar>
             </el-col>
-            <el-col :span="20" style="height:100%;border:1px solid #e4e4e4;border-left:none;position:relative;">
+            <el-col :span="20" style="height:100%;position:relative;">
               <cenote-graphy ref="cenotegraphy"></cenote-graphy>
             </el-col>
           </el-row>