Browse Source

修改字段对应

haojianlong 4 years ago
parent
commit
2498c60355

+ 1 - 2
src/components/ledger/cenote/elevationMap.vue

@@ -60,8 +60,7 @@
     init () { //获取数据并格式化数据
       this.elevationData = [];
       //根据isAI判断请求参数是否包含AI推介数据(暂未完成)
-      this.params.AiSwitch = this.isAI
-      console.log(this.params)
+      this.params.aiSwitch = this.isAI
       this.load = true;
       // 查询竖井关联的空间垂直交通关系
       shaftVerticalSpace(this.params, (res) => {

+ 1 - 1
src/components/ledger/cenote/relatedSpaceList.vue

@@ -91,7 +91,7 @@ export default {
         params.data.filters += `;floorId='${this.Buildfloor[1]}'`;
       }
       if (this.space) {
-        params.data.filters += `;objectType='${this.space}'`;
+        params.data.filters += `;classCode='${this.space}'`;
       }
       if (this.keyword) {
         params.data.filters += `;name contain '${this.keyword}' or localName contain '${this.keyword}'`;

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

@@ -16,7 +16,7 @@
         </div>
         <el-badge :is-dot="showSpaceDot" style="margin-left:15px;">
           <label style="line-height:32px;">业务空间类型:</label>
-          <el-cascader v-model="space" placeholder="请选择业务空间" :props="{value:'Code',label:'Name',children:'ZoneType'}"
+          <el-cascader v-model="space" placeholder="请选择业务空间" :props="{value:'code',label:'name',children:'zoneType'}"
                        :options="spaceList"
                        @change="changeSpace" style="margin-left:15px;"></el-cascader>
         </el-badge>
@@ -62,7 +62,7 @@
             <elevation-map ref="elevationMap" :onlyRead="cenoteObj.onlyRead=='true'" :isEdit="isEdit" :isAI="isAI"
                            @elevationChecked="handleCheckedSpace"
                            @elevationUncheck="handleUncheckSpace"
-                           :params="{BuildingId: building, ObjectType: ObjectType, ShaftId: $route.query.ShaftId}">
+                           :params="{buildingId: building, objectType: ObjectType, shaftId: $route.query.ShaftId}">
             </elevation-map>
           </div>
         </div>
@@ -147,7 +147,7 @@ export default {
         }
         shaftSpaceTypeQuery(pa, res => {
           this.spaceList = res.content.map(item => {
-            return { Code: item.ObjectType, Name: item.ObjectTypeName };
+            return { code: item.objectType, name: item.objectTypeName };
           });
           this.showDefaultSpace();
         });
@@ -177,8 +177,8 @@ export default {
             this.space = [val2.content[0].objectType];
           } else {
             this.space = this.spaceList.find((item) => {
-              return item.Code == "GeneralZone"
-            }) ? ["GeneralZone"] : [this.spaceList[0].Code];
+              return item.code == "GeneralZone"
+            }) ? ["GeneralZone"] : [this.spaceList[0].code];
           }
           this.ObjectType = this.space[0];
           //加载楼层信息