1.修复分页bug

featFunction
x_z 3 years ago
parent e7fc6ee59d
commit ee4aec9c28

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

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

Loading…
Cancel
Save