|
|
@ -444,10 +444,10 @@ export default { |
|
|
|
categoryKey: "resi_info", |
|
|
|
}, |
|
|
|
}); |
|
|
|
this.handleSearchFrom(); |
|
|
|
// this.handleSearchFrom(); |
|
|
|
}, |
|
|
|
activated() { |
|
|
|
this.handleSearchFrom(); |
|
|
|
// this.handleSearchFrom(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
mouseOverNode(event) { |
|
|
@ -1179,19 +1179,30 @@ export default { |
|
|
|
watch: { |
|
|
|
$route: { |
|
|
|
handler: function (newVal, oldVal) { |
|
|
|
// console.log(newVal, oldVal) |
|
|
|
if (newVal.name == "base-resi") { |
|
|
|
this.$nextTick(() => { |
|
|
|
if (newVal.params.category) { |
|
|
|
this.$refs.myResiSearch.form.categoryKey = []; |
|
|
|
this.$refs.myResiSearch.form.categoryKey.push( |
|
|
|
this.$refs.myResiSearch.form.attentionCrowds = []; |
|
|
|
this.$refs.myResiSearch.form.healthStatus = []; |
|
|
|
this.$refs.myResiSearch.form.specialCategoryCodes = []; |
|
|
|
this.$refs.myResiSearch.form.partyFlag=null; |
|
|
|
if (newVal.params.category === 'SPECIAL_SUPPORT_FLAG' ||newVal.params.category === 'SUBSISTENCE_ALLOWANCE_FLAG'|| newVal.params.category === 'VETERAN_FLAG'|| newVal.params.category === 'ENSURE_HOUSE_FLAG'|| newVal.params.category === 'OLD_PEOPLE_FLAG') { |
|
|
|
this.$refs.myResiSearch.form.attentionCrowds.push( |
|
|
|
newVal.params.category |
|
|
|
); |
|
|
|
this.handleSearchFrom(); |
|
|
|
} else if(newVal.params.category === 'CHRONIC_DISEASE_FLAG' ||newVal.params.category === 'SERIOUS_ILLNESS_FLAG'||newVal.params.category === 'DISABILITY_FLAG'){ |
|
|
|
this.$refs.myResiSearch.form.healthStatus.push( |
|
|
|
newVal.params.category |
|
|
|
); |
|
|
|
this.handleSearchFrom(); |
|
|
|
}else if(newVal.params.category === 'SPECIAL_CROWD_FLAG'){ |
|
|
|
this.$refs.myResiSearch.form.specialCategoryCodes = ["anzhibangjiao","shequjiaozheng","xidurenyuan","buliangqingshaonian","zhaoshizhaohuojingshenbing","xiejiaorenyuan"]; |
|
|
|
this.handleSearchFrom(); |
|
|
|
}else if(newVal.params.category === 'PARTY_FLAG'){ |
|
|
|
this.$refs.myResiSearch.form.partyFlag =1; |
|
|
|
this.handleSearchFrom(); |
|
|
|
} else { |
|
|
|
// this.$refs.myResiSearch.form.categoryKey = [] |
|
|
|
// this.handleSearchFrom() |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|