WXL (wul)
23 小时以前 0c7cc21d8a51e164dd2fe4ce73ab566b3a9081a9
src/views/system/user/index.vue
@@ -846,7 +846,6 @@
        }
        console.log(this.form.wardCodes, "wardCodes");
        console.log(this.form.deptCodes, "deptCodes");
        this.postOptions = response.posts;
        this.roleOptions = response.roles;
        this.$set(this.form, "postIds", response.postIds);
@@ -908,7 +907,7 @@
            updateUser(this.form).then((response) => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.adduserdept();
              // this.adduserdept();
            });
          } else {
            addUser(this.form).then((response) => {
@@ -917,7 +916,7 @@
              this.form.userId = response.data;
              console.log("开始加部门");
              this.adduserdept();
              // this.adduserdept();
            });
          }
        }
@@ -927,7 +926,7 @@
    adduserdept() {
      if (this.form.wardCodes[0]) {
        this.form.wardCodes.forEach((dept) => {
          const containsId8 = null;
          let containsId8 = null;
          if (this.belongWards) {
            containsId8 = this.belongWards.some(
              (item) => item.deptCode == dept
@@ -948,7 +947,7 @@
      }
      if (this.form.deptCodes[0]) {
        this.form.deptCodes.forEach((dept) => {
          const containsId8 = null;
          let containsId8 = null;
          if (this.belongDepts) {
            containsId8 = this.belongDepts.some(
              (item) => item.deptCode == dept