|
@ -582,8 +582,6 @@ export default { |
|
|
categoryKey: "resi_info", |
|
|
categoryKey: "resi_info", |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
this.getTableData() |
|
|
|
|
|
// this.getQueryConditions(); |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
@ -1362,20 +1360,22 @@ export default { |
|
|
watch: { |
|
|
watch: { |
|
|
$route: { |
|
|
$route: { |
|
|
handler: function (newVal, oldVal) { |
|
|
handler: function (newVal, oldVal) { |
|
|
if (newVal.name == "base-resi" && oldVal.name == 'home') { |
|
|
if (newVal.name == "base-resi") { |
|
|
console.log(newVal); |
|
|
|
|
|
if( newVal.query.category){ |
|
|
|
|
|
this.$nextTick(()=>{ |
|
|
this.$nextTick(()=>{ |
|
|
this.$refs.myResiSearch.form.categoryKey = [] |
|
|
if( newVal.params.category){ |
|
|
this.$refs.myResiSearch.form.categoryKey.push(newVal.query.category) |
|
|
this.$refs.myResiSearch.form.categoryKey = [] |
|
|
this.handleSearchFrom() |
|
|
this.$refs.myResiSearch.form.categoryKey.push(newVal.params.category) |
|
|
|
|
|
this.handleSearchFrom() |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.$refs.myResiSearch.form.categoryKey = [] |
|
|
|
|
|
this.getTableData() |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
deep: true, |
|
|
deep: true, |
|
|
immediate: true, |
|
|
immediate: true |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|