feat: 新增「我的」模块 — 绩效+预算月报+已发生月报+重点项目

- 侧边栏新增「我的」tab,排序第一,默认首页
- 模块内容:绩效 → 预算月报 → 已发生月报 → 重点项目
- 绩效:自动统计目标/完成/完成率/评分,年/季/月筛选
- 预算月报/已发生月报:12 月汇总表(7 项核心指标)
- 重点项目:展示 Focus 项目清单,点击跳转定位
- 创建 my.js 模块文件,替换原 performance.js 入口
- 总览工作台不显示「我的」入口
This commit is contained in:
mac
2026-07-30 17:27:38 +08:00
parent ee60b1e5ac
commit 384c80e34d
4 changed files with 234 additions and 11 deletions

View File

@@ -63,6 +63,10 @@
<div class="w-8 h-px bg-slate-700 my-2"></div>
<!-- 导航 Tab 图标 -->
<div class="flex flex-col items-center gap-1 w-14" id="sidebarTabs">
<div class="sidebar-tab" data-tab="my" onclick="switchTab('my')" title="我的">
<i data-lucide="target" style="width:20px;height:20px"></i>
<span class="text-[10px] mt-1">我的</span>
</div>
<div class="sidebar-tab" data-tab="plan" onclick="switchTab('plan')" title="预算">
<i data-lucide="calendar-range" style="width:20px;height:20px"></i>
<span class="text-[10px] mt-1">预算</span>
@@ -87,10 +91,6 @@
<i data-lucide="wallet-cards" style="width:20px;height:20px"></i>
<span class="text-[10px] mt-1">产品</span>
</div>
<div class="sidebar-tab" data-tab="performance" onclick="switchTab('performance')" title="绩效">
<i data-lucide="target" style="width:20px;height:20px"></i>
<span class="text-[10px] mt-1">绩效</span>
</div>
<div class="sidebar-tab" data-tab="proposals" onclick="switchTab('proposals')" title="wiki">
<i data-lucide="package" style="width:20px;height:20px"></i>
<span class="text-[10px] mt-1">wiki</span>
@@ -123,9 +123,9 @@
<section id="projects" class="panel"></section>
<section id="proposals" class="panel"></section>
<section id="products" class="panel"></section>
<section id="performance" class="panel"></section>
<section id="my" class="panel active"></section>
<section id="finance" class="panel"></section>
<section id="plan" class="panel active"></section>
<section id="plan" class="panel"></section>
</main>
</div><!-- 关闭主内容区 -->
</div><!-- 关闭 flex 容器 -->
@@ -152,7 +152,7 @@
<script src="{{ url_for('static', filename='modules/projects.js') }}"></script>
<script src="{{ url_for('static', filename='modules/proposals.js') }}"></script>
<script src="{{ url_for('static', filename='modules/products.js') }}"></script>
<script src="{{ url_for('static', filename='modules/performance.js') }}"></script>
<script src="{{ url_for('static', filename='modules/my.js') }}"></script>
<script src="{{ url_for('static', filename='modules/finance.js') }}"></script>
<script src="{{ url_for('static', filename='modules/expense.js') }}"></script>
<script src="{{ url_for('static', filename='modules/plan.js') }}"></script>