AppServicePublic

This commit is contained in:
花有清香月有阴
2021-12-16 16:04:21 +08:00
parent dbe80d9f97
commit 81c6e9ce04
8 changed files with 538 additions and 44 deletions

View File

@@ -59,7 +59,7 @@
</view>
</u-card>
<u-loadmore status="nomore" color="#999" font-size="24" margin-top="32" margin-bottom="80" />
<u-loadmore :status="loadmore" color="#999" font-size="24" margin-top="32" margin-bottom="80" />
</template>
<AiEmpty description="没有数据" v-else> </AiEmpty>
@@ -85,11 +85,16 @@ export default {
datas: {},
listType: 0,
current: 1,
pages: 0,
}
},
computed: {},
computed: {
loadmore() {
return this.pages <= this.current ? 'loading ' : 'nomore'
},
},
watch: {},
created() {
onLoad() {
this.$dict.load('listApprovalStatusHb').then(() => {
this.getList()
})
@@ -100,6 +105,7 @@ export default {
this.$http.post(`/app/approv-alapply-info/list?listType=${this.listType}&current=${this.current}&param=${this.keyword}`).then((res) => {
if (res?.code == 0) {
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
this.pages = res.data.pages
}
})
},
@@ -129,6 +135,10 @@ export default {
this.getListInit()
},
},
onReachBottom() {
this.current = this.current + 1
this.getList()
},
}
</script>