fix
This commit is contained in:
@@ -138,10 +138,11 @@ export default {
|
||||
async loadTable() {
|
||||
this.loading = true;
|
||||
try {
|
||||
const { data } = await api.getList(this.page.current, this.page.size, {
|
||||
const response = await api.getList(this.page.current, this.page.size, {
|
||||
...this.query,
|
||||
settlementType: this.settlementType,
|
||||
});
|
||||
const data = response?.data?.data || response?.data || response || {};
|
||||
this.rows = data.records || [];
|
||||
this.page.total = data.total || 0;
|
||||
} finally {
|
||||
@@ -202,10 +203,11 @@ export default {
|
||||
this.loadTable();
|
||||
},
|
||||
async handleExport() {
|
||||
const { data } = await api.getList(1, 100000, {
|
||||
const response = await api.getList(1, 100000, {
|
||||
...this.query,
|
||||
settlementType: this.settlementType,
|
||||
});
|
||||
const data = response?.data?.data || response?.data || response || {};
|
||||
const exportRows = (data.records || []).map(item => ({
|
||||
对账单号: item.reconciliationNo,
|
||||
付款方: item.payerName,
|
||||
|
||||
Reference in New Issue
Block a user