From 94b9f25938894a96035fccb9f37514f99f86d61a Mon Sep 17 00:00:00 2001 From: mac Date: Sat, 11 Jul 2026 12:31:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=80=BB=E8=A7=88=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E5=8F=B0tab=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除hidden class避免CSS覆盖style.display - 总览模式下隐藏部门和预算/已发生tab - 只显示预算总览和发生总览 - 版本号 v1.2.0.25 --- static/modules/utils.js | 4 ++-- templates/index.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/static/modules/utils.js b/static/modules/utils.js index f5d98ca..0eeba7a 100644 --- a/static/modules/utils.js +++ b/static/modules/utils.js @@ -121,7 +121,7 @@ function renderTable(headers, rows, rowClicks) { } var _loadingSteps = [ - { fn: 'renderHome', label: '正在加载首页仪表盘(指标卡片+图表)', skip: function() { return state.tenant !== '总览'; } }, + { fn: 'renderHome', label: '正在加载首页仪表盘(指标卡片+图表)', skip: function() { return true; } }, { fn: 'renderOverviewPlan', label: '正在加载预算总览', skip: function() { return state.tenant !== '总览'; } }, { fn: 'renderOverviewFinance', label: '正在加载发生总览', skip: function() { return state.tenant !== '总览'; } }, { fn: 'renderProjects', label: '正在加载业务机会列表' }, @@ -282,7 +282,7 @@ function updateSidebarTabs() { document.querySelectorAll(".sidebar-tab").forEach((btn) => { const tab = btn.dataset.tab; if (isOverview) { - btn.style.display = (tab === "home" || tab === "overview_plan" || tab === "overview_finance") ? "" : "none"; + btn.style.display = (tab === "overview_plan" || tab === "overview_finance") ? "" : "none"; } else { btn.style.display = (tab === "overview_plan" || tab === "overview_finance" || tab === "home") ? "none" : ""; } diff --git a/templates/index.html b/templates/index.html index eccf9bc..0b5508a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -53,11 +53,11 @@ 已发生 -