@ -726,17 +726,7 @@ export default {
deptName(val) {
this.$refs.tree.filter(val);
},
$route:{
handler: function (newVal, oldVal) {
console.log(newVal);
if (newVal.query) {
this.queryParams.idCard = newVal.query.idCard;
this.handleQuery()
}
immediate: true,
deep: true,
created() {
this.getList();
@ -423,6 +423,21 @@ export default {
mounted() {
// 挂载后执行的逻辑
watch: {
// 这里可以监听数据变化
this.$nextTick(()=>{
this.checnInForm.idCard = newVal.query.idCard;
})
};
</script>