فهرست منبع

竖井无法进入;空间计算放开

haojianlong 4 سال پیش
والد
کامیت
7669a2a76e
2فایلهای تغییر یافته به همراه18 افزوده شده و 22 حذف شده
  1. 1 1
      src/views/ledger/cenotelist/index.vue
  2. 17 21
      src/views/ledger/spacelist/index.vue

+ 1 - 1
src/views/ledger/cenotelist/index.vue

@@ -383,7 +383,7 @@ export default {
       let name = infos.localName ? infos.localName : infos.name
       this.shaftId = infos.id //要操作的数据id
       //点击关联的元空间
-      if (val === "SpaceList") {
+      if (val === "spaceList") {
         this.$router.push({
           path: '/ledger/relatedSpace',
           query: { ShaftId: this.shaftId, name: name, onlyRead: this.onlyRead }

+ 17 - 21
src/views/ledger/spacelist/index.vue

@@ -10,8 +10,7 @@
       <div class="saga-build-mess">
         <div style="margin-left: 10px;float: left;">
           <span style="color: #999999;font-size: 14px;margin-right: 12px;">建筑楼层</span>
-          <el-cascader :options="options" @change="changeCascader" placeholder="请选择建筑楼层" ref="cascaderAddr"
-                       v-model="buildFloorSelectd">
+          <el-cascader :options="options" @change="changeCascader" placeholder="请选择建筑楼层" ref="cascaderAddr" v-model="buildFloorSelectd">
             <template slot-scope="{ node, data }">
               <span>{{ data.label }}</span>
               <i class="el-icon-warning-outline" v-if="data.count" style="color:red;margin-right:10px;"></i>
@@ -35,29 +34,26 @@
             <template v-for="(item,index) in tabsList">
               <el-tab-pane :name="item.code" :key="index">
                 <span slot="label"><i class="el-icon-warning-outline" v-if="item.count>0"
-                                      style="color:red;margin-right:10px;"></i>{{ item.name }}</span>
+                    style="color:red;margin-right:10px;"></i>{{ item.name }}</span>
               </el-tab-pane>
             </template>
           </el-tabs>
         </div>
       </el-row>
       <div v-show="isMyTab == 1" style="width:100%;height:100%">
-        <graphy @getSp="checkSpace" @dimension="checkSpace" @businessDetails="getBuinessDetails" ref="graphy"
-                @copyID="copyID"
-                @updateState="updateStateSuc"></graphy>
+        <graphy @getSp="checkSpace" @dimension="checkSpace" @businessDetails="getBuinessDetails" ref="graphy" @copyID="copyID"
+          @updateState="updateStateSuc"></graphy>
       </div>
       <div v-show="isMyTab == 2">
-        <handsontable-main @lookEqu="lookEqu" ref="handsontable" :zoneCode="activeName" :otherType="otherType"
-                           :id="`handsontable${activeName}`">
+        <handsontable-main @lookEqu="lookEqu" ref="handsontable" :zoneCode="activeName" :otherType="otherType" :id="`handsontable${activeName}`">
         </handsontable-main>
       </div>
       <div class="infectedTips" v-show="isMyTab==1&&infectedTotal>0">
-        <p>因底图变化而受影响的业务空间{{ infectedTotal.toString() }}个<span
-          v-show="buildFloorSelectd.length>1">,本层受影响的业务空间{{ infectedCurfloor.toString() }}个</span></p>
+        <p>因底图变化而受影响的业务空间{{ infectedTotal.toString() }}个<span v-show="buildFloorSelectd.length>1">,本层受影响的业务空间{{ infectedCurfloor.toString() }}个</span>
+        </p>
       </div>
     </div>
-    <div v-show="needCalculate"
-         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>
@@ -247,17 +243,17 @@ export default {
     // 获取关系是否需要计算
     getRelations() {
       let pa = {
-        Filters: `RelationType in ["bd2sp","fl2sp"];ComputationalState>1`
+        filters: `relationType in ["bd2sp","fl2sp"];computationalState>1`
       }
       // 后台暂无接口提供 todo
-      // getrelationTypeProject(pa, res => {
-      //   if (res.Content.length) {
-      //     this.needCalculate = true;
-      //   } else {
-      //     this.needCalculate = false;
-      this.init()
-      //   }
-      // })
+      getrelationTypeProject(pa, res => {
+        if (res.content.length) {
+          this.needCalculate = true;
+        } else {
+          this.needCalculate = false;
+          this.init()
+        }
+      })
     },
     // 通过选中的tab-Code 获取选中的tab的所有数据
     getItemForType() {