测试暂未发现问题

This commit is contained in:
ChoChoX
2026-06-25 21:49:55 +08:00
parent 5cd569797c
commit 984d5b8118
26 changed files with 2414 additions and 636 deletions

View File

@@ -1,5 +1,5 @@
// 模拟员工数据
const mockEmployees = [
// 模拟员工数据(单一数据源,同时包含用户字段)
export const mockEmployees = [
{
id: 1,
name: '张伟',
@@ -14,6 +14,11 @@ const mockEmployees = [
email: 'zhangwei@mxbc.com',
status: 1,
remark: '负责门店日常运营',
// 用户字段
username: 'zhangwei',
password: '123456',
user_type: 'admin',
user_status: '1',
created_at: '2023-03-15 09:00:00',
updated_at: '2023-03-15 09:00:00'
},
@@ -31,6 +36,11 @@ const mockEmployees = [
email: 'lina@mxbc.com',
status: 1,
remark: '',
// 用户字段
username: 'lina',
password: '123456',
user_type: 'user',
user_status: '1',
created_at: '2023-06-01 09:00:00',
updated_at: '2023-06-01 09:00:00'
},
@@ -48,6 +58,11 @@ const mockEmployees = [
email: 'wangqiang@mxbc.com',
status: 1,
remark: '负责系统架构设计',
// 用户字段(无用户账号)
username: null,
password: null,
user_type: null,
user_status: null,
created_at: '2022-11-10 09:00:00',
updated_at: '2022-11-10 09:00:00'
},
@@ -65,6 +80,11 @@ const mockEmployees = [
email: 'liuyang@mxbc.com',
status: 0,
remark: '已离职',
// 用户字段(无用户账号)
username: null,
password: null,
user_type: null,
user_status: null,
created_at: '2024-01-20 09:00:00',
updated_at: '2025-03-01 17:00:00'
},
@@ -82,6 +102,11 @@ const mockEmployees = [
email: 'zhaomin@mxbc.com',
status: 1,
remark: '',
// 用户字段
username: 'zhaomin',
password: '123456',
user_type: 'user',
user_status: '0',
created_at: '2023-09-05 09:00:00',
updated_at: '2023-09-05 09:00:00'
},
@@ -99,6 +124,11 @@ const mockEmployees = [
email: 'chengang@mxbc.com',
status: 1,
remark: '负责原料入库出库',
// 用户字段(无用户账号)
username: null,
password: null,
user_type: null,
user_status: null,
created_at: '2022-04-12 09:00:00',
updated_at: '2022-04-12 09:00:00'
}
@@ -169,6 +199,11 @@ export const mockEmployeeAPI = {
id: maxId + 1,
status: 1,
...data,
// 用户字段初始为空
username: null,
password: null,
user_type: null,
user_status: null,
created_at: now,
updated_at: now
}