From 5a66a6bea00940c40e71ee681c5b47466cdce3db Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期五, 21 十月 2022 14:13:08 +0800
Subject: [PATCH] 修改基础设置违建新增

---
 src/views/operate/baseSetting/illegalBuild/createUser/index.vue |   31 ++++++++++++++++---------------
 1 files changed, 16 insertions(+), 15 deletions(-)

diff --git a/src/views/operate/baseSetting/illegalBuild/createUser/index.vue b/src/views/operate/baseSetting/illegalBuild/createUser/index.vue
index 4cd1a56..7e563b1 100644
--- a/src/views/operate/baseSetting/illegalBuild/createUser/index.vue
+++ b/src/views/operate/baseSetting/illegalBuild/createUser/index.vue
@@ -171,22 +171,23 @@
             if (index === 1) {
                 
             }else{
-                this.parentList = this.addChildren(await this.getTypeThird(), await this.getTypeSecond());
+                this.parentList = await this.getTypeThird()
+                // this.parentList = this.addChildren(await this.getTypeThird(), await this.getTypeSecond());
             }
         },
-        addChildren(parentArr, childArr) {
-            // console.log(parentArr.length,childArr);
-            parentArr.forEach(item => {
-                item.children = [];
-                childArr.forEach(child => {
-                    if (item.id === child.parentId) {
-                        item.children.push(child);
-                    }
-                })
-            })
-            console.log(parentArr);
-            return parentArr;
-        },
+        // addChildren(parentArr, childArr) {
+        //     // console.log(parentArr.length,childArr);
+        //     parentArr.forEach(item => {
+        //         item.children = [];
+        //         childArr.forEach(child => {
+        //             if (item.id === child.parentId) {
+        //                 item.children.push(child);
+        //             }
+        //         })
+        //     })
+        //     console.log(parentArr);
+        //     return parentArr;
+        // },
         handleCheck(data, checked) {
             this.things.parentId = data.name;
             console.log(this.selectOrg.orgsid);
@@ -196,7 +197,7 @@
             if (indexs < 0 && this.selectOrg.orgsid.length === 1 && checked) {
                 this.$message({
                     message: '鍙兘閫夋嫨涓�涓尯鍩燂紒',
-                    type: 'error',
+                    type: 'warning',
                     showClose: true
                 })
                 // 璁剧疆宸查�夋嫨鐨勮妭鐐逛负false 寰堥噸瑕�

--
Gitblit v1.8.0