Browse Source

成本分配汇总-增加行数显示

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

+ 4 - 9
src/views/cost-allocation-total/list.vue

@@ -126,8 +126,8 @@
         :columns="costAllocationColumns"
         :data-source="costAllocationData"
         :loading="loading"
-        :pagination="pagination"
-        :scroll="{ x: 1000 }"
+        :pagination="ipagination"
+        :scroll="{ x: 1000 ,y:450}"
         @change="handleTableChange"
       >
         <!-- 操作 -->
@@ -248,12 +248,6 @@ export default {
       // 查询条件
       queryParam: {
         
-      },
-      // 分页
-      pagination: {
-        // total: '',
-        // current: 0,
-        // pageSize: 0
       },
       apply:"",
       dateFormat: 'YYYY-MM-DD',
@@ -277,7 +271,7 @@ export default {
             this.costAllocationData.map((item,index)=>{
               this.getSign(item,index)
             })
-            this.pagination = {
+            this.ipagination = {
               total: res.result.total,
               current: res.result.current,
               pageSize: res.result.size
@@ -479,6 +473,7 @@ export default {
 
     handleTableChange(pagination, filters, sorter) {
       this.queryParam.pageNo = pagination.current
+      this.queryParam.pageSize = pagination.pageSize
       this.getCostList()
     },
     // father 抽屉方法