diff --git a/pages/institutionalStructure/donationRecord.vue b/pages/institutionalStructure/donationRecord.vue index 7ec4dd8..017eb82 100644 --- a/pages/institutionalStructure/donationRecord.vue +++ b/pages/institutionalStructure/donationRecord.vue @@ -9,7 +9,7 @@ :width="'100%'" btn-text="搜索" placeholder="请输入搜索关键词" - @search="onSearch" + @search="onSearch()" /> { console.log("捐款记录加载成功:", data.length, "条"); }, @@ -137,14 +137,18 @@ export const donationMixin = { * @param {string} val 搜索关键词 */ async onSearch(val) { + console.log("@@@@@@@@@@val", val); this.searchKeyword = val; + + console.log("@@@@@@@@@@", this.searchKeyword); + await this.searchData( - { ...this.getBaseParams(), realName: val }, + { ...this.getBaseParams(), realName: val.trim() }, { apiCall: getDonorList, dataTransformer: this.transformDonationData, dataPath: "data.list.rows", - totalPath: "data.total", + totalPath: "data.list.total", onSuccess: (data, response) => { console.log("搜索完成,找到:", data.length, "条记录"); }, @@ -167,7 +171,7 @@ export const donationMixin = { dataTransformer: this.transformDonationData, params: currentParams, dataPath: "data.list.rows", - totalPath: "data.total", + totalPath: "data.list.total", onSuccess: (data, response) => { console.log("加载更多完成,新增:", data.length, "条记录"); },