This commit is contained in:
花有清香月有阴
2021-12-20 18:19:30 +08:00
parent 5c92ff8bf3
commit ed6eefdc65
6 changed files with 62 additions and 43 deletions

View File

@@ -4,12 +4,12 @@
<AiCard>
<template #custom>
<div class="left">
<span class="nums"> {{ total }} </span>
<span class="nums"> {{ allNums }} </span>
<span class="hint">全部干部参与</span>
</div>
<div class="right">
<span class="nums">4</span>
<span class="nums">{{ addNums }}</span>
<span class="hint">本月新增</span>
</div>
</template>
@@ -70,6 +70,8 @@ export default {
deletId: '',
current: 1,
total: '',
allNums: '',
addNums: '',
}
},
computed: {},
@@ -89,6 +91,8 @@ export default {
this.$http.post('/app/appmarriagefuneralinfo/queryDataStatistics').then((res) => {
if (res.code == 0) {
this.data = res.data
this.allNums = res.data[1].v1
this.addNums = res.data[5].v1
uni.hideLoading()
}
})
@@ -103,7 +107,7 @@ export default {
params: {
size: 6,
current: this.current,
type: 2,
modeType: 0,
},
})
.then((res) => {
@@ -121,7 +125,7 @@ export default {
},
delet() {
this.$http.post(`/app/appmarriagefuneralinfo/queryDetailById?ids=${this.deletId}`).then((res) => {
this.$http.post(`/app/appmarriagefuneralinfo/delete?ids=${this.deletId}`).then((res) => {
if (res.code == 0) {
this.$u.toast('删除成功!')
this.getList()
@@ -129,6 +133,10 @@ export default {
})
},
},
onReachBottom() {
this.current = this.current + 1
this.getList()
},
}
</script>