From 76a73d2a86d7c36a70637d1600655c6952d5793e Mon Sep 17 00:00:00 2001 From: Nixevol Date: Thu, 25 Jun 2026 02:40:30 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=95=B0=E6=8D=AE=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E9=80=89=E6=8B=A9=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/project_context.md | 6 ++ frontend/src/components/DatabasePanel.vue | 102 +++++++++++++++++++--- 2 files changed, 97 insertions(+), 11 deletions(-) diff --git a/docs/project_context.md b/docs/project_context.md index ef56744..e961e29 100644 --- a/docs/project_context.md +++ b/docs/project_context.md @@ -724,3 +724,9 @@ - 后端数据库接口新增 `database_source` 参数,`main` 保持原有直连 MySQL / Metrix 仓库逻辑,`cell_data` 使用 `CellData.MySQL_DBInfo` 创建独立 MySQL 仓库。表列表、表结构、分页数据、清空、删除、删除全部、执行 SQL 和导出均按该参数选择数据库。 - CellData 数据库当前只支持直连 MySQL 配置;Metrix 仓库模式只影响主数据库。 - 验证:`python -m compileall -q app` 通过;`frontend` `npm run build` 通过(仅既有大 chunk 提示);构建产物与 Python 缓存已清理。 + +## 2026-06-25:数据管理数据库选择改为弹窗列表 + +- 数据管理页不再用下拉框切换数据库,改为表标题旁的图标按钮打开「选择数据库」弹窗;弹窗内为固定高度列表,超出高度滚动。 +- 选择项仍来自主数据库与 CellData 数据库配置,后续新增更多数据库时继续扩展同一列表,不占用侧栏宽度。 +- 验证:`frontend` `npm run build` 通过(仅既有大 chunk 提示);构建产物已清理。 diff --git a/frontend/src/components/DatabasePanel.vue b/frontend/src/components/DatabasePanel.vue index 550f5e3..aac9365 100644 --- a/frontend/src/components/DatabasePanel.vue +++ b/frontend/src/components/DatabasePanel.vue @@ -5,13 +5,19 @@

表

- {{ selectedDatabaseSourceLabel }} + + aria-label="切换数据库" + title="切换数据库" + @click="databaseSourceModalVisible = true" + > + +
+ + + + + +