Przeglądaj źródła

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

yunxing 4 lat temu
rodzic
commit
25e77a5534

+ 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 : []
       });
     },