src/views/standard/renshunum/index.vue
@@ -108,8 +108,14 @@ }); }, getList() { this.queryParams.beginTime = this.startTime[0]; if(this.startTime){ this.queryParams.beginTime = this.startTime[0]; this.queryParams.endTime = this.startTime[1]; }else if(this.startTime == null){ this.queryParams.beginTime = null; this.queryParams.endTime = null; } getTiaoNumsByDate(this.queryParams).then((res) => { let myChart = this.$echarts.init(document.getElementById("main")); //你进入页面先把图表渲染了 然后才获取的数据把