统计数量
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<AiCard>
|
<AiCard>
|
||||||
<template #custom>
|
<template #custom>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<span class="nums"> 2 </span>
|
<span class="nums"> {{ num }} </span>
|
||||||
<span class="hint">全部活动</span>
|
<span class="hint">全部活动</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -71,7 +71,11 @@ export default {
|
|||||||
current: 1,
|
current: 1,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {
|
||||||
|
num() {
|
||||||
|
return this.data.filter((item) => item.v1).reduce((counts, item) => (counts += item.v1 * 1), 0)
|
||||||
|
},
|
||||||
|
},
|
||||||
watch: {},
|
watch: {},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.$dict.load('marriageType', 'modeType').then(() => {
|
this.$dict.load('marriageType', 'modeType').then(() => {
|
||||||
@@ -88,9 +92,6 @@ export default {
|
|||||||
this.$http.post('/app/appmarriagefuneralinfo/queryDataStatistics').then((res) => {
|
this.$http.post('/app/appmarriagefuneralinfo/queryDataStatistics').then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.data = res.data
|
this.data = res.data
|
||||||
this.data.map((e, i) => {
|
|
||||||
console.log(e.v1, i)
|
|
||||||
})
|
|
||||||
|
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
@@ -130,6 +131,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
this.current = this.current + 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ export default {
|
|||||||
params: {
|
params: {
|
||||||
size: 6,
|
size: 6,
|
||||||
current: this.current,
|
current: this.current,
|
||||||
// createUserId: this.user.id,
|
createUserId: this.user.id,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
@@ -256,6 +256,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
this.current = this.current + 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<AiCard>
|
<AiCard>
|
||||||
<template #custom>
|
<template #custom>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<span class="nums"> 2 </span>
|
<span class="nums"> {{ total }} </span>
|
||||||
<span class="hint">全部干部参与</span>
|
<span class="hint">全部干部参与</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -69,6 +69,7 @@ export default {
|
|||||||
deletShow: false,
|
deletShow: false,
|
||||||
deletId: '',
|
deletId: '',
|
||||||
current: 1,
|
current: 1,
|
||||||
|
total: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
@@ -88,10 +89,6 @@ export default {
|
|||||||
this.$http.post('/app/appmarriagefuneralinfo/queryDataStatistics').then((res) => {
|
this.$http.post('/app/appmarriagefuneralinfo/queryDataStatistics').then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.data = res.data
|
this.data = res.data
|
||||||
this.data.map((e, i) => {
|
|
||||||
console.log(e.v1, i)
|
|
||||||
})
|
|
||||||
|
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -112,6 +109,7 @@ export default {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
|
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
|
||||||
|
this.total = res.data.total
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<AiCard>
|
<AiCard>
|
||||||
<template #custom>
|
<template #custom>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<span class="nums"> 2 </span>
|
<span class="nums"> {{ total }} </span>
|
||||||
<span class="hint">全部丧礼</span>
|
<span class="hint">全部丧礼</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -69,6 +69,7 @@ export default {
|
|||||||
deletShow: false,
|
deletShow: false,
|
||||||
deletId: '',
|
deletId: '',
|
||||||
current: 1,
|
current: 1,
|
||||||
|
total: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
@@ -88,10 +89,6 @@ export default {
|
|||||||
this.$http.post('/app/appmarriagefuneralinfo/queryDataStatistics').then((res) => {
|
this.$http.post('/app/appmarriagefuneralinfo/queryDataStatistics').then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.data = res.data
|
this.data = res.data
|
||||||
this.data.map((e, i) => {
|
|
||||||
console.log(e.v1, i)
|
|
||||||
})
|
|
||||||
|
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -112,6 +109,7 @@ export default {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
|
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
|
||||||
|
this.total = res.data.total
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -131,6 +129,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
this.current = this.current + 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<AiCard>
|
<AiCard>
|
||||||
<template #custom>
|
<template #custom>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<span class="nums"> 2 </span>
|
<span class="nums"> {{ total }} </span>
|
||||||
<span class="hint">全部婚礼</span>
|
<span class="hint">全部婚礼</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -69,6 +69,7 @@ export default {
|
|||||||
deletShow: false,
|
deletShow: false,
|
||||||
deletId: '',
|
deletId: '',
|
||||||
current: 1,
|
current: 1,
|
||||||
|
total: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
@@ -88,10 +89,6 @@ export default {
|
|||||||
this.$http.post('/app/appmarriagefuneralinfo/queryDataStatistics').then((res) => {
|
this.$http.post('/app/appmarriagefuneralinfo/queryDataStatistics').then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.data = res.data
|
this.data = res.data
|
||||||
this.data.map((e, i) => {
|
|
||||||
console.log(e.v1, i)
|
|
||||||
})
|
|
||||||
|
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -112,6 +109,7 @@ export default {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
|
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
|
||||||
|
this.total = res.data.total
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -131,6 +129,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
this.current = this.current + 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user