优化 监控中心 前台页面

This commit is contained in:
fks-yangshouda
2024-08-22 15:23:02 +08:00
parent 05bb62752b
commit 7b1f25689e
12 changed files with 122 additions and 80 deletions

View File

@@ -155,7 +155,7 @@
chartInstance.setOption(option);
};
onMounted(() => {
// draw();
draw();
});
// 下载图表

View File

@@ -32,9 +32,9 @@
<ns-icon :name="iconName" size="18" style="margin-right: 10px" @click="change" />
</div>
</div>
<span style="padding-left: 10px; line-height: 20px"
><ns-icon name="title" size="11" style="margin-right: 3px" />统计数据</span
>
<span style="padding-left: 10px; line-height: 20px">
<ns-icon name="title" size="11" style="margin-right: 3px" />统计数据
</span>
</div>
<div v-if="activeKey == '1'" style="height: 72%; width: 100%">

View File

@@ -171,7 +171,7 @@
// 日期类型
const dateTypeValue = ref();
const frequencyValue = ref();
const frequencyValue = ref(0);
const activeKey = ref('1');
@@ -284,13 +284,13 @@
const getSelectGraph = (key: any) => {
if (key) {
activeKey.value = key;
if (
pageData.graphTableList.length > 0 &&
pageData.graphTableColumns.length > 0 &&
pageData.graphGraphList.length > 0
) {
return;
}
// if (
// pageData.graphTableList.length > 0 &&
// pageData.graphTableColumns.length > 0 &&
// pageData.graphGraphList.length > 0
// ) {
// return;
// }
}
let startTime = '';
@@ -364,9 +364,9 @@
const getSelectAnalyse = (key: any) => {
if (key) {
activeKey.value = key;
if (pageData.analysisGraphList.length > 0 && pageData.analysisTableList.length > 0) {
return;
}
// if (pageData.analysisGraphList.length > 0 && pageData.analysisTableList.length > 0) {
// return;
// }
}
let startTime = '';
let endTime = '';