From 08b2cb35be1369c61250fce7dcb78d06dcf6a9cf Mon Sep 17 00:00:00 2001 From: Nixevol Date: Fri, 30 Oct 2026 17:53:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=BB=E5=8A=A1=E5=86=99=E6=B8=85?= =?UTF-8?q?=E8=BF=9B=E5=BA=A6=EF=BC=8C=E8=AE=BE=E7=BD=AE=E5=92=8C=E9=87=87?= =?UTF-8?q?=E9=9B=86=E6=9B=B4=E5=A5=BD=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/api/http.py | 2 + web/src/App.vue | 10 +- web/src/features/admin/SettingsView.vue | 26 ++++- web/src/features/admin/SourcesView.vue | 8 +- web/src/features/auth/LoginView.vue | 12 +-- web/src/features/user/TasksView.vue | 121 ++++++++++++++++++++---- web/src/styles.css | 20 +++- 7 files changed, 165 insertions(+), 34 deletions(-) diff --git a/backend/app/api/http.py b/backend/app/api/http.py index 8751bc3..1ed867b 100644 --- a/backend/app/api/http.py +++ b/backend/app/api/http.py @@ -496,6 +496,8 @@ def _public_task(task: ExportTask) -> dict: "status": task.status, "format": task.file_format, "cellKey": (task.params or {}).get("cellKey") or "", + "start": (task.params or {}).get("start") or "", + "end": (task.params or {}).get("end") or "", "error": task.error, "createdAt": task.created_at.isoformat() if task.created_at else "", } diff --git a/web/src/App.vue b/web/src/App.vue index ce97cf8..4ae279c 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -31,10 +31,18 @@ const overrides = computed(() => ({ bodyColor: palette.value.bg, cardColor: palette.value.panel, textColor2: palette.value.ink, - borderColor: palette.value.line, + textColor3: isDark.value ? "#C9D1D9" : "#57606A", + placeholderColor: isDark.value ? "#C9D1D9" : "#57606A", + borderColor: isDark.value ? "#6E7681" : "#D0D7DE", fontFamily: '"Segoe UI", "Microsoft YaHei", sans-serif', borderRadius: "3px", }, + Input: { + placeholderColor: isDark.value ? "#C9D1D9" : "#57606A", + border: isDark.value ? "1px solid #6E7681" : "1px solid #D0D7DE", + borderHover: isDark.value ? "1px solid #C9D1D9" : "1px solid #57606A", + borderFocus: "1px solid #1F6FEB", + }, })); diff --git a/web/src/features/admin/SettingsView.vue b/web/src/features/admin/SettingsView.vue index 92f2a22..06d0094 100644 --- a/web/src/features/admin/SettingsView.vue +++ b/web/src/features/admin/SettingsView.vue @@ -1,17 +1,33 @@ diff --git a/web/src/styles.css b/web/src/styles.css index 2920bc2..4f83c9c 100644 --- a/web/src/styles.css +++ b/web/src/styles.css @@ -144,7 +144,25 @@ button, input, select { font: inherit; } } .form-row .n-input, .form-row .n-select, -.form-row .n-input-number { width: 100%; } +.form-row .n-input-number, +.form-row .n-date-picker { width: 100%; } +.field-error { margin: 4px 0 0; color: var(--danger); font-size: 12px; } +.form-section { + margin: 14px 0 8px; + color: var(--muted); + font-size: 12px; + font-weight: 650; +} +.hint-mark { + display: inline-grid; + place-items: center; + width: 16px; + height: 16px; + margin-left: 4px; + color: var(--muted); + vertical-align: -2px; + cursor: help; +} .late { color: var(--danger); } .settings-form { height: 100%;