登录页快速登录改为真实姓名账号并列出全部(张伟/王芳/李娜/刘洋/陈静/赵磊/孙莉/周强)

This commit is contained in:
freedakgmail
2026-06-13 18:32:18 +08:00
parent 11997e6104
commit e86e60208f
3 changed files with 13 additions and 8 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -177,7 +177,7 @@ export function Login(): JSX.Element {
>
<span style={{ fontWeight: 600 }}>{a.role}</span>
<span style={{ color: colorVar('color.text.secondary'), ...typographyStyle('caption') }}>
{a.username} / {a.password}
{a.username}{a.title} / {a.password}
</span>
</button>
))}
+10 -5
View File
@@ -11,16 +11,21 @@ import { API_BASE } from '../api/client.js';
/** 登录用户角色。 */
export type AuthRole = '商务/销售' | '风控' | '管理层' | '系统管理员';
/** 快速登录用的种子账号(密码由后端用户表校验;这里仅用于一键填充)。 */
/** 快速登录用的账号(与服务端用户表一致;密码由后端校验)。 */
export const TEST_ACCOUNTS: readonly {
readonly username: string;
readonly password: string;
readonly role: AuthRole;
readonly title: string;
}[] = [
{ username: '销售账号', password: '123456', role: '商务/销售' },
{ username: '风控账号', password: '123456', role: '风控' },
{ username: '管理账号', password: '123456', role: '管理层' },
{ username: '系统账号', password: '123456', role: '系统管理员' },
{ username: '张伟', password: '123456', role: '商务/销售', title: '销售经理' },
{ username: '王芳', password: '123456', role: '商务/销售', title: '销售专员' },
{ username: '李娜', password: '123456', role: '商务/销售', title: '销售专员' },
{ username: '刘洋', password: '123456', role: '风控', title: '风控专员' },
{ username: '陈静', password: '123456', role: '风控', title: '风控经理' },
{ username: '赵磊', password: '123456', role: '管理层', title: '运营总监' },
{ username: '孙莉', password: '123456', role: '管理层', title: '财务总监' },
{ username: '周强', password: '123456', role: '系统管理员', title: '系统管理员' },
];
/** 认证状态。 */