From e2feb34a33953dc44219c79a3329dfd29142662c Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期五, 22 九月 2023 17:08:04 +0800
Subject: [PATCH] 完整单点登录测试-已完成

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

diff --git a/Source/UBCS-WEB/src/views/integration/systemInfo.vue b/Source/UBCS-WEB/src/views/integration/systemInfo.vue
index d816c87..4d3dee2 100644
--- a/Source/UBCS-WEB/src/views/integration/systemInfo.vue
+++ b/Source/UBCS-WEB/src/views/integration/systemInfo.vue
@@ -59,6 +59,7 @@
     return {
       checkAll: {},
       ParentList: [],
+      ParentRemoveList:[],
       //閬垮厤缂撳瓨
       reload: Math.random(),
       TreeLoading: false,
@@ -135,7 +136,8 @@
       },
     }
   },
-
+  created() {
+  },
   methods: {
     empower() {
       batchAddSave(this.checkAll.oid, this.checkAll.id, this.ParentList).then(res => {
@@ -179,9 +181,23 @@
           }
           console.log(this.ParentList);
         }
-      }else {
-        this.ParentList = this.ParentList.filter(res => res.classifyId !== row.classifyId);
-        console.log(this.ParentList);
+      } else {
+        if (!row.parentId && row.children) {
+          this.ParentRemoveList = this.ParentList.filter(record => record.oid !== row.oid);
+
+          if (row.children && row.children.length > 0) {
+            for (let child of row.children) {
+              this.ParentRemoveList = this.ParentList.filter(record => record.oid !== child.oid);
+
+              if (child.children && child.children.length > 0) {
+                for (let subChild of child.children) {
+                  this.ParentRemoveList = this.ParentList.filter(record => record.oid !== subChild.oid);
+                }
+              }
+            }
+          }
+        }
+        console.log(this.ParentRemoveList)
       }
     },
     //鍒嗙被鎺堟潈

--
Gitblit v1.9.3