Commit c4154489 authored by Facius's avatar Facius

feat: 收费项分页

parent 73a21cbe
Pipeline #3673 canceled with stages
...@@ -92,7 +92,7 @@ export default { ...@@ -92,7 +92,7 @@ export default {
this.loading = true; this.loading = true;
} }
getRepairServiceTemplate({ getRepairServiceTemplate({
page: this.page, current: this.page,
collectFlag: this.current == 0 ? false : true, collectFlag: this.current == 0 ? false : true,
size: this.size, size: this.size,
}) })
...@@ -101,8 +101,8 @@ export default { ...@@ -101,8 +101,8 @@ export default {
if (this.page == 1) { if (this.page == 1) {
this.charges = []; this.charges = [];
} }
if (data) { if (data.records) {
this.charges.push(...data); this.charges.push(...data.records);
this.loadStatus = data.total > this.charges.length ? 'loadmore' : 'nomore'; this.loadStatus = data.total > this.charges.length ? 'loadmore' : 'nomore';
} else { } else {
this.loadStatus = 'nomore' this.loadStatus = 'nomore'
......
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