走访慰问bug
This commit is contained in:
		@@ -1,8 +1,7 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="walkObject">
 | 
			
		||||
    <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>
 | 
			
		||||
      <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">
 | 
			
		||||
@@ -13,8 +12,7 @@
 | 
			
		||||
      <div class="Checkbox">
 | 
			
		||||
        <div v-if="DiyList.length > 0">
 | 
			
		||||
          <u-collapse event-type="close" arrowaccordion>
 | 
			
		||||
            <u-collapse-item v-for="(item, index) in DiyList" :title="item.menuLevel2Name" :key="index"
 | 
			
		||||
                             @change="selectUser(item)">
 | 
			
		||||
            <u-collapse-item v-for="(item, index) in DiyList" :title="item.menuLevel3Name" :key="index" @change="selectUser(item)">
 | 
			
		||||
              <u-radio-group v-model="value">
 | 
			
		||||
                <u-radio v-for="(item, index) in userList" :key="index" :name="item.create_user_name">
 | 
			
		||||
                  {{ item.create_user_name }}
 | 
			
		||||
@@ -69,14 +67,14 @@ export default {
 | 
			
		||||
      current: 1,
 | 
			
		||||
      appId: '',
 | 
			
		||||
      value: '',
 | 
			
		||||
      menuLevel3Name: '',
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  computed: {},
 | 
			
		||||
  created() {
 | 
			
		||||
    this.getDiyList()
 | 
			
		||||
  },
 | 
			
		||||
  mounted() {
 | 
			
		||||
  },
 | 
			
		||||
  mounted() {},
 | 
			
		||||
  methods: {
 | 
			
		||||
    getDiyList() {
 | 
			
		||||
      this.$http.post('/app/appapplicationinfo/queryApplicationListByType?type=0').then((res) => {
 | 
			
		||||
@@ -87,9 +85,9 @@ export default {
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    selectUser(item) {
 | 
			
		||||
      console.log(item.id)
 | 
			
		||||
      this.menuLevel3Name = item.menuLevel3Name
 | 
			
		||||
      this.appId = item.id
 | 
			
		||||
      this.$http.post(`/app/appapplicationinfo/list?appId=${item.id}¤t=${this.current}&size=${99}`, {searchParam: this.keyword}).then((res) => {
 | 
			
		||||
      this.$http.post(`/app/appapplicationinfo/list?appId=${item.id}¤t=${this.current}&size=${99}`, { searchParam: this.keyword }).then((res) => {
 | 
			
		||||
        if (res.code == 0) {
 | 
			
		||||
          this.userList = res.data.records
 | 
			
		||||
        }
 | 
			
		||||
@@ -99,7 +97,7 @@ export default {
 | 
			
		||||
    submit() {
 | 
			
		||||
      this.userList.map((item) => {
 | 
			
		||||
        if (item.create_user_name == this.value) {
 | 
			
		||||
          this.$emit('back', {item: item, appId: this.appId})
 | 
			
		||||
          this.$emit('back', { item: item, appId: this.appId, menuLevel3Name: this.menuLevel3Name })
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user