detail
This commit is contained in:
		@@ -8,7 +8,7 @@
 | 
			
		||||
          <img src="./components/img/down-icon.png" alt="" />
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        <u-select v-model="show" :list="myGirdList" @confirm="confirm"></u-select>
 | 
			
		||||
        <u-select v-model="show" :list="myGirdList" value-name="id" label-name="girdName" @confirm="confirm"></u-select>
 | 
			
		||||
 | 
			
		||||
        <div class="tab-item" @click="showType = true">
 | 
			
		||||
          <span class="color-666">办件状态</span>
 | 
			
		||||
@@ -23,7 +23,7 @@
 | 
			
		||||
      <AiCard v-for="(item, i) in datas" :key="i" @click.native="goDetail(item, 1)">
 | 
			
		||||
        <template #custom>
 | 
			
		||||
          <div class="card-top">
 | 
			
		||||
            <div class="titles">{{ item.groupName }}</div>
 | 
			
		||||
            <div class="titles">{{ item.content }}</div>
 | 
			
		||||
 | 
			
		||||
            <div class="types">
 | 
			
		||||
              <span>事件类型</span>
 | 
			
		||||
@@ -52,6 +52,8 @@
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
import { mapState } from 'vuex'
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  props: {},
 | 
			
		||||
  data() {
 | 
			
		||||
@@ -65,16 +67,7 @@ export default {
 | 
			
		||||
          name: '办件历史',
 | 
			
		||||
        },
 | 
			
		||||
      ],
 | 
			
		||||
      list: [
 | 
			
		||||
        {
 | 
			
		||||
          value: '1',
 | 
			
		||||
          label: '江',
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          value: '2',
 | 
			
		||||
          label: '湖',
 | 
			
		||||
        },
 | 
			
		||||
      ],
 | 
			
		||||
 | 
			
		||||
      currentTabs: 0,
 | 
			
		||||
      current: 1,
 | 
			
		||||
      size: 10,
 | 
			
		||||
@@ -82,7 +75,7 @@ export default {
 | 
			
		||||
 | 
			
		||||
      show: false,
 | 
			
		||||
      myGirdList: [],
 | 
			
		||||
      girdId: '',
 | 
			
		||||
      girdName: '',
 | 
			
		||||
 | 
			
		||||
      showType: false,
 | 
			
		||||
      listType: [],
 | 
			
		||||
@@ -90,6 +83,8 @@ export default {
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  computed: {
 | 
			
		||||
    ...mapState(['user']),
 | 
			
		||||
 | 
			
		||||
    loadmore() {
 | 
			
		||||
      return this.pages <= this.current ? 'loading ' : 'nomore'
 | 
			
		||||
    },
 | 
			
		||||
@@ -101,11 +96,8 @@ export default {
 | 
			
		||||
    })
 | 
			
		||||
 | 
			
		||||
    this.current = 1
 | 
			
		||||
    this.girdList()
 | 
			
		||||
    this.getList()
 | 
			
		||||
    uni.$on('nextList', () => {
 | 
			
		||||
      this.current++
 | 
			
		||||
      this.getList()
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    getList() {
 | 
			
		||||
@@ -116,20 +108,19 @@ export default {
 | 
			
		||||
            current: this.current,
 | 
			
		||||
            searchType: this.currentTabs == 1 ? '1' : '0',
 | 
			
		||||
            eventStatus: this.eventStatus,
 | 
			
		||||
            girdName: this.girdName,
 | 
			
		||||
          },
 | 
			
		||||
        })
 | 
			
		||||
        .then((res) => {
 | 
			
		||||
          if (res.code == 0) {
 | 
			
		||||
            console.log(res.data)
 | 
			
		||||
            // this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
 | 
			
		||||
            // this.pages = res.data.pages
 | 
			
		||||
            this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
 | 
			
		||||
            this.pages = res.data.pages
 | 
			
		||||
          }
 | 
			
		||||
        })
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    toGirdList() {
 | 
			
		||||
      this.show = true
 | 
			
		||||
      this.girdList()
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    girdList() {
 | 
			
		||||
@@ -141,7 +132,6 @@ export default {
 | 
			
		||||
        })
 | 
			
		||||
        .then((res) => {
 | 
			
		||||
          if (res.code == 0) {
 | 
			
		||||
            console.log(res.data)
 | 
			
		||||
            this.myGirdList = res.data
 | 
			
		||||
          }
 | 
			
		||||
        })
 | 
			
		||||
@@ -152,7 +142,7 @@ export default {
 | 
			
		||||
        if (e[0].value) {
 | 
			
		||||
          console.log(e)
 | 
			
		||||
 | 
			
		||||
          this.girdId = e[0].value
 | 
			
		||||
          this.girdName = e[0].label
 | 
			
		||||
          this.current = 1
 | 
			
		||||
          this.getList()
 | 
			
		||||
        }
 | 
			
		||||
@@ -173,6 +163,8 @@ export default {
 | 
			
		||||
    change(index) {
 | 
			
		||||
      this.current = 1
 | 
			
		||||
      this.datas = []
 | 
			
		||||
      this.eventStatus = ''
 | 
			
		||||
      this.girdName = ''
 | 
			
		||||
      this.currentTabs = index
 | 
			
		||||
      this.getList()
 | 
			
		||||
    },
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user