1
lkk
4 天以前 60cb43453ec2c4b07743fd297fc4c69928ff5853
src/views/system/user/index.vue
@@ -1610,6 +1610,7 @@
    // 根据名称筛选部门树
    deptName(val) {
      console.log(val);
      this.$refs.tree.filter(val);
    },
    treeId(newVal, oldVal) {
      if (newVal) {
@@ -1876,6 +1877,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();
      }