Commit cadb6f51 authored by 吴春's avatar 吴春

1

parent efe9a3da
......@@ -107,7 +107,10 @@
<el-row :gutter="23" justify="space-between">
<el-col :span="8">
<div class="bgDiv" style="padding:20px 30px;height:320px;overflow:auto">
<p style="color:#2C3343;margin-bottom:30px">返利红包预期收益</p>
<p style="color:#2C3343;margin-bottom:30px">
<el-date-picker v-model="Year" type="year" @change="getBigRedEnvelope()" style="border: 1px solid #DCDFE6;border-radius: 3px;width: 100px;margin-right: 5px;" placeholder="选择年">
</el-date-picker>年返利红包预期收益
</p>
<el-row>
<el-col :span="6">
<div>
......@@ -182,6 +185,7 @@
return {
percentage: 20,
customerId: "",
Year:0,
loading: false,
datainfo: {},
colorList: ["#FFB822", "#FD3995", "#5D78FF", "#59C5F8", "#34BFA3"],
......@@ -193,6 +197,8 @@
if (this.$route.query.customerId) {
this.customerId = Number(this.$route.query.customerId);
}
var myDate = new Date();
this.Year= String(myDate.getFullYear());
},
mounted() {
this.getData();
......@@ -249,6 +255,32 @@
} else {}
}, err => {})
},
getBigRedEnvelope() {
this.loading = true;
if(! this.Year|| this.Year==0){
var myDate = new Date();
this.Year= String(myDate.getFullYear());
}
else{
var myDate = new Date(this.Year);
this.Year= String(myDate.getFullYear());
}
this.apipost('app_customer_GetBigRedEnvelope', {
customerId: this.customerId,
Year:this.Year,
}, res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.datainfo.list= res.data.data.list;
this.datainfo.yeayGoTotalPrice= res.data.data.yeayGoTotalPrice;
this.datainfo.yearTotalPrice= res.data.data.yearTotalPrice;
this.datainfo.totalYearPrice= res.data.data.totalYearPrice;
this.datainfo.allianceTotalYearPrice= res.data.data.allianceTotalYearPrice;
this.$forceUpdate()
}
}, err => {})
},
LineChart() {
var that = this;
var myChart = this.$echarts.init(document.getElementById('chartsMap'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment