From 31571f12b0a7048d778119f0b24f0965d43c8049 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Mon, 6 Jul 2026 19:04:02 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=B0=83=E6=95=B4=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=8D=A1=E7=89=87=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aidocs/project_context.md | 1 + apps/admin/src/views/Settings.vue | 88 ++++++++++++++++--------------- 2 files changed, 47 insertions(+), 42 deletions(-) diff --git a/aidocs/project_context.md b/aidocs/project_context.md index 406c1a5..f6dcded 100644 --- a/aidocs/project_context.md +++ b/aidocs/project_context.md @@ -199,3 +199,4 @@ - 文案残留:`apps/client/src/locales/*` 仍保留 `privacy.note`,但当前页面不显示底部隐私说明;若按合规要求恢复,需要在 `Trace.vue` 重新渲染对应文案。 - 天河链测试存证接入(2026-07-06):根据语雀/Apifox 文档,当前平台先接 `POST /api/v2/nfr/upload` 数字商品元数据上链存储接口,默认测试域名 `https://test.api.tichain.tianhecloud.com`,正式域名 `https://api.tichain.tianhecloud.com`。系统设置新增区块链存证卡片,可切换 `mock/tianhe`、测试/正式/自定义环境,并配置 `appId/appKey/userId/userKey`;`BlockchainService` 每次上链动态读取系统设置并以 `.env` 兜底,无需重启即可切换。`AttestationService` 创建 proof 时保存本次作品/追溯码/批次/出库摘要到 `rawResponse.requestMeta`,`OnchainProcessor` 调 provider 时上传该 JSON 元数据文件,成功后保存天河链返回的哈希、存证链接、上链时间和原始响应,失败时保留错误信息。出库 ZIP 模板和导入流程不再包含“上链哈希/上链时间/区块高度”列,避免绕过链上接口手工登记。 +- 系统设置布局微调(2026-07-06):后台 `Settings.vue` 的基础设置区改为三列卡片:左侧平台设置,中间日志设置+备份策略,右侧区块链存证;避免区块链配置夹在日志和备份之间打断阅读,同时保持保存按钮在设置卡片组右上角。 diff --git a/apps/admin/src/views/Settings.vue b/apps/admin/src/views/Settings.vue index 5d1d865..6f77c2b 100644 --- a/apps/admin/src/views/Settings.vue +++ b/apps/admin/src/views/Settings.vue @@ -64,45 +64,6 @@ -
-
{{ t('pages.settings.blockchainSettings') }}
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
-
{{ t('pages.settings.backupPolicy') }}
@@ -122,6 +83,45 @@
+ +
+
{{ t('pages.settings.blockchainSettings') }}
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
@@ -288,11 +288,12 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url | .settings-form { position: relative; flex: 0 0 auto; - width: 912px; + width: 1300px; + max-width: 100%; } .settings-card-grid { display: grid; - grid-template-columns: max-content max-content; + grid-template-columns: 448px 376px 376px; align-items: start; gap: 12px; padding-right: 76px; @@ -305,6 +306,9 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url | .platform-card { width: 448px; } +.blockchain-card { + width: 376px; +} .settings-card { overflow: hidden; border: 1px solid var(--n-border-color); @@ -451,7 +455,7 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url | min-width: 0; } .settings-card-grid { - grid-template-columns: max-content max-content; + grid-template-columns: 448px 376px 376px; } .settings-save { right: 0;