From c73a2c380aca7ac4ef16e76388b1a52356df8634 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期五, 30 八月 2024 19:01:04 +0800 Subject: [PATCH] 测试完成 --- src/views/system/user/index.vue | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 6f1d6d2..bb206c6 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -307,8 +307,9 @@ <el-col :span="12"> <el-form-item label="褰掑睘閮ㄩ棬" prop="deptId"> <treeselect - v-model="form.deptId" + v-model="deptIds" :options="deptOptions" + :multiple="true" :show-count="true" placeholder="璇烽�夋嫨褰掑睘閮ㄩ棬" /> @@ -536,6 +537,7 @@ initPassword: undefined, // 鏃ユ湡鑼冨洿 dateRange: [], + deptIds: [], // 宀椾綅閫夐」 postOptions: [], // 瑙掕壊閫夐」 @@ -746,9 +748,11 @@ /** 淇敼鎸夐挳鎿嶄綔 */ handleUpdate(row) { this.reset(); + this.deptIds = []; const userId = row.userId || this.ids; getUser(userId).then((response) => { this.form = response.data; + this.postOptions = response.posts; this.roleOptions = response.roles; this.$set(this.form, "postIds", response.postIds); -- Gitblit v1.9.3