居民档案bug
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<AiCard v-for="(item, i) in data" :key="i" @click.native="goDetail(item, 1)">
|
||||
<template #custom>
|
||||
<div class="cards-left">
|
||||
<span class="walkName">走访对象:{{ item.createUserName }}</span>
|
||||
<span class="walkName">走访对象:{{ item.name }}</span>
|
||||
<span class="tags">{{ item.menuLevel3Name }}</span>
|
||||
<span class="tags">{{ $dict.getLabel('realityStatus', item.reality) }}</span>
|
||||
</div>
|
||||
@@ -106,10 +106,6 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
|
||||
loadmore() {
|
||||
return this.pages <= this.current ? 'loading ' : 'nomore'
|
||||
},
|
||||
},
|
||||
onLoad() {
|
||||
this.areaId = this.user.areaId
|
||||
@@ -132,6 +128,9 @@ export default {
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
if (this.current > res.data.pages) {
|
||||
return
|
||||
}
|
||||
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
|
||||
this.pages = res.data.pages
|
||||
|
||||
|
||||
Reference in New Issue
Block a user