From a0654f2c21511a0e16b977427a563a3ccdfd1fba Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期二, 14 三月 2023 15:34:06 +0800 Subject: [PATCH] 搜索bug --- src/views/your/customerReceive-manage/customerReceive.vue | 24 +++++++++++++++++++++--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/views/your/customerReceive-manage/customerReceive.vue b/src/views/your/customerReceive-manage/customerReceive.vue index 13419ff..e7ea829 100644 --- a/src/views/your/customerReceive-manage/customerReceive.vue +++ b/src/views/your/customerReceive-manage/customerReceive.vue @@ -12,9 +12,9 @@ openTip ? "鍏抽棴鎻愮ず" : "寮�鍚彁绀�" }}</Button> <Input - v-model="searchForm.name" + v-model="searchForm2.name" suffix="ios-search" - @on-change="getDataList" + @on-change="getDataList2" placeholder="杈撳叆鍟嗘埛鍚嶇О鎼滅储" clearable style="width: 250px" @@ -209,6 +209,14 @@ depModalVisible: false, modalTitle: "", searchForm: { + // 鎼滅储妗嗗垵濮嬪寲瀵硅薄 + pageNumber: 1, // 褰撳墠椤垫暟 + pageSize: 10, // 椤甸潰澶у皬 + sort: "createTime", // 榛樿鎺掑簭瀛楁 + order: "desc", // 榛樿鎺掑簭鏂瑰紡 + key: "", + }, + searchForm2: { // 鎼滅储妗嗗垵濮嬪寲瀵硅薄 pageNumber: 1, // 褰撳墠椤垫暟 pageSize: 10, // 椤甸潰澶у皬 @@ -438,6 +446,16 @@ getDataList() { this.loading = true; getCustomerReceive(this.searchForm).then((res) => { + this.loading = false; + if (res.success) { + this.data = res.result.records; + this.total = res.result.total; + } + }); + }, + getDataList2() { + this.loading = true; + getCustomerReceive(this.searchForm2).then((res) => { this.loading = false; if (res.success) { this.data = res.result.records; @@ -865,4 +883,4 @@ this.init(); }, }; -</script> \ No newline at end of file +</script> -- Gitblit v1.9.1