From ae9e59c0c86255e8fac92987777e19ef91387434 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Wed, 16 Aug 2023 09:33:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=85=B3=E9=97=AD=E6=99=AE?= =?UTF-8?q?=E9=80=9A=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/home/index.vue | 4 ++-- src/views/modules/shequ/chaxun.vue | 21 ++++++--------------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/src/views/modules/home/index.vue b/src/views/modules/home/index.vue index 64d235ec3..8c2277bc2 100644 --- a/src/views/modules/home/index.vue +++ b/src/views/modules/home/index.vue @@ -50,10 +50,10 @@ 查一下 -
+
diff --git a/src/views/modules/shequ/chaxun.vue b/src/views/modules/shequ/chaxun.vue index 04f11621c..0251dbe4c 100644 --- a/src/views/modules/shequ/chaxun.vue +++ b/src/views/modules/shequ/chaxun.vue @@ -39,10 +39,10 @@
查一下
-
+

已显示‘{{ searchData.type == "fangwu" ? "房屋" : "居民" }}’状态为{{ @@ -461,7 +461,7 @@ export default { currentPage: "chaxun", //查询 预警, - smatrFlag: false, + smatrFlag: true, showSmatrForm: false, rulesData: [], @@ -561,18 +561,7 @@ export default { console.log(msg); } }, - handleClickSmartSearchBtn() { - this.smatrFlag = !this.smatrFlag; - if (!this.searchData.searchKey) return; - if (this.searchData.type == "jumin") { - this.getSearchJumin(); - } else { - this.getSearchFangwu(); - } - if (this.smatrFlag) { - this.getRulesList(); - } - }, + handleSizeChangeSearchJumin(val) { console.log(`每页 ${val} 条`); this.searchJumin.pageSize = val; @@ -613,6 +602,8 @@ export default { getApiData() {}, async getSearchJumin() { + // "/actual/base/residentBaseInfo/communitySearch" 普通查询 + // "/actual/base/residentBaseInfo/residentSearch" 智能查询 let url = this.smatrFlag ? "/actual/base/residentBaseInfo/residentSearch" : "/actual/base/residentBaseInfo/communitySearch";