diff --git a/apps/frontend/src/pages/admin/platform/AdminPlatformFulfillmentPage.tsx b/apps/frontend/src/pages/admin/platform/AdminPlatformFulfillmentPage.tsx index 8dbb6ac2..cda4b931 100644 --- a/apps/frontend/src/pages/admin/platform/AdminPlatformFulfillmentPage.tsx +++ b/apps/frontend/src/pages/admin/platform/AdminPlatformFulfillmentPage.tsx @@ -119,7 +119,6 @@ function FulfillmentRoutingPanel() { const [saving, setSaving] = useState(false) const [previewing, setPreviewing] = useState(false) const [errorMessage, setErrorMessage] = useState('') - const [filePath, setFilePath] = useState('') const [enabled, setEnabled] = useState(true) const [priority, setPriority] = useState(['kuaishou_ct_assisted', 'kuaishou_feifei']) const [unmatchedExecutorKey, setUnmatchedExecutorKey] = useState('') @@ -202,7 +201,6 @@ function FulfillmentRoutingPanel() { } function hydrateConfig(data: AdminFulfillmentRoutingConfig) { - setFilePath(data.filePath || '') setEnabled(data.enabled !== false) setPriority(normalizeRoutingPriority(data.defaultExecutorPriority)) setUnmatchedExecutorKey(data.unmatchedExecutorKey || '') @@ -276,7 +274,7 @@ function FulfillmentRoutingPanel() { {errorMessage ? : null}
- + ([]) const [matchInput, setMatchInput] = useState('') const [matchResult, setMatchResult] = useState(null) @@ -566,7 +563,6 @@ function KuaishouFeifeiFulfillmentPanel() { } function hydrateConfig(data: AdminKuaishouFeifeiConfigResponse) { - setFilePath(data.filePath || '') setRules( Array.isArray(data.source.productRules) ? data.source.productRules.map((rule) => normalizeFeifeiRule(rule)) @@ -612,14 +608,9 @@ function KuaishouFeifeiFulfillmentPanel() {
{errorMessage ? : null} -
+
- @@ -682,12 +681,9 @@ function NotificationPanel({ - {scheduledJobs.filePath || '默认配置'} - - + } > @@ -1426,18 +1422,15 @@ function KuaishouIndustryPanel({ - {config.filePath || '默认配置'} - - + } >
@@ -1671,11 +1664,10 @@ function KuaishouFeifeiPlatformPanel({ return (
-
+
-
- {config.filePath || '默认配置'} updateConfig({ enabled })} /> diff --git a/apps/frontend/src/styles/main.css b/apps/frontend/src/styles/main.css index 489141e4..a51767b3 100644 --- a/apps/frontend/src/styles/main.css +++ b/apps/frontend/src/styles/main.css @@ -1012,6 +1012,10 @@ select { gap: 12px; } +.metric-grid.three { + grid-template-columns: repeat(3, minmax(0, 1fr)); +} + .metric-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } @@ -1264,6 +1268,7 @@ select { margin-bottom: 0; } + .metric-grid.three, .metric-grid.four, .metric-grid.five, .platform-form-grid,