|
|
|
@ -35,7 +35,7 @@
|
|
|
|
|
<span class="blue-logo"></span>
|
|
|
|
|
<span class="chart-title-date">累计拓客报表</span>
|
|
|
|
|
<span style="font-size: 14px;color:#666;margin-left: 100px">
|
|
|
|
|
拓客<input-number size="small" :min="1" v-model="count" :on-change="getMainList"></input-number>以内门店数量
|
|
|
|
|
拓客<InputNumber size="small" :min="1" v-model="count" @on-change="getMainList"></InputNumber>以内门店数量
|
|
|
|
|
</span>
|
|
|
|
|
<ve-histogram :data="chartData" :extend="chartExtend" :settings="chartSettings" :colors="chartColor"></ve-histogram>
|
|
|
|
|
</i-col>
|
|
|
|
@ -200,15 +200,21 @@
|
|
|
|
|
this.endTime = this.$moment(new Date()).add(-1, "days").format("YYYY-MM-DD HH:mm:ss");
|
|
|
|
|
break;
|
|
|
|
|
case '本周':
|
|
|
|
|
this.viewDate = nowDate.startOf('week').format("YYYY-MM-DD") + ' 至 ' + this.$moment(new Date()).format("YYYY-MM-DD");
|
|
|
|
|
this.selectStartTime = this.$moment(new Date()).startOf("week").format("YYYY-MM-DD 00:00:00");
|
|
|
|
|
if (nowDate.startOf('week').format("YYYY-MM-DD") === this.$moment(new Date()).format("YYYY-MM-DD")){
|
|
|
|
|
this.viewDate = nowDate.startOf('week').format("YYYY-MM-DD") + ' 至 ' + this.$moment(new Date()).format("YYYY-MM-DD");
|
|
|
|
|
}else{
|
|
|
|
|
this.viewDate = nowDate.startOf('week').format("YYYY-MM-DD") + ' 至 ' + this.$moment(new Date()).add(-1, "days").format("YYYY-MM-DD");
|
|
|
|
|
} this.selectStartTime = this.$moment(new Date()).startOf("week").format("YYYY-MM-DD 00:00:00");
|
|
|
|
|
this.selectEndTime = this.$moment(new Date()).format("YYYY-MM-DD HH:mm:ss");
|
|
|
|
|
this.startTime = this.selectStartTime;
|
|
|
|
|
this.endTime = this.$moment(new Date()).endOf("week").format("YYYY-MM-DD HH:mm:ss");
|
|
|
|
|
break;
|
|
|
|
|
case '本月':
|
|
|
|
|
this.viewDate = nowDate.startOf('month').format("YYYY-MM-DD") + ' 至 ' + this.$moment(new Date()).format("YYYY-MM-DD");
|
|
|
|
|
this.selectStartTime = this.$moment(new Date()).startOf("month").format("YYYY-MM-DD 00:00:00");
|
|
|
|
|
if (nowDate.startOf('month').format("YYYY-MM-DD") === this.$moment(new Date()).format("YYYY-MM-DD")){
|
|
|
|
|
this.viewDate = nowDate.startOf('month').format("YYYY-MM-DD") + ' 至 ' + this.$moment(new Date()).format("YYYY-MM-DD");
|
|
|
|
|
}else{
|
|
|
|
|
this.viewDate = nowDate.startOf('month').format("YYYY-MM-DD") + ' 至 ' + this.$moment(new Date()).add(-1, "days").format("YYYY-MM-DD");
|
|
|
|
|
} this.selectStartTime = this.$moment(new Date()).startOf("month").format("YYYY-MM-DD 00:00:00");
|
|
|
|
|
this.selectEndTime = this.$moment(new Date()).format("YYYY-MM-DD HH:mm:ss");
|
|
|
|
|
this.startTime = this.selectStartTime;
|
|
|
|
|
this.endTime = this.$moment(new Date()).endOf("month").format("YYYY-MM-DD HH:mm:ss");
|
|
|
|
|