fiveLossRatesHistogramChart.js 1.0 KB

12345678910111213141516171819202122232425
  1. import * as echarts from "echarts";
  2. export default {
  3. data(){
  4. return {
  5. getChartData:[]
  6. }
  7. },
  8. components:{
  9. },
  10. methods:{
  11. getPackageData2(gridData){
  12. this.getChartData = [];
  13. for(let i=0;i<gridData.length;i++){
  14. this.getChartData.push({product:gridData[i].wpName,'限电损失电量单位:万KWh':gridData[i].xdss,
  15. '故障损失电量单位:万KWh':gridData[i].gzss,'检修损失电量单位:万KWh':gridData[i].jxssl,
  16. '性能损失电量单位:万KWh':gridData[i].xnssl,'受累损失电量单位:万KWh':gridData[i].slss})
  17. }
  18. this.getChartDataImport();
  19. },
  20. getChartDataImport(){
  21. this.ECLZX.getFiveLossHistogram("chartHistogram",['product', '限电损失电量单位:万KWh', '故障损失电量单位:万KWh', '检修损失电量单位:万KWh', '性能损失电量单位:万KWh', '受累损失电量单位:万KWh'],this.getChartData);
  22. }
  23. },
  24. }