fix:修复切换panel报错

This commit is contained in:
wangwenrui
2020-06-09 14:18:27 +08:00
parent ed085bcfe5
commit 8716615fbb

View File

@@ -226,7 +226,8 @@
//this.$refs.searchInput.select(); //this.$refs.searchInput.select();
this.showPanel = val this.showPanel = val
this.filter.panelId = this.showPanel.id; this.filter.panelId = this.showPanel.id;
let curTime = this.$refs.calendarPanel.getCurrentTime(); // let curTime = this.$refs.calendarPanel.getCurrentTime();
let curTime=this.searchTime;
this.filter.start_time = bus.timeFormate(curTime[0], 'yyyy-MM-dd hh:mm:ss'); this.filter.start_time = bus.timeFormate(curTime[0], 'yyyy-MM-dd hh:mm:ss');
this.filter.end_time = bus.timeFormate(curTime[1], 'yyyy-MM-dd hh:mm:ss'); this.filter.end_time = bus.timeFormate(curTime[1], 'yyyy-MM-dd hh:mm:ss');
//this.$refs.chartList.initCurrentRecordNum(); //this.$refs.chartList.initCurrentRecordNum();