From 46727a4eeb5ae3d3a0b668a3b274ac1dcc9a6de0 Mon Sep 17 00:00:00 2001 From: betaqi <3188864257@qq.com> Date: Mon, 24 Nov 2025 11:47:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=B3=BB=E6=95=B0=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/stationData/component/line-dlg.vue | 44 +---- .../stationData/component/newDataChart.vue | 50 +++--- .../topology/components/detailDrawer.vue | 137 ++++++++------- .../transfer/components/deviceDrawer.vue | 156 ++++++++++-------- 4 files changed, 189 insertions(+), 198 deletions(-) diff --git a/src/views/stationData/component/line-dlg.vue b/src/views/stationData/component/line-dlg.vue index feec660..976212d 100644 --- a/src/views/stationData/component/line-dlg.vue +++ b/src/views/stationData/component/line-dlg.vue @@ -11,25 +11,11 @@
设置系数:
-
- 除 -
-
{{ formData.coefficient }}
+
-
- 乘 -
@@ -46,7 +32,6 @@ const title = ref() const createObj = { id: '', coefficient: 1, - operator: '*', } const formData = ref(cloneDeep(createObj)) as any @@ -63,19 +48,16 @@ async function onSave() { } const visibility = ref(false) -function open(titleStr: string, id: string, coefficient: string, operator: string) { +function open(titleStr: string, id: string, coefficient: string) { title.value = titleStr formData.value.id = id if (coefficient) { formData.value.coefficient = Number(coefficient) } - if (operator) { - formData.value.operator = operator - } visibility.value = true } -const ALLOWED_VALUES = [1, 10, 100, 1000] +const ALLOWED_VALUES = [0.001, 0.01, 0.1, 1, 10, 100, 1000] function decrease() { const currentIndex = ALLOWED_VALUES.indexOf(formData.value.coefficient) @@ -129,27 +111,7 @@ defineExpose({ display: flex; gap: 10px; } - .operator-btn { - width: 40px; - height: 32px; - line-height: 32px; - text-align: center; - border: 1px solid var(--el-border-color); - cursor: pointer; - border-radius: var(--el-border-radius-base); - color: var(--el-text-color-regular); - background-color: var(--el-bg-color); - &.active { - background-color: var(--el-color-primary); - color: var(--el-color-white); - border-color: var(--el-color-primary); - } - &:hover:not(.active) { - color: var(--el-color-primary); - border-color: var(--el-color-primary-light-7); - background-color: var(--el-color-primary-light-9); - } - } + .mx-2 { margin: 0 10px; } diff --git a/src/views/stationData/component/newDataChart.vue b/src/views/stationData/component/newDataChart.vue index e608300..0d31d3a 100644 --- a/src/views/stationData/component/newDataChart.vue +++ b/src/views/stationData/component/newDataChart.vue @@ -10,7 +10,7 @@ @click="onChartClick" /> - +