feat: 添加异常日志功能并优化UI样式

refactor: 重构后端查询逻辑和API响应处理

fix: 修复用户角色更新和文件上传问题

test: 添加前端性能测试脚本和E2E测试用例

chore: 更新依赖版本和配置文件

docs: 添加环境检查脚本和测试文档

style: 统一表格标签样式和路由命名

perf: 优化前端页面加载速度和响应时间
This commit is contained in:
张翔
2026-03-24 13:32:20 +08:00
parent a97d317e4a
commit be5d5ede90
184 changed files with 11231 additions and 1903 deletions
+13 -11
View File
@@ -31,7 +31,7 @@ export class DashboardPage {
}
async navigateToUserManagement() {
const systemMenu = this.page.locator('.el-sub-menu').filter({ hasText: '系统管理' });
const systemMenu = this.page.locator('text=系统管理');
await systemMenu.click();
await this.page.waitForTimeout(500);
await this.userManagementLink.click();
@@ -39,7 +39,7 @@ export class DashboardPage {
}
async navigateToRoleManagement() {
const systemMenu = this.page.locator('.el-sub-menu').filter({ hasText: '系统管理' });
const systemMenu = this.page.locator('text=系统管理');
await systemMenu.click();
await this.page.waitForTimeout(500);
await this.roleManagementLink.click();
@@ -47,7 +47,7 @@ export class DashboardPage {
}
async navigateToMenuManagement() {
const systemMenu = this.page.locator('.el-sub-menu').filter({ hasText: '系统管理' });
const systemMenu = this.page.locator('text=系统管理');
await systemMenu.click();
await this.page.waitForTimeout(500);
await this.menuManagementLink.click();
@@ -55,7 +55,7 @@ export class DashboardPage {
}
async navigateToSystemConfig() {
const configMenu = this.page.locator('.el-sub-menu').filter({ hasText: '系统配置' });
const configMenu = this.page.locator('text=系统配置');
await configMenu.click();
await this.page.waitForTimeout(500);
await this.systemConfigLink.click();
@@ -63,7 +63,7 @@ export class DashboardPage {
}
async navigateToNoticeManagement() {
const notifyMenu = this.page.locator('.el-sub-menu').filter({ hasText: '通知中心' });
const notifyMenu = this.page.locator('text=通知中心');
await notifyMenu.click();
await this.page.waitForTimeout(500);
await this.noticeManagementLink.click();
@@ -71,25 +71,27 @@ export class DashboardPage {
}
async navigateToFileManagement() {
const fileMenu = this.page.locator('.el-sub-menu').filter({ hasText: '文件管理' });
const fileMenu = this.page.locator('text=文件管理');
await fileMenu.click();
await this.page.waitForTimeout(500);
await this.fileManagementLink.click();
await this.page.waitForURL('**/files');
}
async navigateToOperationLog() {
const auditMenu = this.page.locator('.el-sub-menu').filter({ hasText: '审计中心' });
async navigateToAudit() {
const auditMenu = this.page.locator('text=审计中心');
await auditMenu.click();
await this.page.waitForTimeout(500);
}
async navigateToOperationLog() {
await this.navigateToAudit();
await this.operationLogLink.click();
await this.page.waitForURL('**/oplog');
}
async navigateToLoginLog() {
const auditMenu = this.page.locator('.el-sub-menu').filter({ hasText: '审计中心' });
await auditMenu.click();
await this.page.waitForTimeout(500);
await this.navigateToAudit();
await this.loginLogLink.click();
await this.page.waitForURL('**/loginlog');
}