From bc469e094e73cbdd56478d1e51c10093c0a82974 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期二, 13 十二月 2022 14:57:03 +0800
Subject: [PATCH] Merge branch 'master' of http://42.193.1.25:9521/r/sccg_ui
---
src/views/operate/baseSetting/illegalBuild/createUser/index.vue | 23 ++---------------------
1 files changed, 2 insertions(+), 21 deletions(-)
diff --git a/src/views/operate/baseSetting/illegalBuild/createUser/index.vue b/src/views/operate/baseSetting/illegalBuild/createUser/index.vue
index 4cd1a56..82867d6 100644
--- a/src/views/operate/baseSetting/illegalBuild/createUser/index.vue
+++ b/src/views/operate/baseSetting/illegalBuild/createUser/index.vue
@@ -67,7 +67,6 @@
parentId:'',
level:'',
},
- parentList: [],
createIll: {
name: [
{ required: true, trigger: 'blur', validator: checkName }
@@ -128,9 +127,7 @@
},
// 鎻愪氦鏂板杩濊绫诲瀷
handleSubmit() {
- console.log(this.things);
this.$refs.user.validate((valid) => {
- console.log(valid);
if (valid) {
const { things,selectOrg } = this;
this.$axios({
@@ -147,7 +144,6 @@
}
})
.then(res => {
- console.log(res);
if (res.code === 200) {
this.$message({
type: 'success',
@@ -171,32 +167,18 @@
if (index === 1) {
}else{
- this.parentList = this.addChildren(await this.getTypeThird(), await this.getTypeSecond());
+ this.parentList = await this.getTypeThird()
}
- },
- 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);
// 鑾峰彇褰撳墠閫夋嫨鐨刬d鍦ㄦ暟缁勪腑鐨勭储寮�
const indexs = this.selectOrg.orgsid.indexOf(data.id)
// 濡傛灉涓嶅瓨鍦ㄦ暟缁勪腑锛屽苟涓旀暟缁勪腑宸茬粡鏈変竴涓猧d骞朵笖checked涓簍rue鐨勬椂鍊欙紝浠h〃涓嶈兘鍐嶆閫夋嫨銆�
if (indexs < 0 && this.selectOrg.orgsid.length === 1 && checked) {
this.$message({
message: '鍙兘閫夋嫨涓�涓尯鍩燂紒',
- type: 'error',
+ type: 'warning',
showClose: true
})
// 璁剧疆宸查�夋嫨鐨勮妭鐐逛负false 寰堥噸瑕�
@@ -225,7 +207,6 @@
background-color: #09152f;
main {
- // border: 1px solid #fff;
text-align: left;
padding: 0 55px;
background-color: #09152f;
--
Gitblit v1.8.0