人员选择
This commit is contained in:
@@ -56,7 +56,7 @@ export default {
|
||||
flag: false,
|
||||
show: false,
|
||||
number: '',
|
||||
treeList: [],
|
||||
|
||||
myList: [],
|
||||
groupName: '',
|
||||
groupId: '',
|
||||
@@ -72,7 +72,6 @@ export default {
|
||||
|
||||
this.forms.groupId = this.groupId
|
||||
this.forms.groupName = this.groupName
|
||||
// this.getTree()
|
||||
this.typeList()
|
||||
},
|
||||
methods: {
|
||||
@@ -201,15 +200,6 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
getTree() {
|
||||
this.$http.post('/app/wxcp/wxtag/tree').then((res) => {
|
||||
if (res?.data) {
|
||||
console.log(res.data)
|
||||
this.treeList = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
handerSelect() {},
|
||||
|
||||
toSelectUser() {
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
<template>
|
||||
<div class="SelectUser">
|
||||
<div class="header-top">
|
||||
<u-search v-model="keyword" placeholder="请输入姓名" :show-action="false" bg-color="#F5F5F5" search-icon-color="#CCCCCC" placeholder-color="#999999" @search="handerSearch" @clear="handerClear"></u-search>
|
||||
</div>
|
||||
|
||||
<div class="header-middle">
|
||||
<div class="hint">
|
||||
<span :style="{ color: applicationName ? '#3F8DF5' : '' }" @click="back">可选范围</span>
|
||||
@@ -13,12 +9,12 @@
|
||||
<div class="showTypes" v-if="showType">
|
||||
<div class="empty-div"></div>
|
||||
|
||||
<div v-if="typeList.length > 0">
|
||||
<div class="cards" v-for="(item, i) in typeList" :key="i" @click="toUserSelect(item)">
|
||||
<div v-if="treeList.length > 0">
|
||||
<div class="cards" v-for="(item, i) in treeList" :key="i" @click="toUserSelect(item)">
|
||||
<img src="./components/img/tx@2x.png" alt="" />
|
||||
|
||||
<div class="rightes">
|
||||
<div class="applicationNames">{{ item.applicationName }}</div>
|
||||
<div class="applicationNames">{{ item.tagname }}</div>
|
||||
|
||||
<img src="./components/img/right-icon.png" alt="" class="imgs" />
|
||||
</div>
|
||||
@@ -62,6 +58,7 @@ export default {
|
||||
name: 'SelectUser',
|
||||
data() {
|
||||
return {
|
||||
treeList: [],
|
||||
typeList: [],
|
||||
userList: [],
|
||||
keyword: '',
|
||||
@@ -75,10 +72,18 @@ export default {
|
||||
computed: {},
|
||||
watch: {},
|
||||
onLoad() {
|
||||
this.getTypeList()
|
||||
this.getTree()
|
||||
},
|
||||
onShow() {},
|
||||
methods: {
|
||||
getTree() {
|
||||
this.$http.post('/app/wxcp/wxtag/tree').then((res) => {
|
||||
if (res?.data) {
|
||||
this.treeList = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
userClick(row, index) {
|
||||
if (this.userList[index].isChecked) {
|
||||
//取消
|
||||
@@ -102,12 +107,6 @@ export default {
|
||||
})
|
||||
},
|
||||
|
||||
// getUser(data) {
|
||||
// this.applicationId = data.id
|
||||
// this.appId = data.id
|
||||
// this.getUsers()
|
||||
// },
|
||||
|
||||
getUsers() {
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
|
||||
Reference in New Issue
Block a user