50 lines
1.9 KiB
TypeScript
50 lines
1.9 KiB
TypeScript
/**
|
||
* 个人中心页配置文件
|
||
* 用于存放静态配置、Mock数据模板、表单选项等,实现视图与配置解耦
|
||
*/
|
||
|
||
// 1. 标签页配置
|
||
export const PROFILE_TABS = [
|
||
{ label: '基本信息', name: 'basic', component: 'BasicInfoForm' },
|
||
{ label: '账户安全', name: 'security', component: 'AccountSecurity' },
|
||
{ label: '操作日志', name: 'logs', component: 'OperationLogs' },
|
||
{ label: '加入公司', name: 'joinStore', component: 'WelcomCard' },
|
||
{ label: '微信绑定', name: 'bind', component: 'Bind' }
|
||
]
|
||
|
||
// 2. 部门选项配置 (BasicInfoForm 使用)
|
||
export const DEPARTMENT_OPTIONS = [
|
||
{ label: '技术部', value: '技术部' },
|
||
{ label: '产品部', value: '产品部' },
|
||
{ label: '设计部', value: '设计部' },
|
||
{ label: '市场部', value: '市场部' },
|
||
{ label: '运营部', value: '运营部' }
|
||
]
|
||
|
||
// 3. 账户安全 Mock 数据
|
||
export const MOCK_SECURITY_INFO = {
|
||
passwordStrength: 'strong',
|
||
lastPasswordChange: '2023-12-01',
|
||
twoFactorEnabled: true,
|
||
emailVerified: true,
|
||
phoneVerified: true,
|
||
loginDevices: [
|
||
{ id: 1, device: 'Chrome on Windows', location: '北京', lastActive: '2024-01-20 14:30', current: true },
|
||
{ id: 2, device: 'Safari on iPhone', location: '上海', lastActive: '2024-01-19 09:15', current: false }
|
||
]
|
||
}
|
||
|
||
// 4. 操作日志 Mock 数据
|
||
export const MOCK_OPERATION_LOGS = {
|
||
list: [
|
||
{ id: 1, action: '登录系统', ip: '192.168.1.100', time: '2024-01-20 14:30:22', status: '成功' },
|
||
{ id: 2, action: '修改密码', ip: '192.168.1.100', time: '2024-01-19 10:15:33', status: '成功' },
|
||
{ id: 3, action: '更新个人信息', ip: '192.168.1.100', time: '2024-01-18 16:20:45', status: '成功' },
|
||
{ id: 4, action: '导出数据', ip: '192.168.1.100', time: '2024-01-17 11:05:12', status: '成功' },
|
||
{ id: 5, action: '登录系统', ip: '192.168.1.101', time: '2024-01-16 09:30:55', status: '失败' }
|
||
],
|
||
total: 45,
|
||
page: 1,
|
||
loading: false
|
||
}
|