Browse Source

字段修改

haojianlong 4 years ago
parent
commit
767ecac7ab
1 changed files with 9 additions and 8 deletions
  1. 9 8
      src/views/data_admin/buildData/index-2.vue

+ 9 - 8
src/views/data_admin/buildData/index-2.vue

@@ -94,7 +94,7 @@
         <div class="build_table">
           <el-tabs type="card" v-model="tabAvtive" @tab-click="createHotBtn">
             <el-tab-pane v-for="(item,index) in facilityList" :key="index" :name="'table' + index"
-                         :label="item.FamilyName + '(' + item.Count + ')'">
+                         :label="item.familyName + '(' + item.count + ')'">
               <div style="padding: .2rem;width:100%;padding-bottom:35px;" v-loading="loading">
                 <div :id="'table' + index" v-loading="tableLoading"></div>
                 <div class="data_page center">
@@ -790,21 +790,22 @@ export default {
         pa.floorId = this.floorId
       }
       queryPropertyTypeCount(pa, res => {
-        this.myHotArr.length = this.myHotMainArr.length = this.myHotMainArr.length = this.pageCount.length = this.currentPageArr.length = this.pageSizeArr.length = this.currentPage.length =
-          res.Content.length;
+        console.log('=================');
+        console.log(res);
+        this.myHotArr.length = this.myHotMainArr.length = this.pageCount.length = this.currentPageArr.length = this.pageSizeArr.length = this.currentPage.length = res.content.length;
         for (let i = 0; i < this.pageCount.length; i++) {
           this.pageCount[i] = 10;
           this.currentPageArr[i] = 1;
           this.pageSizeArr[i] = 10;
           this.currentPage[i] = 1;
         }
-        if (this.facilityList.length == res.Content.length) {
-          this.facilityList = res.Content;
+        if (this.facilityList.length == res.content.length) {
+          this.facilityList = res.content;
           this.createHotBtn({
             index: this.tabAvtive.split("table")[1]
           });
         } else {
-          this.facilityList = res.Content;
+          this.facilityList = res.content;
           this.createHotBtn({
             index: 0
           });
@@ -996,7 +997,7 @@ export default {
         })
         this.facilityList.map((item, index) => {
           if (index == this.tabChecked) {
-            fileName += '-' + item.FamilyName + item.Count
+            fileName += '-' + item.familyName + item.count
           }
         })
         this.myHotArr[this.tabChecked].getPlugin('exportFile').downloadFile("csv", {
@@ -1060,7 +1061,7 @@ export default {
       this.loading = true;
       this.tabChecked = tab.index;
       this.rowArr = "";
-      this.code = this.facilityList.length ? this.facilityList[tab.index].Family : null;
+      this.code = this.facilityList.length ? this.facilityList[tab.index].family : null;
       this.getTableHeader();
     },
     //创建点位标签swiper