能耗监测 分析 右侧图

This commit is contained in:
fks-yangshouda
2024-07-12 17:05:41 +08:00
parent 0282d2d1aa
commit 4fcdae08de
4 changed files with 389 additions and 29 deletions

View File

@@ -24,7 +24,7 @@
<environment-table ref="tableRef" v-else />
</div>
<div v-else style="height: 90%">
<analysis-graph ref="graphRef" v-if="isGraph" />
<analysis-graph ref="analysisGraphRef" v-if="isGraph" />
<analysis-table ref="analysisTableRef" v-else />
</div>
</div>
@@ -44,6 +44,8 @@
const treeRef = ref();
const graphRef = ref();
const analysisGraphRef = ref();
const tableRef = ref();
const analysisTableRef = ref();
@@ -59,6 +61,10 @@
if (graphRef.value) {
graphRef.value.downloadChart();
}
} else {
if (analysisGraphRef.value) {
analysisGraphRef.value.downloadChart();
}
}
};