Browse Source

修改字段小写未完

haojianlong 4 years ago
parent
commit
255f3f13d4
1 changed files with 7 additions and 8 deletions
  1. 7 8
      src/views/ledger/cenotelist/relatedSpace.vue

+ 7 - 8
src/views/ledger/cenotelist/relatedSpace.vue

@@ -32,8 +32,8 @@
           <label style="line-height:32px;padding: 0 10px;">所属建筑:</label>
           <el-select v-model="building" placeholder="请选择建筑" @change="changeBuilding" v-loading="buildingLoading">
             <el-option v-for="item in buildingList" :key="item.value"
-                       :label="item.BuildLocalName?item.BuildLocalName:item.BuildName"
-                       :value="item.BuildID"></el-option>
+                       :label="item.localName || item.name"
+                       :value="item.id"></el-option>
           </el-select>
         </el-badge>
         <el-switch v-if="!(cenoteObj.onlyRead == 'true')" style="margin-left:15px;" v-model="isAI" @change="handleChangeAI"
@@ -135,7 +135,6 @@ export default {
     elevationMap
   },
   created() {
-    console.log(this.cenoteObj.onlyRead == 'true');
     this.isAI = this.$route.query.onlyRead == 'true' ? false : true;
     this.getSpaceData();
   },
@@ -258,8 +257,8 @@ export default {
         this.floor = '';
       }
       this.buildingList.map(item => {
-        if (item.id && item.BuildLocalName) {
-          this.floorType[item.id] = item.BuildLocalName;
+        if (item.id && item.localName) {
+          this.floorType[item.id] = item.localName;
           if (item.floor instanceof Array) {
             item.floor.map(f => {
               if (f.id && f.localName) {
@@ -274,9 +273,9 @@ export default {
     calculateRelation() {
       if (this.isAI && this.building && this.ObjectType && this.cenoteObj.ShaftId) {
         let params = {
-          BuildingId: this.building,
-          ObjectType: this.ObjectType,
-          ShaftId: this.cenoteObj.ShaftId,
+          buildingId: this.building,
+          objectType: this.ObjectType,
+          shaftId: this.cenoteObj.ShaftId,
         }
         verticalSpace(params, res => {
           console.log(res)