From fa51aad3a794dce49c8954b0ad04e1cf542a0a28 Mon Sep 17 00:00:00 2001 From: HenryDu8133 <813367384@qq.com> Date: Sat, 8 Aug 2026 09:51:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20=E7=BB=9F=E4=B8=80UI=E8=A7=84?= =?UTF-8?q?=E8=8C=83=E5=B9=B6=E7=A7=BB=E9=99=A4=E5=A4=9A=E4=BD=99=E8=8F=9C?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 从 /admin 侧边栏彻底移除了多余的“站点管理”导航项和对应的引导页,统一仅在 /route 中维护。 2. 修复了 ticket-route.js 中添加、编辑、删除站点后列表不同步的问题,通过补充 await fetchData() 实现实时更新。 3. 更新 style.css 将所有 button 和 .btn 的 border-radius 设置为 0 !important,统一取消所有按钮圆角。 --- web/index.html | 18 ++---------------- web/style.css | 2 +- web/ticket-route.html | 2 +- web/ticket-route.js | 7 ++++++- 4 files changed, 10 insertions(+), 19 deletions(-) diff --git a/web/index.html b/web/index.html index 8db38dc..0327c76 100644 --- a/web/index.html +++ b/web/index.html @@ -7,7 +7,7 @@ 控制台|FSE铁路运输票务系统 - + @@ -77,10 +77,6 @@ @click="currentView = 'vouchers'"> 凭证记录 - - -
-
- -

站点与线路管理已迁移

-

为了提供更专业的线路拓扑编辑和站点全局管理体验,该功能已被迁移至独立的「线路规划后台」。

- - 前往 线路规划系统 - -
-
+
diff --git a/web/style.css b/web/style.css index 63574d4..be55a4c 100644 --- a/web/style.css +++ b/web/style.css @@ -255,7 +255,7 @@ button, .btn { align-items: center; justify-content: center; padding: 8px 16px; - border-radius: 0; + border-radius: 0 !important; border: 1px solid var(--border); background-color: transparent; color: var(--text); diff --git a/web/ticket-route.html b/web/ticket-route.html index 6068ea2..9ff7bf3 100644 --- a/web/ticket-route.html +++ b/web/ticket-route.html @@ -8,7 +8,7 @@ 线路规划|FSE铁路运输票务系统 - + diff --git a/web/ticket-route.js b/web/ticket-route.js index 2785a2f..d3d1e73 100644 --- a/web/ticket-route.js +++ b/web/ticket-route.js @@ -649,6 +649,7 @@ createApp({ })) return; await runMutation(async () => { await requestJson(`/api/stations/${encodeURIComponent(code)}`, { method: 'DELETE' }, { expectOk: true }); + await fetchData(); }); }; @@ -712,7 +713,10 @@ createApp({ } Object.assign(newStation, { code: '', name: '', en_name: '' }); - showAddStation.value = false; + if (currentView.value === 'stations') { + showAddStation.value = false; + } + await fetchData(); }); }; @@ -775,6 +779,7 @@ createApp({ await runMutation(async () => { await requestJson(`/api/stations/${encodeURIComponent(oldCode)}`, { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: JSON.stringify(payload) }, { expectOk: true }); showStationModal.value = false; + await fetchData(); }); };