From cccf898581b27258a9110930cd52f40cac36cf25 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期五, 25 十一月 2022 09:50:58 +0800
Subject: [PATCH] 文书路由修改

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

diff --git a/src/views/operate/baseSetting/illegalBuild/createUser/index.vue b/src/views/operate/baseSetting/illegalBuild/createUser/index.vue
index 4cd1a56..db5f524 100644
--- a/src/views/operate/baseSetting/illegalBuild/createUser/index.vue
+++ b/src/views/operate/baseSetting/illegalBuild/createUser/index.vue
@@ -147,7 +147,6 @@
                         }
                     })
                         .then(res => {
-                            console.log(res);
                             if (res.code === 200) {
                                 this.$message({
                                     type: 'success',
@@ -171,22 +170,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 +196,7 @@
             if (indexs < 0 && this.selectOrg.orgsid.length === 1 && checked) {
                 this.$message({
                     message: '鍙兘閫夋嫨涓�涓尯鍩燂紒',
-                    type: 'error',
+                    type: 'warning',
                     showClose: true
                 })
                 // 璁剧疆宸查�夋嫨鐨勮妭鐐逛负false 寰堥噸瑕�

--
Gitblit v1.8.0