lkk
3 天以前 33de1cf5576373b99dc2a6ed4be097f4d6ad0892
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();
      }