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 @@ 查一下 -
已显示‘{{ 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";