mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 20:29:19 +08:00
refactor(org): 迁移账户模块至 company/account,重构公司拥有者创建账户逻辑并统一拥有者文案与注释
This commit is contained in:
@@ -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);
|
||||
|
||||
+1
-1
@@ -262,7 +262,7 @@ defineExpose({
|
||||
placeholder="请选择角色"
|
||||
:options="[
|
||||
{ label: '超级管理员', value: 'super' },
|
||||
{ label: '管理员', value: 'admin' },
|
||||
{ label: '拥有者', value: 'admin' },
|
||||
{ label: '普通用户', value: 'user' },
|
||||
]"
|
||||
/>
|
||||
|
||||
+1
-2
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user