排产页面分页

This commit is contained in:
yinjinlu-pc\尹金路 2023-03-29 11:00:33 +08:00
parent 369bcc2ca5
commit 1134e1021c

View File

@ -138,6 +138,14 @@
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改生产工单对话框 -->
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
<el-form ref="form" :model="form" label-width="80px">
@ -292,6 +300,8 @@ export default {
loading: true,
//
showSearch: true,
//
total: 0,
//
single: true,
//
@ -308,6 +318,8 @@ export default {
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
workorderCode: null,
workorderName: null,
orderSource: null,
@ -346,7 +358,8 @@ export default {
getList() {
this.loading = true;
listWorkorder(this.queryParams).then(response => {
this.workorderList = this.handleTree(response.data, "workorderId", "parentId");
this.workorderList = this.handleTree(response.rows, "workorderId", "parentId");
this.total = response.total;
this.loading = false;
});
},