src/views/system/user/index.vue
@@ -1611,6 +1611,7 @@ // 根据名称筛选部门树 deptName(val) { console.log(val); this.$refs.tree.filter(val); }, treeId(newVal, oldVal) { if (newVal) { @@ -1877,6 +1878,10 @@ this.getlistHosp(); this.reset(); this.form = row; this.form = { ...row, deptId: row.deptId != null ? String(row.deptId) : null, // 👈 确保为字符串 }; if (this.form.hospId) { this.sendhospName(); }