Browse Source

添加清空图表

智慧矿山应急安全培训、考核、演练管理系统
jongbowen 2 years ago
parent
commit
89d9445073
  1. 6
      src/app/examiner/statistic-analysis/examStatistics/echarts/echarts.component.ts

6
src/app/examiner/statistic-analysis/examStatistics/echarts/echarts.component.ts

@ -120,7 +120,7 @@ export class EchartsComponent implements OnInit {
this.color = "#FF8678";
}
let myChart = echarts.init(document.getElementById("zhidui"));
myChart.clear();
myChart.dispose();
this.initCharts();
}
//后退
@ -238,12 +238,12 @@ export class EchartsComponent implements OnInit {
if (e.name.indexOf("支队") != -1) {
this.zhiData = this.daData;
this.level = 1;
myChart.clear();
myChart.dispose();
this.initCharts();
} else if (e.name.indexOf("大队") != -1) {
this.zhiData = this.jiuData;
this.level = 2;
myChart.clear();
myChart.dispose();
this.initCharts();
} else {
window.open("home/statistic-examination/station-examinee");

Loading…
Cancel
Save