WXL
2024-09-09 4e6c841dd09baff7fafb0e21fec36ee7faf61588
src/views/system/user/index.vue
@@ -307,7 +307,7 @@
          <el-col :span="12">
            <el-form-item label="归属部门" prop="deptId">
              <treeselect
                v-model="deptIds"
                v-model="form.depts"
                :options="deptOptions"
                :multiple="true"
                :show-count="true"
@@ -737,13 +737,15 @@
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      getUser().then((response) => {
        this.postOptions = response.posts;
        this.roleOptions = response.roles;
        this.open = true;
      this.open = true;
        this.title = "添加用户";
        this.form.password = this.initPassword;
      });
        this.form.depts = [];
      // getUser().then((response) => {
      //   this.postOptions = response.posts;
      //   this.roleOptions = response.roles;
      // });
    },
    /** 修改按钮操作 */
    handleUpdate(row) {