From 3c9c0336f7c1783dfea1f07b7fc970cca2d44351 Mon Sep 17 00:00:00 2001 From: fuguobin Date: Fri, 20 Oct 2023 17:26:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E8=AF=A6=E6=83=85=E5=88=B6?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/device/types.ts | 8 + src/types/auto-imports.d.ts | 4 + src/views/details/index.scss | 6 +- src/views/details/index.vue | 505 +++++++++++++++++++++++++++++++++-- vite.config.ts | 2 +- 5 files changed, 506 insertions(+), 19 deletions(-) diff --git a/src/api/device/types.ts b/src/api/device/types.ts index 3c95d82..6bfe661 100644 --- a/src/api/device/types.ts +++ b/src/api/device/types.ts @@ -73,3 +73,11 @@ export interface parameterVo { updateTime: null; version: null; } +export interface seriesVo { + name: string; + type: string; + smooth: boolean; + symbol: string; + paramUnit: string; + data: Array; +} diff --git a/src/types/auto-imports.d.ts b/src/types/auto-imports.d.ts index e5c7bdb..5742656 100644 --- a/src/types/auto-imports.d.ts +++ b/src/types/auto-imports.d.ts @@ -5,6 +5,8 @@ declare global { const ElForm: typeof import('element-plus/es')['ElForm'] const ElMessage: typeof import('element-plus/es')['ElMessage'] const ElMessageBox: typeof import('element-plus/es')['ElMessageBox'] + const ElNotification: typeof import('element-plus/es')['ElNotification'] + const NEllipsis: typeof import('naive-ui')['NEllipsis'] const asyncComputed: typeof import('@vueuse/core')['asyncComputed'] const autoResetRef: typeof import('@vueuse/core')['autoResetRef'] const computed: typeof import('vue')['computed'] @@ -274,6 +276,8 @@ declare module 'vue' { readonly ElForm: UnwrapRef readonly ElMessage: UnwrapRef readonly ElMessageBox: UnwrapRef + readonly ElNotification: UnwrapRef + readonly NEllipsis: UnwrapRef readonly asyncComputed: UnwrapRef readonly autoResetRef: UnwrapRef readonly computed: UnwrapRef diff --git a/src/views/details/index.scss b/src/views/details/index.scss index f8973ae..f86e1ef 100644 --- a/src/views/details/index.scss +++ b/src/views/details/index.scss @@ -12,7 +12,11 @@ .comparisonInfo { .stackedLine { width: 100%; - height: 80vh; + height: 82vh; + font-size: 1.4rem; + text-align: center; + color: #606266; + line-height: 82vh; } } } diff --git a/src/views/details/index.vue b/src/views/details/index.vue index 7b3bf6d..ca759af 100644 --- a/src/views/details/index.vue +++ b/src/views/details/index.vue @@ -1,7 +1,7 @@