From 61282c106068d9a792e1b084746e2d6b9a997b99 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 15 九月 2026 15:29:52 +0800
Subject: [PATCH] 新疆——新聚lims 1.不需要判定要求、检测方法、检验结果、结论 2.设备不需要绑定每个检验子项,只需要绑定当前的的检验委托单 3.判定结果检测的时候不要出现,复核的时候才判断选择最终结果是否合格

---
 src/utils/standardTree.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/utils/standardTree.js b/src/utils/standardTree.js
index 458f12d..c69f81e 100644
--- a/src/utils/standardTree.js
+++ b/src/utils/standardTree.js
@@ -1,7 +1,8 @@
 /**
  * 鏍囧噯搴撴爲閫氱敤宸ュ叿
  *
- * 灞傜骇涓嶅浐瀹氾細children 涓� null / undefined / 绌烘暟缁勭殑鑺傜偣鍗充负銆屾爣鍑嗐�嶅彾瀛愩��
+ * 鏍囧噯搴撳浐瀹氫袱绾э細code=[1] 涓鸿涓氾紝code=[2] 涓烘爣鍑嗐��
+ * 鍏煎娌℃湁 code 鐨勬棫鎺ュ彛鏁版嵁鏃讹紝鍐嶅洖閫�鍒� children 鍒ゆ柇鍙跺瓙銆�
  * 鏍戣矾寰勭粺涓�鐢� " - " 杩炴帴锛屾牸寮忎笌鍘嗗彶瀹炵幇閫愬瓧鑺備繚鎸佷竴鑷达細
  * 椤跺眰鐪熷疄鑺傜偣鐨� parent 鏄� Element UI 鐨勮櫄鎷熸牴锛屽洜姝ゆ牴鑺傜偣浼氳繘鍏ヨ矾寰勩��
  */
@@ -9,6 +10,8 @@
 // 鏄惁鍙跺瓙锛堟爣鍑嗭級
 export function isLeaf(data) {
   if (!data) return true;
+  if (data.code === '[1]') return false;
+  if (data.code === '[2]') return true;
   const children = data.children;
   return children === null || children === undefined || children.length === 0;
 }

--
Gitblit v1.9.3