This commit is contained in:
wanglei
2022-02-11 12:53:13 +08:00
parent b574261e91
commit 5f1159f16e
3 changed files with 12 additions and 23 deletions

View File

@@ -42,9 +42,9 @@
<h2>
{{ item.dictName }}
</h2>
<img src="./img/down-icon.png" alt="" :class="type == item.dictValue ? 'img-active' : ''">
<img src="./img/down-icon.png" alt="" :class="type === item.dictValue ? 'img-active' : ''">
</div>
<div class="user-list" v-if="type == item.dictValue">
<div class="user-list" v-if="type == item.dictValue && type !== ''">
<div class="user-item" v-for="(e, indexs) in userList" :key="indexs">
<div class="user-img">
<img src="./img/user-img.png" alt="">
@@ -177,18 +177,14 @@ export default {
return idNumber
},
showUserType(item) {
this.type = item.dictValue
this.current = 1
this.userList = []
this.getUserList()
// if(this.userList[index].check) {
// this.userList[index].check = false
// }else {
// this.userList.map((item) => {
// item.check = false
// })
// this.userList[index].check = true
// }
if (item.dictValue != this.type) {
this.type = item.dictValue
this.current = 1
this.userList = []
this.getUserList()
}else {
this.type = ''
}
},
toEdit(row,index) {
uni.navigateTo({