From e3a05337b453b5f09e977f4196930e8c245fb139 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期二, 15 九月 2026 10:47:49 +0800
Subject: [PATCH] fix: 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