From 38d246eb7b7f4aed3f8348f754a4b79e910e3820 Mon Sep 17 00:00:00 2001 From: Huarch Date: Thu, 30 Jul 2026 18:15:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(dma):=20=E6=94=BE=E5=AE=BD=E6=80=BB?= =?UTF-8?q?=E6=BC=8F=E6=8D=9F=E6=B5=81=E9=87=8F=E4=B8=8B=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../olmap/DMALeakDetection/AnalysisParameters.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/olmap/DMALeakDetection/AnalysisParameters.tsx b/src/components/olmap/DMALeakDetection/AnalysisParameters.tsx index c79b8a6..33c373c 100644 --- a/src/components/olmap/DMALeakDetection/AnalysisParameters.tsx +++ b/src/components/olmap/DMALeakDetection/AnalysisParameters.tsx @@ -82,7 +82,7 @@ const AnalysisParameters: React.FC = ({ const parsedQSum = Number(qSumInput); const qSumIsValid = - qSumInput.trim() !== "" && Number.isFinite(parsedQSum) && parsedQSum >= 360; + qSumInput.trim() !== "" && Number.isFinite(parsedQSum) && parsedQSum >= 0; const isValid = useMemo(() => { if (!schemeName.trim() || !startTime || !endTime) return false; @@ -94,7 +94,7 @@ const AnalysisParameters: React.FC = ({ open?.({ type: "error", message: "请完善参数并确认时间范围合法", - description: !qSumIsValid ? `总漏损流量需不小于 360 ${FLOW_DISPLAY_UNIT}` : undefined, + description: !qSumIsValid ? `总漏损流量不能小于 0 ${FLOW_DISPLAY_UNIT}` : undefined, }); return; } @@ -235,11 +235,11 @@ const AnalysisParameters: React.FC = ({ setFormField("qSum", value); } }} - inputProps={{ min: 360, step: 10 }} + inputProps={{ min: 0, step: 10 }} error={qSumInput.trim() !== "" && !qSumIsValid} helperText={ qSumInput.trim() !== "" && !qSumIsValid - ? `需不小于 360 ${FLOW_DISPLAY_UNIT}` + ? `不能小于 0 ${FLOW_DISPLAY_UNIT}` : " " } />