AppServicePublic
This commit is contained in:
@@ -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}¤t=${this.current}¶m=${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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user