Ver Fonte

loading添加

zhuxinbo há 5 anos atrás
pai
commit
e42cca71e8
1 ficheiros alterados com 7 adições e 5 exclusões
  1. 7 5
      src/views/modules/Statistics/accountMaterStatistics.vue

+ 7 - 5
src/views/modules/Statistics/accountMaterStatistics.vue

@@ -384,7 +384,7 @@ export default {
         { label: '近一月', value: 5, show: true },
         { label: '近三月', value: 6, show: true }
       ],
-      active:1,
+      active: 1,
       data: [],
       columns,
       columnsDetail,
@@ -412,7 +412,7 @@ export default {
             // this.detail = record
             // this.visible = true
             // this.getMineList(record.signature)
-            this.$refs.ratio.getMineList(record,this.active)
+            this.$refs.ratio.getMineList(record, this.active)
           }
         }
       })
@@ -511,6 +511,7 @@ export default {
       this.addUser()
     },
     addUser() {
+      this.loading = true
       var that = this
       if (this.appId.length > 0) {
         var params = {}
@@ -522,10 +523,11 @@ export default {
         }
       } else {
         this.$message.error('请选择账户')
-        return 
+        return
       }
-      getMaterialReportByAccount(params).then(res=>{ 
-          this.data = res
+      getMaterialReportByAccount(params).then(res => {
+        this.data = res
+        this.loading = false
       })
     },
     getStatistics() {