事件上报

This commit is contained in:
liuye
2023-05-11 11:44:39 +08:00
parent cfd8a4a314
commit 2722a73e18
2 changed files with 7 additions and 9 deletions

View File

@@ -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) {

View File

@@ -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, {