Selaa lähdekoodia

日常维修,total数据修改为res.data.count

yunxing 4 vuotta sitten
vanhempi
commit
25e77a5534
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      src/views/equipment/table/rcwxTable.vue
  2. 1 1
      src/views/room/index.vue

+ 1 - 1
src/views/equipment/table/rcwxTable.vue

@@ -332,7 +332,7 @@ export default {
       }
       queryWxzy(getParams).then(res => {
         this.tableData = res.data.data || [];
-        this.total = res.count;
+        this.total = res.data.count || 0;
       });
     },
     clickPicRepair(row) {

+ 1 - 1
src/views/room/index.vue

@@ -819,7 +819,7 @@ export default {
       queryWxzy(getParams).then(res => {
         console.log('data4',res)
         this.loading4 = false;
-        this.total3 = res.count;
+        this.total3 = res.data.count || 0;
         this.table4 = res.data.data ? res.data.data : []
       });
     },