src/components/view/b4-daily-business-statistics.vue
@@ -214,9 +214,14 @@ this.$axios.get(this.$api.report.businessStatisticsByDay+'?startTime='+this.startTime+'&endTime='+this.endTime+'&type='+this.type).then(res => { if (res.code == 201) return this.pageData = this.HaveJson(res.data) console.log(3333,res.data) let xData = res.data.DAYS.map(m=>{ let arr = m.split('-') return `${arr[1]}-${arr[2]}` if(this.type=='年'){ return `${arr[1]}月` }else{ return `${arr[1]}-${arr[2]}` } }) this.chartData0.xData = xData this.chartData1.xData = xData