|
|
@ -21,10 +21,10 @@ |
|
|
|
<div class="tableBox1"> |
|
|
|
<div class="tableBox1"> |
|
|
|
<el-table :data="tbfxDataTable" height="345px"> |
|
|
|
<el-table :data="tbfxDataTable" height="345px"> |
|
|
|
<el-table-column label="月份" align="center" prop="month" width="100"/> |
|
|
|
<el-table-column label="月份" align="center" prop="month" width="100"/> |
|
|
|
<el-table-column label="本期" align="center" prop="year"/> |
|
|
|
<el-table-column label="本期/kWh" align="center" prop="year"/> |
|
|
|
<el-table-column label="同期" align="center" prop="toYear"/> |
|
|
|
<el-table-column label="同期/kWh" align="center" prop="toYear"/> |
|
|
|
<el-table-column label="同比(%)" align="center" prop="compute"/> |
|
|
|
<el-table-column label="同比" align="center" prop="compute"/> |
|
|
|
<el-table-column label="累计同比(%)" align="center" prop="addUp"/> |
|
|
|
<el-table-column label="累计同比" align="center" prop="addUp"/> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tab-pane> |
|
|
@ -45,8 +45,8 @@ |
|
|
|
<el-table-column label="用能设备" align="center" prop="deviceName"/> |
|
|
|
<el-table-column label="用能设备" align="center" prop="deviceName"/> |
|
|
|
<el-table-column :label="label1" align="center" :prop="prop1"/> |
|
|
|
<el-table-column :label="label1" align="center" :prop="prop1"/> |
|
|
|
<el-table-column :label="label2" align="center" :prop="prop2"/> |
|
|
|
<el-table-column :label="label2" align="center" :prop="prop2"/> |
|
|
|
<el-table-column label="增加值" align="center" prop="addUp"/> |
|
|
|
<el-table-column label="增加值/kWh" align="center" prop="addUp"/> |
|
|
|
<el-table-column label="环比(%)" align="center" prop="compute"/> |
|
|
|
<el-table-column label="环比" align="center" prop="compute"/> |
|
|
|
<el-table-column label="操作" align="center"> |
|
|
|
<el-table-column label="操作" align="center"> |
|
|
|
<template v-slot="scope"> |
|
|
|
<template v-slot="scope"> |
|
|
|
<el-button type="primary" size="small" :icon="Histogram" @click="handleChart(scope)">图表</el-button> |
|
|
|
<el-button type="primary" size="small" :icon="Histogram" @click="handleChart(scope)">图表</el-button> |
|
|
@ -612,8 +612,12 @@ function huanbiChartFun(){ |
|
|
|
|
|
|
|
|
|
|
|
/** 页面销毁时*/ |
|
|
|
/** 页面销毁时*/ |
|
|
|
onBeforeUnmount(() => { |
|
|
|
onBeforeUnmount(() => { |
|
|
|
|
|
|
|
if(tongbiChart){ |
|
|
|
tongbiChart.dispose(); // 销毁实例,防止内存泄漏 |
|
|
|
tongbiChart.dispose(); // 销毁实例,防止内存泄漏 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(huanbiChart){ |
|
|
|
huanbiChart.dispose(); |
|
|
|
huanbiChart.dispose(); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
</script> |
|
|
|