Commit 2da52e18 by chenyu

update: update

parent ae238b12
......@@ -231,6 +231,7 @@ export default {
this.getMemberOrderPage();
},
handleSizeChange(val) {
this.page.currentPage = 1;
this.page.pageSize = val;
this.getMemberOrderPage();
},
......@@ -247,7 +248,7 @@ export default {
this.load = false;
const { page } = res.data.result || {};
let list = Array.isArray(page.result) ? page.result : [];
list.map(item => {
list.map((item, index) => {
let price = 0;
let receivable = 0;
item.orderItems.map(el => {
......@@ -264,9 +265,11 @@ export default {
});
item.price = price;
item.receivable = receivable;
if (index === list.length - 1) {
this.memberData = JSON.parse(JSON.stringify(list));
this.totalCount = page.totalCount;
}
});
this.memberData = JSON.parse(JSON.stringify(list));
this.totalCount = page.totalCount;
} else {
checkFalse(res.data.message);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment