Explorar o código

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

yunxing %!s(int64=4) %!d(string=hai) anos
pai
achega
25e77a5534
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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 : []
       });
     },