|
|
|
|
@ -1,6 +1,11 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
|
|
<div class="block" style="padding-top: 10px;display: flex;
|
|
|
|
|
justify-content: flex-end;">
|
|
|
|
|
<el-date-picker v-model="month" type="month" placeholder="选择月" @change="loadData()">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="statistics">
|
|
|
|
|
<panel-group :totaldata="list" />
|
|
|
|
|
</div>
|
|
|
|
|
@ -39,6 +44,7 @@
|
|
|
|
|
customerArr: [],
|
|
|
|
|
orderArr: [],
|
|
|
|
|
chartData: {},
|
|
|
|
|
month: ''
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
@ -50,7 +56,9 @@
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
async loadData() {
|
|
|
|
|
await getChartsHome().then((res) => {
|
|
|
|
|
await getChartsHome({
|
|
|
|
|
month: this.month
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.list = res.list;
|
|
|
|
|
this.chartData = res;
|
|
|
|
|
@ -179,6 +187,7 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.month=this.$moment().format("YYYY-MM")
|
|
|
|
|
|
|
|
|
|
this.loadData();
|
|
|
|
|
},
|
|
|
|
|
|