RuoYi
2022-05-13 5c4c90a27c352dfc0da414e32c25324caf06f686
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>