Merge branch 'master' of gitee.com:beijing_hongye_huicheng/lilishop-ui

master
Yer 2023-10-11 16:36:38 +08:00
commit f7589e42ab
2 changed files with 28 additions and 8 deletions

View File

@ -172,18 +172,20 @@
<div> <div>
<Table stripe :columns="columns" :data="data"></Table> <Table stripe :columns="columns" :data="data"></Table>
</div> </div>
<!-- (index) => {
refundParams.pageNumber = index;
} -->
<!-- (size) => {
(refundParams.pageSize = size), (refundParams.pageNumber = 1);
} -->
<Page <Page
v-if="showRecords" v-if="showRecords"
size="small" size="small"
@on-change=" @on-change="
(index) => { pageNumberChange
refundParams.pageNumber = index;
}
" "
@on-page-size-change=" @on-page-size-change="
(size) => { pageSizeChange
(refundParams.pageSize = size), (refundParams.pageNumber = 1);
}
" "
class="mt_10" class="mt_10"
show-total show-total
@ -523,6 +525,14 @@ export default {
}, },
}, },
methods: { methods: {
pageNumberChange(val){
this.refundParams.pageNumber = val
this.getOrderList();
},
pageSizeChange(val){
this.refundParams.pageSize = val
this.getOrderList();
},
// //
initOrderChart() { initOrderChart() {
// legend-filter // legend-filter
@ -563,11 +573,13 @@ export default {
clickBreadcrumb(item, index) { clickBreadcrumb(item, index) {
let callback = JSON.parse(JSON.stringify(item)); let callback = JSON.parse(JSON.stringify(item));
console.log("callback",callback)
this.orderParams = callback; this.orderParams = callback;
this.overViewParams = callback; this.overViewParams = callback;
this.refundParams = callback; this.refundParams = callback;
this.refundParams.pageNumber = 1
this.refundParams.pageSize = 10
}, },
// //

View File

@ -152,7 +152,7 @@
<div> <div>
<Table stripe :columns="columns" :data="data"></Table> <Table stripe :columns="columns" :data="data"></Table>
</div> </div>
<Page @on-change="(index)=>{refundParams.pageNumber = index}" @on-page-size-change="(size)=>{refundParams.pageSize= size}" class="mt_10" show-total show-elevator :total="total" /> <Page @on-change="pageNumberChange" @on-page-size-change="pageSizeChange" class="mt_10" show-total show-elevator :total="total" />
</div> </div>
</Card> </Card>
@ -459,6 +459,14 @@ export default {
}, },
}, },
methods: { methods: {
pageNumberChange(val){
this.refundParams.pageNumber = val
this.getOrderList();
},
pageSizeChange(val){
this.refundParams.pageSize = val
this.getOrderList();
},
// //
initOrderChart() { initOrderChart() {
// legend-filter // legend-filter