From bf44ae2dd15b2b139ce56b1ba1294fdfd220c763 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期三, 25 十二月 2024 17:13:34 +0800
Subject: [PATCH] #问题修复 1. 列表字段空间调整 2. 地址链接放至配置文件中 3. 定时任务执行完成后,状态修改补上 4. 修改状态时,需校验上一步状态是否对应 5. 下发任务完成后,查看是否修改状态为2 7. 任务状态列表,数据显示不全问题修复 8. 波次列表,表格合并问题导致多订单出库问题

---
 zy-asrs-flow/src/utils/tree-util.js |   42 +++++++++++++++++++++++++++---------------
 1 files changed, 27 insertions(+), 15 deletions(-)

diff --git a/zy-asrs-flow/src/utils/tree-util.js b/zy-asrs-flow/src/utils/tree-util.js
index 3c9f43b..9fb1472 100644
--- a/zy-asrs-flow/src/utils/tree-util.js
+++ b/zy-asrs-flow/src/utils/tree-util.js
@@ -1,15 +1,27 @@
-export function transformTreeData(originalData) {
-  return originalData.map(item => {
-    let newItem = {
-      key: item.id,
-      title: item.name,
-      value: item.id,
-      // 鍏跺畠闇�瑕佺殑灞炴��...
-    };
-    if (item.children && item.children.length > 0) {
-      newItem.children = transformTreeData(item.children);
-    }
-
-    return newItem;
-  });
-}
+
+export function transformTreeData(originalData) {
+  return originalData.map(item => {
+    let newItem = {
+      key: item.id,
+      title: item.name,
+      value: item.id,
+      // 鍏跺畠闇�瑕佺殑灞炴��...
+    };
+    if (item.children && item.children.length > 0) {
+      newItem.children = transformTreeData(item.children);
+    }
+
+    return newItem;
+  });
+}
+
+export function getTreeAllKeys(data) {
+  let keys = [];
+  for (let item of data) {
+      keys.push(item.key);
+      if (item.children) {
+          keys = keys.concat(getTreeAllKeys(item.children));
+      }
+  }
+  return keys;
+}
\ No newline at end of file

--
Gitblit v1.9.1