From 6f9fc0eb5d0f0928e8baed1184cc54a4b066c449 Mon Sep 17 00:00:00 2001 From: zhaozhenfang Date: Wed, 19 Jun 2024 17:49:59 +0800 Subject: [PATCH] frontend: add log tabs in topodisplay page --- web/src/types/index.ts | 7 +++- web/src/views/topoLogs/barChart.vue | 58 +++++++++++++++++++++-------- web/src/views/topoLogs/index.vue | 56 ++++++++++++++++++++++++---- 3 files changed, 97 insertions(+), 24 deletions(-) diff --git a/web/src/types/index.ts b/web/src/types/index.ts index 5801a66..0e33292 100644 --- a/web/src/types/index.ts +++ b/web/src/types/index.ts @@ -94,4 +94,9 @@ export interface TopoCustomFormType { node_rules: [[{ rule_condition: any, rule_type: string }, { rule_condition: any, rule_type: string }]]; description: string; [key: string]: unknown; -} \ No newline at end of file +} + +export type logData = { + name: string, + data: (string | number)[][] +}; \ No newline at end of file diff --git a/web/src/views/topoLogs/barChart.vue b/web/src/views/topoLogs/barChart.vue index 5264d48..cf5dd05 100644 --- a/web/src/views/topoLogs/barChart.vue +++ b/web/src/views/topoLogs/barChart.vue @@ -3,42 +3,66 @@ @@ -29,8 +67,12 @@ const getLogs = () => { height: 400px; position: fixed; bottom: 0; - border: 1px solid red; background-color: #fff; + &_tabs { + width: 100%; + height: 100%; + } + } \ No newline at end of file -- Gitee