diff --git a/src/views/cost/energyCost/index.vue b/src/views/cost/energyCost/index.vue index 7d7ec099..78dd9871 100644 --- a/src/views/cost/energyCost/index.vue +++ b/src/views/cost/energyCost/index.vue @@ -12,6 +12,7 @@ :table-props="tableProps" :page="listQuery.pageNo" :limit="listQuery.pageSize" + :max-height="tableH" :table-data="tableData"> { + this.tableH = this.tableHeight(260) + }) getEnergyTypeListAll().then((response) => { this.formConfig[0].selectOptions = response.data; }); @@ -133,7 +138,7 @@ export default { switch (val.btnName) { case 'search': this.listQuery.pageNo = 1; - this.listQuery.pageSize = 10; + this.listQuery.pageSize = 20; this.listQuery.energyTypeId = val.energyTypeId; this.listQuery.searchTime = val.searchTime ? val.searchTime[0] : null; this.listQuery.startTime = val.searchTime diff --git a/src/views/cost/energyCostHis/index.vue b/src/views/cost/energyCostHis/index.vue index 44287284..8c13a352 100644 --- a/src/views/cost/energyCostHis/index.vue +++ b/src/views/cost/energyCostHis/index.vue @@ -12,6 +12,7 @@ :table-props="tableProps" :page="listQuery.pageNo" :limit="listQuery.pageSize" + :max-height="tableH" :table-data="tableData"> { + this.tableH = this.tableHeight(260) + }) const end = new Date(); const start = new Date(); start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); @@ -150,7 +155,7 @@ export default { switch (val.btnName) { case 'search': this.listQuery.pageNo = 1; - this.listQuery.pageSize = 10; + this.listQuery.pageSize = 20; this.listQuery.reportType = val.reportType; this.listQuery.energyTypeId = val.energyTypeId; this.listQuery.reportTime = val.searchTime diff --git a/src/views/cost/mixins/basic-page.js b/src/views/cost/mixins/basic-page.js index 89069ad4..87d3dae9 100644 --- a/src/views/cost/mixins/basic-page.js +++ b/src/views/cost/mixins/basic-page.js @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2022-08-24 11:19:43 * @LastEditors: zwq - * @LastEditTime: 2023-12-07 09:35:33 + * @LastEditTime: 2024-03-25 14:11:46 * @Description: */ export default { @@ -17,7 +17,7 @@ export default { }, tableData: [], listQuery: { - pageSize: 10, + pageSize: 20, pageNo: 1, total: 1, }, diff --git a/src/views/cost/rawMaterialConfig/index.vue b/src/views/cost/rawMaterialConfig/index.vue index abcc797b..fec55cfb 100644 --- a/src/views/cost/rawMaterialConfig/index.vue +++ b/src/views/cost/rawMaterialConfig/index.vue @@ -12,6 +12,7 @@ :table-props="tableProps" :page="listQuery.pageNo" :limit="listQuery.pageSize" + :max-height="tableH" :table-data="tableData"> { + this.tableH = this.tableHeight(260) + }) getHotMaterialList().then((response) => { this.formConfig[0].selectOptions = response.data; }); @@ -155,14 +160,14 @@ export default { switch (val.btnName) { case 'search': this.listQuery.pageNo = 1; - this.listQuery.pageSize = 10; + this.listQuery.pageSize = 20; this.listQuery.materialId = val.name; this.getDataList(); break; case 'reset': this.$refs.searchBarForm.resetForm(); this.listQuery = { - pageSize: 10, + pageSize: 20, pageNo: 1, total: 1, }; diff --git a/src/views/cost/rawMaterialCost/index.vue b/src/views/cost/rawMaterialCost/index.vue index 961c5f67..1de8f050 100644 --- a/src/views/cost/rawMaterialCost/index.vue +++ b/src/views/cost/rawMaterialCost/index.vue @@ -12,6 +12,7 @@ :table-props="tableProps" :page="listQuery.pageNo" :limit="listQuery.pageSize" + :max-height="tableH" :table-data="tableData"> { + this.tableH = this.tableHeight(260) + }) getHotMaterialList().then((response) => { this.formConfig[0].selectOptions = response.data; }); @@ -138,7 +143,7 @@ export default { switch (val.btnName) { case 'search': this.listQuery.pageNo = 1; - this.listQuery.pageSize = 10; + this.listQuery.pageSize = 20; this.listQuery.materialId = val.materialId; this.listQuery.searchTime = val.searchTime ? val.searchTime[0] : null; this.listQuery.startTime = val.searchTime diff --git a/src/views/cost/rawMaterialCostHis/index.vue b/src/views/cost/rawMaterialCostHis/index.vue index 05636063..7a69704a 100644 --- a/src/views/cost/rawMaterialCostHis/index.vue +++ b/src/views/cost/rawMaterialCostHis/index.vue @@ -12,6 +12,7 @@ :table-props="tableProps" :page="listQuery.pageNo" :limit="listQuery.pageSize" + :max-height="tableH" :table-data="tableData"> { + this.tableH = this.tableHeight(260) + }) const end = new Date(); const start = new Date(); start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); @@ -149,7 +154,7 @@ export default { switch (val.btnName) { case 'search': this.listQuery.pageNo = 1; - this.listQuery.pageSize = 10; + this.listQuery.pageSize = 20; this.listQuery.reportType = val.reportType; this.listQuery.materialId = val.materialId; this.listQuery.times = val.searchTime