buhuazhen
10 小时以前 98a53588c381bdcdea111cb1deddc06f6c7f1c28
分支
用户 buhuazhen <hua100783@gmail.com>
星期四, 四月 9, 2026 14:12 +0800
提交者 buhuazhen <hua100783@gmail.com>
星期四, 四月 9, 2026 14:12 +0800
提交98a53588c381bdcdea111cb1deddc06f6c7f1c28
目录 036104d8bb2775c6d6f7589f4bacea8622498882 目录 | zip | gz
上一版本 676e73b8780c6cb49596865de81e6d806544ef10 查看 | 对比
fix(用户管理): 修复编辑用户时部门显示问题并增加员工密码初始化

在编辑用户时,后端返回的部门ID可能与前端选项中的ID类型不匹配,导致无法正确显示已选部门。新增getMatchedDeptId函数进行深度匹配查找,确保部门选择正确显示。

同时在员工新增表单中添加默认初始化密码字段,默认值为"123456",并添加相应的表单验证规则。
已修改3个文件
56 ■■■■■ 文件已修改
src/views/personnelManagement/employeeRecord/components/BasicInfoSection.vue 13 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/views/personnelManagement/employeeRecord/components/NewOrEditFormDia.vue 19 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/views/system/user/index.vue 24 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史