소스 검색

加载按钮

daiqisheng 3 년 전
부모
커밋
4fe57d8d26
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/pages/main/performance/department.vue
  2. 2 0
      src/pages/main/performance/issue.vue

+ 2 - 0
src/pages/main/performance/department.vue

@@ -389,6 +389,7 @@ export default {
   methods: {
     //   初始化
     handleInit(data) {
+      this.table_loading = true
       this.$http({
         url: "/market/CMKIssued/CMKIssuedListByUser",
         method: "post",
@@ -397,6 +398,7 @@ export default {
         },
         data: data,
       }).then(({ data: { count, data } }) => {
+        this.table_loading = false
         this.total = count;
         this.table_list = data || [];
         // this.table_list = [

+ 2 - 0
src/pages/main/performance/issue.vue

@@ -180,6 +180,7 @@ export default {
     },
     methods: {
         async handleInit(data) {
+            this.table_loading = true
             this.$http({
                 url: "/market/CMKIssued/CMKIssuedList",
                 method: "post",
@@ -193,6 +194,7 @@ export default {
                         this.$formatDate(data.endTime, "YYYY-MM-DD"),
                 },
             }).then(({ data: { data, count } }) => {
+                 this.table_loading = false
                 this.total = count;
                 this.table_list = data;
             });