统计
This commit is contained in:
@@ -118,7 +118,7 @@ export default {
|
|||||||
|
|
||||||
this.flag = true
|
this.flag = true
|
||||||
this.$http
|
this.$http
|
||||||
.post(`/app/appvisitvondolence/addOrUpdate`, {
|
.post(`/app/appmarriagefuneralinfo/addOrUpdate`, {
|
||||||
type: this.forms.typeValue,
|
type: this.forms.typeValue,
|
||||||
name: this.forms.name,
|
name: this.forms.name,
|
||||||
modeType: this.forms.modeTypeValue,
|
modeType: this.forms.modeTypeValue,
|
||||||
@@ -129,7 +129,7 @@ export default {
|
|||||||
createUserId: this.user.id,
|
createUserId: this.user.id,
|
||||||
personType: this.forms.personType,
|
personType: this.forms.personType,
|
||||||
|
|
||||||
fileIds: imgs || [],
|
files: imgs || [],
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
<AiCard>
|
<AiCard>
|
||||||
<template #custom>
|
<template #custom>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<span class="nums"> {{ num }} </span>
|
<span class="nums"> {{ allNums }} </span>
|
||||||
<span class="hint">全部活动</span>
|
<span class="hint">全部活动</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<span class="nums">4</span>
|
<span class="nums">{{ addNums }}</span>
|
||||||
<span class="hint">本月新增</span>
|
<span class="hint">本月新增</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -69,13 +69,12 @@ export default {
|
|||||||
deletShow: false,
|
deletShow: false,
|
||||||
deletId: '',
|
deletId: '',
|
||||||
current: 1,
|
current: 1,
|
||||||
|
addList: [],
|
||||||
|
allNums: '',
|
||||||
|
addNums: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
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(() => {
|
||||||
@@ -91,7 +90,9 @@ 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.slice(0, 4)
|
||||||
|
this.allNums = res.data[0].v1
|
||||||
|
this.addNums = res.data[4].v1
|
||||||
|
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
@@ -107,6 +108,7 @@ export default {
|
|||||||
params: {
|
params: {
|
||||||
size: 6,
|
size: 6,
|
||||||
current: this.current,
|
current: this.current,
|
||||||
|
type: 2,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
@@ -123,7 +125,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
delet() {
|
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) {
|
if (res.code == 0) {
|
||||||
this.$u.toast('删除成功!')
|
this.$u.toast('删除成功!')
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="AppMarryAndDie">
|
<div class="AppMarryAndDie">
|
||||||
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6" inactive-color="#fff" active-color="#fff" @change="change"></u-tabs>
|
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6" inactive-color="#fff" active-color="#fff" @change="change"></u-tabs>
|
||||||
|
|
||||||
<div v-if="currentTabs == 0" class="msg">
|
<div v-show="currentTabs == 0" class="msg">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="card" @click="toList(0)">
|
<div class="card" @click="toList(0)">
|
||||||
<div class="imgleft">
|
<div class="imgleft">
|
||||||
@@ -158,30 +158,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
toDetele(item) {
|
|
||||||
this.deletShow = true
|
|
||||||
this.deletId = item.id
|
|
||||||
},
|
|
||||||
|
|
||||||
delet() {
|
|
||||||
this.$http.post(`/app/appmarriagefuneralinfo/queryDetailById?ids=${this.deletId}`).then((res) => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.$u.toast('删除成功!')
|
|
||||||
this.getList()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
change(index) {
|
|
||||||
this.currentTabs = index
|
|
||||||
this.getList()
|
|
||||||
this.getEchart()
|
|
||||||
},
|
|
||||||
|
|
||||||
getEchart() {
|
getEchart() {
|
||||||
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.initEchart(res.data)
|
this.initEchart(res.data.slice(0, 4))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -233,6 +213,20 @@ export default {
|
|||||||
option && this.Echart.setOption(option)
|
option && this.Echart.setOption(option)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
toDetele(item) {
|
||||||
|
this.deletShow = true
|
||||||
|
this.deletId = item.id
|
||||||
|
},
|
||||||
|
|
||||||
|
delet() {
|
||||||
|
this.$http.post(`/app/appmarriagefuneralinfo/delete?ids=${this.deletId}`).then((res) => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.$u.toast('删除成功!')
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
toAdd() {
|
toAdd() {
|
||||||
uni.navigateTo({ url: `./Add` })
|
uni.navigateTo({ url: `./Add` })
|
||||||
},
|
},
|
||||||
@@ -255,6 +249,13 @@ export default {
|
|||||||
uni.navigateTo({ url: `./FuneralList` })
|
uni.navigateTo({ url: `./FuneralList` })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
change(index) {
|
||||||
|
this.currentTabs = index
|
||||||
|
// this.Echart = echarts.init(document.getElementById('yearStatistic'))
|
||||||
|
this.getList()
|
||||||
|
this.getEchart()
|
||||||
|
},
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
this.current = this.current + 1
|
this.current = this.current + 1
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
<AiCard>
|
<AiCard>
|
||||||
<template #custom>
|
<template #custom>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<span class="nums"> {{ total }} </span>
|
<span class="nums"> {{ allNums }} </span>
|
||||||
<span class="hint">全部干部参与</span>
|
<span class="hint">全部干部参与</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<span class="nums">4</span>
|
<span class="nums">{{ addNums }}</span>
|
||||||
<span class="hint">本月新增</span>
|
<span class="hint">本月新增</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -70,6 +70,8 @@ export default {
|
|||||||
deletId: '',
|
deletId: '',
|
||||||
current: 1,
|
current: 1,
|
||||||
total: '',
|
total: '',
|
||||||
|
allNums: '',
|
||||||
|
addNums: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
@@ -89,6 +91,8 @@ 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.allNums = res.data[1].v1
|
||||||
|
this.addNums = res.data[5].v1
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -103,7 +107,7 @@ export default {
|
|||||||
params: {
|
params: {
|
||||||
size: 6,
|
size: 6,
|
||||||
current: this.current,
|
current: this.current,
|
||||||
type: 2,
|
modeType: 0,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
@@ -121,7 +125,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
delet() {
|
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) {
|
if (res.code == 0) {
|
||||||
this.$u.toast('删除成功!')
|
this.$u.toast('删除成功!')
|
||||||
this.getList()
|
this.getList()
|
||||||
@@ -129,6 +133,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
this.current = this.current + 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
<AiCard>
|
<AiCard>
|
||||||
<template #custom>
|
<template #custom>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<span class="nums"> {{ total }} </span>
|
<span class="nums"> {{ allNums }} </span>
|
||||||
<span class="hint">全部丧礼</span>
|
<span class="hint">全部丧礼</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<span class="nums">4</span>
|
<span class="nums">{{ addNums }}</span>
|
||||||
<span class="hint">本月新增</span>
|
<span class="hint">本月新增</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -70,6 +70,8 @@ export default {
|
|||||||
deletId: '',
|
deletId: '',
|
||||||
current: 1,
|
current: 1,
|
||||||
total: '',
|
total: '',
|
||||||
|
allNums: '',
|
||||||
|
addNums: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
@@ -89,6 +91,8 @@ 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.allNums = res.data[3].v1
|
||||||
|
this.addNums = res.data[7].v1
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -121,7 +125,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
delet() {
|
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) {
|
if (res.code == 0) {
|
||||||
this.$u.toast('删除成功!')
|
this.$u.toast('删除成功!')
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
<AiCard>
|
<AiCard>
|
||||||
<template #custom>
|
<template #custom>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<span class="nums"> {{ total }} </span>
|
<span class="nums"> {{ allNums }} </span>
|
||||||
<span class="hint">全部婚礼</span>
|
<span class="hint">全部婚礼</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<span class="nums">4</span>
|
<span class="nums">{{ addNums }}</span>
|
||||||
<span class="hint">本月新增</span>
|
<span class="hint">本月新增</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -70,6 +70,8 @@ export default {
|
|||||||
deletId: '',
|
deletId: '',
|
||||||
current: 1,
|
current: 1,
|
||||||
total: '',
|
total: '',
|
||||||
|
addNums: '',
|
||||||
|
allNums: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
@@ -89,6 +91,8 @@ 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.allNums = res.data[2].v1
|
||||||
|
this.addNums = res.data[6].v1
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -121,7 +125,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
delet() {
|
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) {
|
if (res.code == 0) {
|
||||||
this.$u.toast('删除成功!')
|
this.$u.toast('删除成功!')
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|||||||
Reference in New Issue
Block a user