diff --git a/src/views/modules/shequ/chaxun.vue b/src/views/modules/shequ/chaxun.vue index d794ff48d..859d475b7 100644 --- a/src/views/modules/shequ/chaxun.vue +++ b/src/views/modules/shequ/chaxun.vue @@ -75,6 +75,7 @@
- - + prop="categoryNameStr" + > - - - - + + + + @@ -383,6 +301,7 @@ export default { data() { return { + btnLoading:false, searchStatus: "ini", //ing over searchData: { type: "fangwu", @@ -515,6 +434,7 @@ export default { }, methods: { async handleExport() { + this.btnLoading = true; const url = this.searchData.type === 'fangwu'?"/actual/base/communityHouse/houseSearchExport":'/actual/base/residentBaseInfo/residentSearchExport'; axios({ url: window.SITE_CONFIG["apiURL"] + url, @@ -541,8 +461,10 @@ export default { aLink.click(); document.body.removeChild(aLink); //下载完成移除元素 window.URL.revokeObjectURL(url); //释放掉blob对象 + this.btnLoading = false; }) .catch((err) => { + this.btnLoading = false; return this.$message.error("网络错误"); }); }, @@ -764,34 +686,8 @@ export default { }); this.searchFangwu.loading = false; if (code === 0) { - console.log("列表请求成功!!!!!!!!!!!!!!"); this.searchFangwu.total = data.total || 0; - this.searchFangwu.list = data.list - ? data.list.map((item) => { - const { houseType, rentFlag, purpose } = item; - item.houseType = { - 1: "楼房", - 2: "平房", - 3: "别墅", - }[houseType]; - item.rentFlag = { - 0: "自住", - 1: "出租", - 2: "闲置", - 3: "未售出", - }[rentFlag]; - item.purpose = { - 1: "住宅", - 2: "商业", - 3: "办公", - 4: "工业", - 5: "存储", - 6: "商住混用", - 7: "其它", - }[purpose]; - return item; - }) - : []; + this.searchFangwu.list = data.list; } else { } this.getRulesList();