From c2427c65298db2ea18c9ecc1c1829afe52bdc28e Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期日, 08 十月 2023 11:00:40 +0800
Subject: [PATCH] 整合代码

---
 Source/UBCS-WEB/src/views/integration/systemInfo.vue |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/integration/systemInfo.vue b/Source/UBCS-WEB/src/views/integration/systemInfo.vue
index 215d713..8f9c663 100644
--- a/Source/UBCS-WEB/src/views/integration/systemInfo.vue
+++ b/Source/UBCS-WEB/src/views/integration/systemInfo.vue
@@ -244,21 +244,21 @@
             children: []
           };
           //褰撳墠宸查�夋嫨鏁版嵁鍥炲~
-          if (!record.attributes.selected) {
+          if (record.attributes.selected == 'true') {
             NumberList.push(record.value);
           }
           if (parent) {
-            const existingChild = parent.children.find(child => child.label === record.label);
-            if (existingChild) {
-              record.value = existingChild.value; // 浣跨敤宸插瓨鍦ㄧ殑瀛愯妭鐐圭殑value鍊�
+            const stingChild = parent.children.find(child => child.label === record.label);
+            if (stingChild) {
+              record.value = stingChild.value; // 浣跨敤宸插瓨鍦ㄧ殑瀛愯妭鐐圭殑value鍊�
             } else {
               parent.children.push(record);
               value++;
             }
           } else {
-            const existingRecord = List.find(item => item.label === record.label);
-            if (existingRecord) {
-              record.value = existingRecord.value; // 浣跨敤宸插瓨鍦ㄧ殑椤跺眰鑺傜偣鐨剉alue鍊�
+            const stingRecord = List.find(item => item.label === record.label);
+            if (stingRecord) {
+              record.value = stingRecord.value; // 浣跨敤宸插瓨鍦ㄧ殑椤跺眰鑺傜偣鐨剉alue鍊�
             } else {
               List.push(record);
               value++;
@@ -273,7 +273,7 @@
         for (let item of res.data) {
           traverse(item, null);
         }
-        // console.log('list', List);
+        console.log('list', List);
         this.TreeData = List;
         // this.ModifyProperties(this.TreeData, 'text', 'label');
         // 鏍规嵁this.TreeData鐨勯暱搴﹁绠楀欢杩熸椂闂�

--
Gitblit v1.9.3