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:
@@ -59,22 +59,14 @@ const dashboardMenus = [
|
||||
},
|
||||
name: 'Dashboard',
|
||||
path: '/dashboard',
|
||||
redirect: '/analytics',
|
||||
redirect: '/workspace',
|
||||
children: [
|
||||
{
|
||||
name: 'Analytics',
|
||||
path: '/analytics',
|
||||
component: '/dashboard/analytics/index',
|
||||
meta: {
|
||||
affixTab: true,
|
||||
title: 'page.dashboard.analytics',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Workspace',
|
||||
path: '/workspace',
|
||||
component: '/dashboard/workspace/index',
|
||||
meta: {
|
||||
affixTab: true,
|
||||
title: 'page.dashboard.workspace',
|
||||
},
|
||||
},
|
||||
@@ -82,6 +74,159 @@ const dashboardMenus = [
|
||||
},
|
||||
];
|
||||
|
||||
const analyticsMenus = [
|
||||
{
|
||||
meta: {
|
||||
order: 2,
|
||||
title: '数据分析',
|
||||
icon: 'ant-design:bar-chart-outlined',
|
||||
},
|
||||
name: 'Analytics',
|
||||
path: '/analytics',
|
||||
redirect: '/analytics/overview',
|
||||
children: [
|
||||
{
|
||||
name: 'AnalyticsOverview',
|
||||
path: '/analytics/overview',
|
||||
component: '/analytics/overview/index',
|
||||
meta: {
|
||||
title: '数据概览',
|
||||
icon: 'ant-design:dashboard-outlined',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'AnalyticsTrends',
|
||||
path: '/analytics/trends',
|
||||
component: '/analytics/trends/index',
|
||||
meta: {
|
||||
title: '趋势分析',
|
||||
icon: 'ant-design:line-chart-outlined',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'AnalyticsReports',
|
||||
path: '/analytics/reports',
|
||||
meta: {
|
||||
title: '报表',
|
||||
icon: 'ant-design:file-text-outlined',
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'DailyReport',
|
||||
path: '/analytics/reports/daily',
|
||||
component: '/analytics/reports/daily',
|
||||
meta: {
|
||||
title: '日报表',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'MonthlyReport',
|
||||
path: '/analytics/reports/monthly',
|
||||
component: '/analytics/reports/monthly',
|
||||
meta: {
|
||||
title: '月报表',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'YearlyReport',
|
||||
path: '/analytics/reports/yearly',
|
||||
component: '/analytics/reports/yearly',
|
||||
meta: {
|
||||
title: '年报表',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'CustomReport',
|
||||
path: '/analytics/reports/custom',
|
||||
component: '/analytics/reports/custom',
|
||||
meta: {
|
||||
title: '自定义报表',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
const financeMenus = [
|
||||
{
|
||||
meta: {
|
||||
order: 3,
|
||||
title: '财务管理',
|
||||
icon: 'ant-design:dollar-circle-outlined',
|
||||
},
|
||||
name: 'Finance',
|
||||
path: '/finance',
|
||||
redirect: '/finance/dashboard',
|
||||
children: [
|
||||
{
|
||||
name: 'FinanceDashboard',
|
||||
path: '/finance/dashboard',
|
||||
component: '/finance/dashboard/index',
|
||||
meta: {
|
||||
title: '财务仪表盘',
|
||||
icon: 'ant-design:dashboard-outlined',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'FinanceTransaction',
|
||||
path: '/finance/transaction',
|
||||
component: '/finance/transaction/index',
|
||||
meta: {
|
||||
title: '交易管理',
|
||||
icon: 'ant-design:transaction-outlined',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'FinanceCategory',
|
||||
path: '/finance/category',
|
||||
component: '/finance/category/index',
|
||||
meta: {
|
||||
title: '分类管理',
|
||||
icon: 'ant-design:appstore-outlined',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'FinancePerson',
|
||||
path: '/finance/person',
|
||||
component: '/finance/person/index',
|
||||
meta: {
|
||||
title: '人员管理',
|
||||
icon: 'ant-design:user-outlined',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'FinanceLoan',
|
||||
path: '/finance/loan',
|
||||
component: '/finance/loan/index',
|
||||
meta: {
|
||||
title: '贷款管理',
|
||||
icon: 'ant-design:bank-outlined',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'FinanceBudget',
|
||||
path: '/finance/budget',
|
||||
component: '/finance/budget/index',
|
||||
meta: {
|
||||
title: '预算管理',
|
||||
icon: 'ant-design:wallet-outlined',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'FinanceTag',
|
||||
path: '/finance/tag',
|
||||
component: '/finance/tag/index',
|
||||
meta: {
|
||||
title: '标签管理',
|
||||
icon: 'ant-design:tags-outlined',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
const createDemosMenus = (role: 'admin' | 'super' | 'user') => {
|
||||
const roleWithMenus = {
|
||||
admin: {
|
||||
@@ -173,15 +318,15 @@ const createDemosMenus = (role: 'admin' | 'super' | 'user') => {
|
||||
|
||||
export const MOCK_MENUS = [
|
||||
{
|
||||
menus: [...dashboardMenus, ...createDemosMenus('super')],
|
||||
menus: [...dashboardMenus, ...analyticsMenus, ...financeMenus, ...createDemosMenus('super')],
|
||||
username: 'vben',
|
||||
},
|
||||
{
|
||||
menus: [...dashboardMenus, ...createDemosMenus('admin')],
|
||||
menus: [...dashboardMenus, ...analyticsMenus, ...financeMenus, ...createDemosMenus('admin')],
|
||||
username: 'admin',
|
||||
},
|
||||
{
|
||||
menus: [...dashboardMenus, ...createDemosMenus('user')],
|
||||
menus: [...dashboardMenus, ...analyticsMenus, ...financeMenus, ...createDemosMenus('user')],
|
||||
username: 'jack',
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user