xufenglei
2018-04-27 c597ff5895ae803ce5584f3e8463d8f9224b0fa4
优化 饼图功能
2 files modified
6 ■■■■■ changed files
src/app/routes/report/report.component.css 2 ●●● patch | view | raw | blame | history
src/app/routes/reports/alarm/alarm.component.ts 4 ●●● 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 = [];
          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);
        }