能耗监测 分析 右侧图
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user