From d56f913e538030946051448c885b7951c268ccf5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=82=96=E6=99=8B=E9=A3=9E?= <378266566@qq.com>
Date: Tue, 28 Oct 2025 01:19:31 +0800
Subject: [PATCH] =?UTF-8?q?fix:svg=E8=AF=BB=E5=AE=9E=E6=97=B6=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E6=B5=8B=E8=AF=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../demo/components/ParameterInfo.vue | 2 -
.../dashboard/demo/components/ProjectCard.vue | 3 -
.../dashboard/demo/components/staticImg.vue | 1 -
.../dashboard/demo/components/staticSvg.vue | 106 +-------
.../dashboard/demo/components/svg copy.vue | 157 ++++++++++++
src/views/dashboard/demo/components/svg.vue | 226 +++++++-----------
src/views/dashboard/demo/index.vue | 5 +-
7 files changed, 253 insertions(+), 247 deletions(-)
create mode 100644 src/views/dashboard/demo/components/svg copy.vue
diff --git a/src/views/dashboard/demo/components/ParameterInfo.vue b/src/views/dashboard/demo/components/ParameterInfo.vue
index 22a87e3..1e390a1 100644
--- a/src/views/dashboard/demo/components/ParameterInfo.vue
+++ b/src/views/dashboard/demo/components/ParameterInfo.vue
@@ -21,13 +21,11 @@ watch(
},
)
function getInterval(record: any) {
- console.log(record)
if (record.predictValue === '-')
return '-'
record.predictValue = Number(record.predictValue).toFixed(2)
const threshold = record.ResidualThreshold
- console.log(threshold)
const predictValue = record.predictValue || 0
return `[${Number(predictValue) - threshold},${Number(predictValue) + threshold}]`
}
diff --git a/src/views/dashboard/demo/components/ProjectCard.vue b/src/views/dashboard/demo/components/ProjectCard.vue
index 20a26c8..5a7b135 100644
--- a/src/views/dashboard/demo/components/ProjectCard.vue
+++ b/src/views/dashboard/demo/components/ProjectCard.vue
@@ -32,15 +32,12 @@ async function getNewData() {
ifColor = res === '1'
gridData.value.push(Object.assign({}, item, { ifColor }))
-
- console.log(gridData.value)
}
catch (e) {
}
}
}
-
// 页面挂载时批量请求并更新数据(避免在模板中调用异步)
// onMounted(async () => {
// const rows = props.data.Content || []
diff --git a/src/views/dashboard/demo/components/staticImg.vue b/src/views/dashboard/demo/components/staticImg.vue
index d53ec8a..3073ac0 100644
--- a/src/views/dashboard/demo/components/staticImg.vue
+++ b/src/views/dashboard/demo/components/staticImg.vue
@@ -25,7 +25,6 @@ watch(
)
function getAssetsFile() {
const url = props.data.path
- console.log(url)
return new URL(`../../../../assets/${url}`, import.meta.url).href
}
diff --git a/src/views/dashboard/demo/components/staticSvg.vue b/src/views/dashboard/demo/components/staticSvg.vue
index eae6e26..bae9513 100644
--- a/src/views/dashboard/demo/components/staticSvg.vue
+++ b/src/views/dashboard/demo/components/staticSvg.vue
@@ -1,5 +1,5 @@
-
-
-