From 06ba9b2bff6d17ae194f04357add81a5097605a3 Mon Sep 17 00:00:00 2001 From: mac Date: Fri, 10 Jul 2026 23:02:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=B7=E6=96=B0=E6=81=A2=E5=A4=8D?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0+=E7=8A=B6=E6=80=81=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - state.tenant从localStorage恢复(只写不读bug修复) - 状态标签移到总视图后面,增加全部按钮 - 去除总视图按钮 - 版本号 v1.2.0.18 --- static/modules/plan.js | 2 +- static/modules/utils.js | 2 +- templates/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/modules/plan.js b/static/modules/plan.js index 62f2324..0528752 100644 --- a/static/modules/plan.js +++ b/static/modules/plan.js @@ -109,7 +109,7 @@ function renderPlan() { const activeQ = state.planQuarter !== undefined ? state.planQuarter : Math.floor(nowD.getMonth() / 3); const activeMonths = qMonths[activeQ]; const yearOpts = [2024,2025,2026,2027]; - const finHeaderBase = `
|年份:|季度:${qLabels.map((q,i) => ``).join('')}|月度:${activeMonths.map(m => { const ms = `${state.planYear}-${String(m).padStart(2,'0')}`; return ``; }).join('')}|
`; + const finHeaderBase = `
|年份:|季度:${qLabels.map((q,i) => ``).join('')}|月度:${activeMonths.map(m => { const ms = `${state.planYear}-${String(m).padStart(2,'0')}`; return ``; }).join('')}
`; const finAddBtn = ``; const isOverviewMode = false; diff --git a/static/modules/utils.js b/static/modules/utils.js index 8bdc3b9..cc6f352 100644 --- a/static/modules/utils.js +++ b/static/modules/utils.js @@ -3,7 +3,7 @@ const state = { active: "home", data: null, - tenant: "科普·无界", + tenant: localStorage.getItem("opc-active-tenant") || "科普·无界", opFilter: "all", finFilter: "projects", selectedProject: null, diff --git a/templates/index.html b/templates/index.html index b00988d..4ee38e4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -76,7 +76,7 @@
-

OPC Manager v1.2.0.17

+

OPC Manager v1.2.0.18

科普 OPC 工作台