From c2e8526f8f857be5e3a8c6f2b39c5efd424de33e Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 15 十月 2026 11:50:24 +0800
Subject: [PATCH] refactor(auth): 优化认证逻辑和界面组件结构
---
src/components/quality/engine/report-evaluator.ts | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/src/components/quality/engine/report-evaluator.ts b/src/components/quality/engine/report-evaluator.ts
index 55b45ac..e91ac54 100644
--- a/src/components/quality/engine/report-evaluator.ts
+++ b/src/components/quality/engine/report-evaluator.ts
@@ -197,6 +197,17 @@
return;
}
+ const hasLimit = item.upperLimit != null || item.lowerLimit != null;
+ if (
+ hasLimit &&
+ (!String(item.actualValue ?? '').trim() || !Number.isFinite(toNumber(item.actualValue)))
+ ) {
+ applyResult(item, undefined);
+ errors.push(
+ `绗� ${index + 1} 椤广��${item.itemName ?? ''}銆嶇己灏戞湁鏁堟暟鍊肩粨鏋滐紝寰呰ˉ娴嬫垨纭鍘熷璁板綍`,
+ );
+ return;
+ }
const byLimit = evaluateByLimit(item);
if (byLimit !== undefined) {
applyResult(item, byLimit ? QUALITY_RESULT.PASS : QUALITY_RESULT.FAIL);
@@ -274,4 +285,4 @@
const node = parseRule(expression);
ruleCache.set(expression, node);
return node;
-}
\ No newline at end of file
+}
--
Gitblit v1.9.3