事件上报

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> <template>
<div class="AppHandSnapshot"> <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="tabs" v-if="isTab && isGridMember">
<div class="item" @click="tabClick(index, item.component)" v-for="(item, index) in tabs" :key="index"> <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=""/> <img :src="tabIndex == index ? item.activeImg : item.img" alt=""/>
@@ -79,10 +79,8 @@ export default {
uni.$on('showTab', () => { uni.$on('showTab', () => {
this.isTab = true this.isTab = true
}) })
uni.$on('getListInit', () => {
this.refresh = true
})
this.$nextTick(() => this.$refs['List'].getListInit())
}, },
onReachBottom() { onReachBottom() {
if (!this.tabIndex) { if (!this.tabIndex) {

View File

@@ -89,10 +89,6 @@ export default {
this.current++ this.current++
this.getList() this.getList()
}) })
uni.$on('getListInit', () => {
this.current = 1
this.getList()
})
}, },
onShow() { onShow() {
@@ -106,6 +102,10 @@ export default {
}) })
}, },
methods: { methods: {
getListInit() {
this.current = 1
this.getList()
},
getList() { getList() {
let {current, eventStatus, searchGrid: {id: girdId}} = this let {current, eventStatus, searchGrid: {id: girdId}} = this
this.$http.post(`/app/appresidentreportinfo/listByGirdMember`, null, { this.$http.post(`/app/appresidentreportinfo/listByGirdMember`, null, {