Procházet zdrojové kódy

客户数量显示不正确修复

shizhongqi před 4 roky
rodič
revize
aef4dbea39

+ 4 - 3
ghsApp/src/admin/home/member.vue

@@ -141,9 +141,10 @@ export default {
           if (this.$util.isEmpty(res.data)){
           if (this.$util.isEmpty(res.data)){
             return false;
             return false;
           }
           }
-          this.tabs[0].value = res.data.totalUser || 0;
-          this.tabs[1].value = res.data.totalUser || 0;
-          this.tabs[2].value = res.data.mayGatheringNum || 0;
+          this.tabs[this.tabIndex].value = res.data.totalNum || 0;
+          // this.tabs[0].value = res.data.totalUser || 0;
+          // this.tabs[1].value = res.data.totalUser || 0;
+          // this.tabs[2].value = res.data.mayGatheringNum || 0;
         });
         });
     },
     },
     change(e) {
     change(e) {

+ 1 - 5
ghsApp/src/admin/home/newOrderList.vue

@@ -186,12 +186,8 @@ export default {
         if (this.$util.isEmpty(res.data)){
         if (this.$util.isEmpty(res.data)){
           return false
           return false
         }
         }
-        
-        this.tabs[0].value = '';
-        this.tabs[1].value = '';
-        this.tabs[2].value = '';
 
 
-        this.tabs[res.data.type - 1].value = res.data.totalNum == 0 ? '' : res.data.totalNum;
+        this.tabs[res.data.type - 1].value = res.data.totalNum;
       });
       });
     },
     },
     change(e) {
     change(e) {