事件上报
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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, {
|
||||||
|
|||||||
Reference in New Issue
Block a user