统计
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<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>
|
||||
|
||||
<div v-if="currentTabs == 0" class="msg">
|
||||
<div v-show="currentTabs == 0" class="msg">
|
||||
<div class="box">
|
||||
<div class="card" @click="toList(0)">
|
||||
<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() {
|
||||
this.$http.post(`/app/appmarriagefuneralinfo/queryDataStatistics`).then((res) => {
|
||||
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)
|
||||
},
|
||||
|
||||
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() {
|
||||
uni.navigateTo({ url: `./Add` })
|
||||
},
|
||||
@@ -255,6 +249,13 @@ export default {
|
||||
uni.navigateTo({ url: `./FuneralList` })
|
||||
}
|
||||
},
|
||||
|
||||
change(index) {
|
||||
this.currentTabs = index
|
||||
// this.Echart = echarts.init(document.getElementById('yearStatistic'))
|
||||
this.getList()
|
||||
this.getEchart()
|
||||
},
|
||||
},
|
||||
onReachBottom() {
|
||||
this.current = this.current + 1
|
||||
|
||||
Reference in New Issue
Block a user