|
|
@ -39,10 +39,10 @@ |
|
|
|
</div> |
|
|
|
<div class="btn" @click="handleClickSearchBtn">查一下</div> |
|
|
|
</div> |
|
|
|
<div class="btn2" @click="handleClickSmartSearchBtn"> |
|
|
|
<!-- <div class="btn2" @click="handleClickSmartSearchBtn"> |
|
|
|
<img src="@/assets/images/index/i-search.png" /> |
|
|
|
{{ smatrFlag ? "关闭智能查询" : "智能查询" }} |
|
|
|
</div> |
|
|
|
</div> --> |
|
|
|
</div> |
|
|
|
<p v-show="smatrFlag && searchStatus == 'ing'" class="rules_box"> |
|
|
|
已显示‘{{ 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"; |
|
|
|