事件上报
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="AppHandSnapshot">
|
||||
<component v-if="refresh && isGridMember" :is="component" @change="onChange" :params="params"/>
|
||||
<component v-if="refresh && isGridMember" :is="component" @change="onChange" :params="params" :ref="component"/>
|
||||
<div class="tabs" v-if="isTab && isGridMember">
|
||||
<div class="item" @click="tabClick(index, item.component)" v-for="(item, index) in tabs" :key="index">
|
||||
<img :src="tabIndex == index ? item.activeImg : item.img" alt=""/>
|
||||
@@ -79,10 +79,8 @@ export default {
|
||||
uni.$on('showTab', () => {
|
||||
this.isTab = true
|
||||
})
|
||||
uni.$on('getListInit', () => {
|
||||
this.refresh = true
|
||||
})
|
||||
|
||||
|
||||
this.$nextTick(() => this.$refs['List'].getListInit())
|
||||
},
|
||||
onReachBottom() {
|
||||
if (!this.tabIndex) {
|
||||
|
||||
@@ -89,10 +89,6 @@ export default {
|
||||
this.current++
|
||||
this.getList()
|
||||
})
|
||||
uni.$on('getListInit', () => {
|
||||
this.current = 1
|
||||
this.getList()
|
||||
})
|
||||
|
||||
},
|
||||
onShow() {
|
||||
@@ -106,6 +102,10 @@ export default {
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
getListInit() {
|
||||
this.current = 1
|
||||
this.getList()
|
||||
},
|
||||
getList() {
|
||||
let {current, eventStatus, searchGrid: {id: girdId}} = this
|
||||
this.$http.post(`/app/appresidentreportinfo/listByGirdMember`, null, {
|
||||
|
||||
Reference in New Issue
Block a user