From 5c4c90a27c352dfc0da414e32c25324caf06f686 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期五, 13 五月 2022 15:00:24 +0800 Subject: [PATCH] 用户管理左侧树型组件增加选中高亮保持 --- src/views/system/user/index.vue | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 78ce084..a9e5bf4 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -19,6 +19,7 @@ :expand-on-click-node="false" :filter-node-method="filterNode" ref="deptTreeRef" + highlight-current default-expand-all @node-click="handleNodeClick" /> @@ -207,11 +208,13 @@ </el-col> <el-col :span="12"> <el-form-item label="褰掑睘閮ㄩ棬" prop="deptId"> - <tree-select - v-model:value="form.deptId" - :options="deptOptions" + <el-tree-select + v-model="form.deptId" + :data="deptOptions" + :props="{ value: 'id', label: 'label', children: 'children' }" + value-key="id" placeholder="璇烽�夋嫨褰掑睘閮ㄩ棬" - :objMap="{ value: 'id', label: 'label', children: 'children' }" + check-strictly /> </el-form-item> </el-col> @@ -588,7 +591,7 @@ roleOptions.value = response.roles; open.value = true; title.value = "娣诲姞鐢ㄦ埛"; - form.password.value = initPassword.value; + form.value.password = initPassword.value; }); }; /** 淇敼鎸夐挳鎿嶄綔 */ -- Gitblit v1.9.3