From d233d809dd78aa2bf973cdb2ad577dc823eb6ddc Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期二, 28 二月 2023 11:45:36 +0800
Subject: [PATCH] 2023/2/28 肖辉 违建登记添加-身份证正反面调整
---
src/views/systemSetting/baseSetting/department/updateUser/index.vue | 49 +++++++++++++++++++++++++++++++++++++------------
1 files changed, 37 insertions(+), 12 deletions(-)
diff --git a/src/views/systemSetting/baseSetting/department/updateUser/index.vue b/src/views/systemSetting/baseSetting/department/updateUser/index.vue
index 6c14173..17e8f24 100644
--- a/src/views/systemSetting/baseSetting/department/updateUser/index.vue
+++ b/src/views/systemSetting/baseSetting/department/updateUser/index.vue
@@ -33,18 +33,24 @@
item.leader ? 'leader' : '',
]"></i>
</div>
- <label style="font-size: 12px" :class="[item.leader ? 'leader' : '']">{{ item.username }}</label>
+ <label style="font-size: 12px" :class="[item.leader ? 'leader' : 'theMasses']">{{ item.username }}</label>
</div>
</li>
<li class="li-btn" v-if="updateFlag">
<i class="el-icon-plus" @click="openUser = true"></i>
+ </li>
+ <li class="li-btn" v-if="updateFlag">
+ <el-tooltip class="item" effect="light" content="娓呴櫎閫変腑浜哄憳" placement="top" :enterable="false">
+ <i class="el-icon-minus" @click="clrarUser"></i>
+ </el-tooltip>
+
</li>
</ul>
<div class="card" v-if="openUser">
<el-card class="box-card">
<div slot="header" class="myclear">
<span>宸ヤ綔浜哄憳</span>
- <div @click="addUser">纭</div>
+ <div class="department-sub" @click="addUser">纭</div>
</div>
<div class="scrollWrap">
<el-checkbox-group v-model="checkedUser">
@@ -149,12 +155,12 @@
checkedList.forEach((item) => {
arr.push({ leader: item.leader, userId: item.id ? item.id : item.userId });
});
- if (arr.length === 0) {
- this.$message({
- type: 'warning',
- message: '璇烽�夋嫨閮ㄩ棬浜哄憳',
- })
- } else {
+ // if (arr.length === 0) {
+ // this.$message({
+ // type: 'warning',
+ // message: '璇烽�夋嫨閮ㄩ棬浜哄憳',
+ // })
+ // } else {
this.$axios
.post("sccg/depart/update", {
id: user.id,
@@ -162,6 +168,7 @@
parentId: user.parentId === '鏆傛棤涓婄骇閮ㄩ棬' ? 0 : user.parentId,
departDes: user.departDes,
departManagerList: arr,
+ departType: user.departType
})
.then((res) => {
this.$message({
@@ -171,7 +178,7 @@
this.$emit("changeDialog", { flag: false });
this.getDepartList();
});
- }
+ // }
} else {
return false;
}
@@ -200,6 +207,11 @@
}
});
},
+ // 娓呴櫎閫変腑鐢ㄦ埛
+ clrarUser(){
+ this.checkedList=[]
+ },
+
addUser() {
this.checkedList = [];
this.userList.forEach((item) => {
@@ -213,7 +225,7 @@
}
});
});
- this.checkedList[0].leader = true;
+ // this.checkedList[0].leader = true;
console.log(this.checkedList);
this.openUser = false;
},
@@ -315,6 +327,12 @@
width: 36px;
height: 36px;
border-radius: 50%;
+ .el-icon-plus{
+ cursor: pointer;
+ }
+ .el-icon-minus{
+ cursor: pointer;
+ }
}
.card {
@@ -352,6 +370,11 @@
color: #4b9bb7;
display: flex;
justify-content: space-between;
+ .department-sub{
+ cursor: pointer;
+ margin-left: 5px;
+ color: #2f54eb;
+ }
}
.hidebar {
@@ -372,8 +395,10 @@
.leader {
color: red;
}
-
+.theMasses{
+ color: #2f54eb;
+}
.el-input {
width: 280px !important;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.8.0