Browse Source

面料损耗汇总-增加条数显示

jingbb 5 months ago
parent
commit
5c56a06ac5
1 changed files with 4 additions and 5 deletions
  1. 4 5
      src/views/cost-allocation-total/fabricLossesSummary.vue

+ 4 - 5
src/views/cost-allocation-total/fabricLossesSummary.vue

@@ -116,7 +116,7 @@
         :columns="fabricLossesColumns"
         :data-source="fabricLossesData"
         :loading="loading"
-        :pagination="pagination"
+        :pagination="ipagination"
         :scroll="{ x: 1200 }"
         @change="handleTableChange"
       >
@@ -274,9 +274,6 @@ export default {
         // customerShortame: '',
         pageNo: '' // 点击的页数
       },
-      // 分页
-      pagination: {
-      },
       dateFormat: 'YYYY-MM-DD',
       loading: false, // 表格加载
       apply:"",
@@ -291,10 +288,12 @@ export default {
    // 分页查询
    getCostList() {
       this.$nextTick(() => {
+        this.loading = true
         checkList(this.queryParam).then(res => {
+          this.loading = false
           if (res.success) {
             this.fabricLossesData = res.result.records
-            this.pagination = {
+            this.ipagination = {
               total: res.result.total,
               current: res.result.current,
               pageSize: res.result.size