mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 21:09:19 +08:00
refactor(account): 账户管理表单和后端DTO全面同步
前端: - 部门和职位改为必填 - 密码改为6-20位(无复杂校验) - 登录账号、手机号、头像等字段已移除 后端: - CreateAccountDTO/UpdateAccountDTO 移除 loginCode、avatarImageId - 密码校验改为6-20位 - 移除密码复杂度和部门/岗位的非空校验(由前端控制)
This commit is contained in:
+7
-3
@@ -338,6 +338,7 @@ defineExpose({
|
||||
<Form.Item
|
||||
label="所属部门"
|
||||
name="departmentId"
|
||||
:rules="[{ required: true, message: '请选择所属部门' }]"
|
||||
>
|
||||
<Cascader
|
||||
:value="departmentPath"
|
||||
@@ -351,14 +352,17 @@ defineExpose({
|
||||
/>
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item label="职位" name="positionId">
|
||||
<Form.Item
|
||||
label="职位"
|
||||
name="positionId"
|
||||
:rules="[{ required: true, message: '请选择职位' }]"
|
||||
>
|
||||
<Select
|
||||
v-model:value="formData.positionId"
|
||||
:loading="positionOptionsLoading"
|
||||
:options="positionOptions"
|
||||
placeholder="请选择职位(可选)"
|
||||
placeholder="请选择职位"
|
||||
:disabled="positionOptionsLoading"
|
||||
allow-clear
|
||||
/>
|
||||
</Form.Item>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user