From 968c0bc2bed9101037891984b63186728a468c73 Mon Sep 17 00:00:00 2001 From: 3452078359-xuexue <3452078359@qq.com> Date: Wed, 26 Aug 2026 01:16:38 -0700 Subject: [PATCH] refactor: simplify knowledge map option --- admin-web/src/ProjectLanding.tsx | 41 ++++---------------------------- admin-web/src/styles.css | 29 ---------------------- 2 files changed, 4 insertions(+), 66 deletions(-) diff --git a/admin-web/src/ProjectLanding.tsx b/admin-web/src/ProjectLanding.tsx index 15a6ea2..41c975d 100644 --- a/admin-web/src/ProjectLanding.tsx +++ b/admin-web/src/ProjectLanding.tsx @@ -10,7 +10,6 @@ import { Input, List, Modal, - Select, Space, Spin, Steps, @@ -25,7 +24,6 @@ import { CheckCircleOutlined, DeleteOutlined, EditOutlined, - EnvironmentOutlined, FolderOutlined, InboxOutlined, MoreOutlined, @@ -48,7 +46,6 @@ import { type ProjectDeletionImpact, type ProjectSummary, type GraphReleaseSummary, - type SpatialMapScope, } from "./api"; import { mergeProjectCatalogItem, @@ -62,7 +59,6 @@ type BasicProjectValues = { project_id: string; display_name: string; map_enabled: boolean; - map_scope: SpatialMapScope; }; type GraphImportData = { @@ -79,11 +75,6 @@ const SAFE_RESOURCE_ID_PATTERN = /^[A-Za-z0-9][A-Za-z0-9_.-]{0,127}$/; const SAFE_SCHEMA_IDENTIFIER_PATTERN = /^[A-Za-z_][A-Za-z0-9_]{0,127}$/; const SAFE_SCHEMA_VERSION_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/; -const MAP_SCOPE_LABELS: Record = { - libo: "荔波县知识地图", - guizhou: "贵州省知识地图", -}; - const FIELD_TYPE_ALIASES: Record = { str: "string", text: "string", @@ -726,7 +717,6 @@ export default function ProjectLanding() { project_id: values.project_id.trim(), display_name: values.display_name.trim(), map_enabled: Boolean(values.map_enabled), - map_scope: values.map_scope || "libo", }; setCheckingBasics(true); try { @@ -837,7 +827,7 @@ export default function ProjectLanding() { display_name: basicValues.display_name, spatial_map: { enabled: basicValues.map_enabled, - scope: basicValues.map_scope, + scope: "libo", }, schema: schemaResult.value, graph_data: graphResult.value, @@ -1071,7 +1061,7 @@ export default function ProjectLanding() { layout="vertical" className="project-basic-form" disabled={checkingBasics} - initialValues={{ map_enabled: false, map_scope: "libo" }} + initialValues={{ map_enabled: false }} >
-
- -
- 在数据大屏显示知识地图 - - 适用于包含经纬度的酒店、美食、景点、交通等空间数据;与项目英文标识无关。 - -
-
+ 知识地图
- previous.map_enabled !== current.map_enabled}> - {({ getFieldValue }) => getFieldValue("map_enabled") ? ( - -