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