|
|
@ -726,8 +726,12 @@ export default { |
|
|
|
methods: { |
|
|
|
firstSearch() { |
|
|
|
console.log(getQueryPara("type")); |
|
|
|
this.searchData.searchKey = getQueryPara("searchKey"); |
|
|
|
this.searchData.type = getQueryPara("type"); |
|
|
|
console.log(this.$route.query.type,'type'); |
|
|
|
console.log(this.$route.query.searchKey,'search'); |
|
|
|
// this.searchData.searchKey = getQueryPara("searchKey"); |
|
|
|
// this.searchData.type = getQueryPara("type"); |
|
|
|
this.searchData.searchKey = localStorage.getItem('homeSearchKey') || '' |
|
|
|
this.searchData.type = localStorage.getItem('homeSearchType') || '' |
|
|
|
this.handleClickSearchBtn(); |
|
|
|
}, |
|
|
|
|
|
|
@ -742,7 +746,6 @@ export default { |
|
|
|
if (n.value == row[item.columnName] ) _val = n.label; |
|
|
|
}); |
|
|
|
} |
|
|
|
console.log(row.mobile); |
|
|
|
|
|
|
|
if(row.mobile == '' || row.mobile == '--'){ |
|
|
|
row.mobile = "" |
|
|
@ -754,11 +757,11 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
handleClickSearchBtn() { |
|
|
|
|
|
|
|
const { |
|
|
|
searchData: { type, searchKey }, |
|
|
|
} = this; |
|
|
|
console.log("ddddddddd",type) |
|
|
|
localStorage.setItem('homeSearchType',type) |
|
|
|
localStorage.setItem('homeSearchKey',searchKey) |
|
|
|
if (!searchKey) return this.$message.error("请输入搜索条件"); |
|
|
|
if (type == "jumin") { |
|
|
|
this.searchJumin.pageNo = 1; |
|
|
@ -894,6 +897,10 @@ export default { |
|
|
|
// this.searchData.searchKey = '' |
|
|
|
} |
|
|
|
}, |
|
|
|
destroyed(){ |
|
|
|
localStorage.removeItem('homeSearchKey') |
|
|
|
localStorage.removeItem('homeSearchType') |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|
|
|
|