统一方案类型命名为小写形式

This commit is contained in:
2026-04-24 09:19:42 +08:00
parent 4f195b0e06
commit f207e2b192
3 changed files with 4 additions and 4 deletions
@@ -396,7 +396,7 @@ const emptyStateMessages: Record<
const SCADADataPanel: React.FC<SCADADataPanelProps> = ({ const SCADADataPanel: React.FC<SCADADataPanelProps> = ({
featureInfos, featureInfos,
type = "none", type = "none",
scheme_type = "burst_Analysis", scheme_type = "burst_analysis",
scheme_name, scheme_name,
defaultTab = "chart", defaultTab = "chart",
fractionDigits = 2, fractionDigits = 2,
@@ -47,7 +47,7 @@ const Timeline: React.FC<TimelineProps> = ({
timeRange, timeRange,
disableDateSelection = false, disableDateSelection = false,
schemeName = "", schemeName = "",
schemeType = "burst_Analysis", schemeType = "burst_analysis",
}) => { }) => {
const data = useData(); const data = useData();
const fallbackSelectedDateRef = useRef(new Date()); const fallbackSelectedDateRef = useRef(new Date());
@@ -921,7 +921,7 @@ const Toolbar: React.FC<ToolbarProps> = ({
}) })
.filter(Boolean) as [string, string][]; .filter(Boolean) as [string, string][];
})()} })()}
scheme_type="burst_Analysis" scheme_type="burst_analysis"
scheme_name={schemeName} scheme_name={schemeName}
type={chatPanelFeatureInfos ? chatPanelType : (queryType as "realtime" | "scheme" | "none")} type={chatPanelFeatureInfos ? chatPanelType : (queryType as "realtime" | "scheme" | "none")}
start_time={chatPanelTimeRange?.startTime} start_time={chatPanelTimeRange?.startTime}
@@ -965,7 +965,7 @@ const Toolbar: React.FC<ToolbarProps> = ({
}) })
.filter(Boolean) as [string, string][]; .filter(Boolean) as [string, string][];
})()} })()}
scheme_type="burst_Analysis" scheme_type="burst_analysis"
scheme_name={schemeName} scheme_name={schemeName}
type={chatPanelFeatureInfos ? chatPanelType : (queryType as "realtime" | "scheme" | "none")} type={chatPanelFeatureInfos ? chatPanelType : (queryType as "realtime" | "scheme" | "none")}
start_time={chatPanelTimeRange?.startTime} start_time={chatPanelTimeRange?.startTime}