From e2ffe9683ef007a45afbcdd897985d64cdcc7391 Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期四, 24 十一月 2022 11:26:31 +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