1.修复分页bug

featFunction
x_z 3 years ago
parent e7fc6ee59d
commit ee4aec9c28

@ -86,7 +86,9 @@
<el-pagination
:page-size="detailQuery.limit"
@current-change="detailHandleCurrentChange"
:current-page="detailQuery.page"
:current-page.sync="detailQuery.page"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="detailTotal"
>
@ -151,6 +153,10 @@ export default {
type: Object,
required: true,
},
orderIdFk: {
type: String,
required: true,
}
},
data() {
return {
@ -266,9 +272,8 @@ export default {
}
}
},
detailHandleCurrentChange(val) {
this.query.page = val;
handleCurrentChange(val) {
this.detailQuery.page = val;
this.getStockOrderDetailList();
},
getStockOrderDetailList(row) {
@ -288,6 +293,10 @@ export default {
});
},
},
created() {
this.detailQuery.orderIdFk = this.orderIdFk;
this.getStockOrderDetailList();
}
}
</script>

@ -284,7 +284,7 @@
<StockOrderEdit
:closeDialog="closeDialog"
:detailList="detailList"
:orderIdFk="detailQuery.orderIdFk"
></StockOrderEdit>
</el-dialog>
@ -946,6 +946,7 @@ export default {
//
handleDetailForm(index, row) {
this.stockOrderEditVisible = true;
this.detailQuery.orderIdFk = row.id;
},
hideDetailForm() {
//

Loading…
Cancel
Save