BUG 28274

This commit is contained in:
aixianling
2022-03-16 18:23:15 +08:00
parent 3feb255563
commit 0ab14fb757

View File

@@ -23,17 +23,19 @@
<i>{{ item.diffNum || 0 }}</i> <i>{{ item.diffNum || 0 }}</i>
<span></span> <span></span>
</div> </div>
<div class="item-bottom__right" hover-class="text-hover" v-if="item.today === '0'" @click.stop="$linkTo('./AddReport?id=' + item.id)"> <div class="item-bottom__right" hover-class="text-hover" v-if="item.today === '0'"
@click.stop="$linkTo('./AddReport?id=' + item.id)">
<span style="color: #FF883C">今日未上报</span> <span style="color: #FF883C">今日未上报</span>
<u-icon name="arrow-right" color="#ddd"/> <u-icon name="arrow-right" color="#ddd"/>
</div> </div>
<div class="item-bottom__right" hover-class="text-hover" v-else @click.stop="$linkTo('./RecordList?id=' + item.id)"> <div class="item-bottom__right" hover-class="text-hover" v-else
@click.stop="$linkTo('./RecordList?id=' + item.id)">
<span style="color: #999999">今日已上报</span> <span style="color: #999999">今日已上报</span>
<u-icon name="arrow-right" color="#ddd"/> <u-icon name="arrow-right" color="#ddd"/>
</div> </div>
</div> </div>
</div> </div>
<AiEmpty v-if="!list.length && !isMore"/> <AiEmpty v-if="list.length==0"/>
</div> </div>
<div class="btn-wrapper"> <div class="btn-wrapper">
<div class="btn" @click="toReport" hover-class="text-hover">添加上报人员</div> <div class="btn" @click="toReport" hover-class="text-hover">添加上报人员</div>
@@ -42,17 +44,17 @@
</template> </template>
<script> <script>
import { mapState } from 'vuex' import {mapState} from 'vuex'
export default {
name:"AppHealthReport", export default {
appName:"健康上报", name: "AppHealthReport",
data () { appName: "健康上报",
data() {
return { return {
list: [], list: [],
pageShow: false, pageShow: false,
current: 1, current: 1,
total: 0, total: 0,
isMore: false
} }
}, },
@@ -60,7 +62,7 @@
...mapState(['user']) ...mapState(['user'])
}, },
onLoad () { onLoad() {
this.$loading() this.$loading()
this.$dict.load(['villageActivityStatus']).then(() => { this.$dict.load(['villageActivityStatus']).then(() => {
this.getList() this.getList()
@@ -68,8 +70,6 @@
uni.$on('update', () => { uni.$on('update', () => {
this.current = 1 this.current = 1
this.isMore = false
this.$nextTick(() => { this.$nextTick(() => {
this.getList() this.getList()
}) })
@@ -77,12 +77,11 @@
}, },
methods: { methods: {
toReport () { toReport() {
this.$linkTo('./AddUser') this.$linkTo('./AddUser')
}, },
getList() { getList() {
if (this.isMore) return
this.$instance.post(`/app/appepidemicreportmember/list?openId=${this.user.openId}`, null, { this.$instance.post(`/app/appepidemicreportmember/list?openId=${this.user.openId}`, null, {
params: { params: {
@@ -100,7 +99,6 @@
uni.hideLoading() uni.hideLoading()
this.pageShow = true this.pageShow = true
if (res.data.records.length < 15) { if (res.data.records.length < 15) {
this.isMore = true
return false return false
} }
@@ -118,11 +116,11 @@
onReachBottom() { onReachBottom() {
this.getList() this.getList()
} }
} }
</script> </script>
<style lang="scss" socped> <style lang="scss" socped>
.returnHomeRegister { .returnHomeRegister {
padding: 0 0 150px 0; padding: 0 0 150px 0;
.title { .title {
@@ -221,5 +219,5 @@
} }
} }
} }
} }
</style> </style>