12345678910111213141516171819202122232425 |
- import * as echarts from "echarts";
- export default {
- data(){
- return {
- getChartData:[]
- }
- },
- components:{
- },
- methods:{
- getPackageData2(gridData){
- this.getChartData = [];
- for(let i=0;i<gridData.length;i++){
- this.getChartData.push({product:gridData[i].wpName,'限电损失电量单位:万KWh':gridData[i].xdss,
- '故障损失电量单位:万KWh':gridData[i].gzss,'检修损失电量单位:万KWh':gridData[i].jxssl,
- '性能损失电量单位:万KWh':gridData[i].xnssl,'受累损失电量单位:万KWh':gridData[i].slss})
- }
- this.getChartDataImport();
- },
- getChartDataImport(){
- this.ECLZX.getFiveLossHistogram("chartHistogram",['product', '限电损失电量单位:万KWh', '故障损失电量单位:万KWh', '检修损失电量单位:万KWh', '性能损失电量单位:万KWh', '受累损失电量单位:万KWh'],this.getChartData);
- }
- },
- }
|