refactor(org): 迁移账户模块至 company/account,重构公司拥有者创建账户逻辑并统一拥有者文案与注释

This commit is contained in:
小蟑螂
2026-05-25 18:13:53 +08:00
parent 2f44eaa9d2
commit d4bfa4d257
21 changed files with 156 additions and 53 deletions
@@ -8,14 +8,14 @@ import type { AccountDTO, AccountVO } from './types';
*/
/**
* 创建账户(管理员)
* 创建账户(拥有者)
*/
export async function admin_createAccountApi(data: AccountDTO.CreateAccountDTO) {
return requestClient.post<AccountVO.AccountInfoVO>('/company/account/create', data);
}
/**
* 分页查询账户(管理员)
* 分页查询账户(拥有者)
*/
export async function admin_getAccountPageApi(params: PageQueryDTO<AccountDTO.AccountFilterDTO>) {
return requestClient.post<PageResultVO<AccountVO.AccountInfoVO>>('/company/account/list', params);
@@ -262,7 +262,7 @@ defineExpose({
placeholder="请选择角色"
:options="[
{ label: '超级管理员', value: 'super' },
{ label: '管理员', value: 'admin' },
{ label: '拥有者', value: 'admin' },
{ label: '普通用户', value: 'user' },
]"
/>
@@ -320,14 +320,13 @@ defineExpose({
label="密码"
name="password"
:rules="[
{ required: true, message: '请输入密码' },
{ min: 6, max: 20, message: '密码长度为6-20个字符' },
]"
>
<Input
v-model:value="formData.password"
type="password"
placeholder="请输入密码"
placeholder="新用户必填;手机号已存在可留空"
/>
</Form.Item>