src/app/routes/report/report.component.css | ●●●●● patch | view | raw | blame | history | |
src/app/routes/reports/alarm/alarm.component.ts | ●●●●● patch | view | raw | blame | history |
src/app/routes/report/report.component.css
@@ -44,7 +44,7 @@ .table_bg{ margin: 0 85px;} .table_t{} .table_t .t01,.table_t .t02,.table_t .t03,.table_t .t04{ float: right;text-align:center;font-size: 12px;color: #00f6ff; font-weight: bold;} .table_t .t01,.table_t .t02,.table_t .t03,.table_t .t04{ float: right;text-align:center;font-size: 12px;color: #041324; font-weight: bold;} .table_t .t01{ width: 125px;} .table_t .t02{ width: 115px;} .table_t .t03{ width: 260px;} src/app/routes/reports/alarm/alarm.component.ts
@@ -273,14 +273,16 @@ index = index + 1; } } else { option.title.text = '指标报警占比情况'; option.series = []; this.serie.data = res.data.list; option.series.push(this.serie); const myChart = echarts.init(document.getElementById('mydiv' + index)); myChart.setOption(option, true); window.onresize = myChart.resize; index = index + 1; if (!!res.data.list && res.data.list.length > 0) { option.title.text = '指标报警占比情况'; this.serie.data = res.data.list; option.series.push(this.serie); const myChart = echarts.init(document.getElementById('mydiv' + index)); myChart.setOption(option, true); window.onresize = myChart.resize; index = index + 1; } // this.setOption(option,index); }