From 353f11663cff9aea1e72e505efc2d3697ca0af13 Mon Sep 17 00:00:00 2001 From: mac Date: Wed, 17 Jun 2026 15:41:02 +0800 Subject: [PATCH] =?UTF-8?q?v3.3.0=20=E2=80=94=20=E5=B7=A6=E4=BE=A7?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B7=A5=E4=BD=9C=E5=8F=B0=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E4=BE=A7=E8=BE=B9=E6=A0=8F(=E7=A7=91=E6=99=AE/=E7=A7=91?= =?UTF-8?q?=E7=A0=94/=E5=8C=BB=E6=82=A3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/app.js | 2 ++ static/styles.css | 23 +++++++++++++++++++++++ templates/index.html | 22 +++++++++++++++++++++- 3 files changed, 46 insertions(+), 1 deletion(-) diff --git a/static/app.js b/static/app.js index 278ca7e..a6dc804 100644 --- a/static/app.js +++ b/static/app.js @@ -265,6 +265,8 @@ window.switchTenant = (tenant) => { state.projectView = null; const label = tenant.replace("·无界", ""); document.querySelector("#workspaceTitle").textContent = label + " OPC 工作台"; + document.querySelector("#tenantSelect").value = tenant; + document.querySelectorAll(".workspace-nav-item").forEach(el => el.classList.toggle("active", el.dataset.tenant === tenant)); load(); }; diff --git a/static/styles.css b/static/styles.css index 816ccdd..cebaa5a 100644 --- a/static/styles.css +++ b/static/styles.css @@ -9,6 +9,29 @@ body { justify-content: space-between; } +/* 工作台侧边栏 */ +.workspace-nav-item { + width: 52px; + height: 52px; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + border-radius: 14px; + color: #94a3b8; + cursor: pointer; + transition: all 0.15s; + margin-bottom: 2px; +} +.workspace-nav-item:hover { + color: #e2e8f0; + background: rgba(255,255,255,0.08); +} +.workspace-nav-item.active { + color: #60a5fa; + background: rgba(96,165,250,0.15); +} + .tabs { display: flex; gap: 4px; diff --git a/templates/index.html b/templates/index.html index dcab7c4..df6bc8f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -26,6 +26,25 @@ +
+ + + +
@@ -57,7 +76,8 @@
- +
+