feat: 增强财务管理系统功能与分析能力

主要更新:
- 🎯 新增综合分析仪表板,包含关键指标卡片、预算对比、智能洞察等组件
- 📊 增强数据可视化能力,新增标签云分析、时间维度分析等图表
- 📱 优化移动端响应式设计,改进触控交互体验
- 🔧 新增多个API模块(base、budget、tag),完善数据管理
- 🗂️ 重构路由结构,新增贷款、快速添加、设置、统计等独立模块
- 🔄 优化数据导入导出功能,增强数据迁移能力
- 🐛 修复多个已知问题,提升系统稳定性

技术改进:
- 使用IndexedDB提升本地存储性能
- 实现模拟API服务,支持离线开发
- 增加自动化测试脚本,确保功能稳定
- 优化打包配置,提升构建效率

文件变更:
- 新增42个文件
- 修改55个文件
- 包含测试脚本、配置文件、组件和API模块

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
你的用户名
2025-08-24 16:41:58 +08:00
parent 4b4616de1e
commit 675fe0a1a8
154 changed files with 10035 additions and 3978 deletions

56
test-simple-menu.js Normal file
View File

@@ -0,0 +1,56 @@
import { chromium } from 'playwright';
(async () => {
const browser = await chromium.launch({ headless: false });
const page = await browser.newPage();
try {
console.log('访问系统...');
await page.goto('http://localhost:5670');
// 等待页面加载
await page.waitForTimeout(5000);
// 尝试获取当前URL
console.log('当前URL:', page.url());
// 如果在登录页,执行登录
if (page.url().includes('login')) {
console.log('需要登录...');
// 等待登录表单出现
await page.waitForSelector('input[type="text"]', { timeout: 5000 });
// 使用更通用的选择器
const usernameInput = await page.locator('input[type="text"]').first();
const passwordInput = await page.locator('input[type="password"]').first();
const loginButton = await page.locator('button[type="submit"]').first();
await usernameInput.fill('admin');
await passwordInput.fill('111111');
await loginButton.click();
await page.waitForTimeout(5000);
}
console.log('检查菜单...');
// 获取所有菜单文本
const menuTexts = await page.locator('.ant-menu-title-content').allTextContents();
console.log('\n当前菜单:');
menuTexts.forEach((text, i) => {
console.log(`${i+1}. ${text}`);
});
// 截图
await page.screenshot({ path: 'simple-menu-test.png', fullPage: true });
console.log('\n截图: simple-menu-test.png');
} catch (error) {
console.error('错误:', error.message);
} finally {
await page.waitForTimeout(3000);
await browser.close();
}
})();