Browse Source

工单维修列表无数据变有数据,无数据样式隐藏

xyg 2 years ago
parent
commit
a539b5a5e6
1 changed files with 6 additions and 3 deletions
  1. 6 3
      nnzwminiapp/pagesPublic/pages/work-order/work-order.js

+ 6 - 3
nnzwminiapp/pagesPublic/pages/work-order/work-order.js

@@ -431,7 +431,8 @@ Page({
                 }
                 this.setData({
                     list: data,
-                    total2: res.count
+                    total2: res.count,
+                    nodata: false
                 });
             } else {
                 if (!ispullup) {
@@ -478,7 +479,8 @@ Page({
                 }
                 this.setData({
                     repairList: data,
-                    total: res.count
+                    total: res.count,
+                    nodata: false
                 });
             } else {
                 if (!ispullup) {
@@ -544,7 +546,8 @@ Page({
                 setTimeout(() => {
                     this.setData({
                         completeList: data,
-                        total2: res.count
+                        total2: res.count,
+                        nodata2: false
                     });
                     wx.hideLoading();
                 }, 1500);