From 65f7d99379c64fe680b1943a038587245e7d3371 Mon Sep 17 00:00:00 2001
From: YueL1331 <358700404@qq.com>
Date: Wed, 7 Jan 2026 17:27:40 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=95=99=E5=AD=A6=E8=AE=BE?=
=?UTF-8?q?=E8=AE=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
zhandianxinxi/光谱数据监控/src/App.vue | 15 +++++++++--
.../光谱数据监控/src/sidevueold.vue | 25 ++++++++++++++++---
2 files changed, 35 insertions(+), 5 deletions(-)
diff --git a/zhandianxinxi/光谱数据监控/src/App.vue b/zhandianxinxi/光谱数据监控/src/App.vue
index ce9ad40..382befe 100644
--- a/zhandianxinxi/光谱数据监控/src/App.vue
+++ b/zhandianxinxi/光谱数据监控/src/App.vue
@@ -129,7 +129,7 @@
-
+
@@ -270,10 +270,21 @@ const hideSelected = () => {
ElMessage.info('选中的设备已在屏蔽列表中')
}
}
-
+const siderold = ref(null)
+var tempdata=0
const showDetails = (row) => {
activeDevice.value = row
drawerVisible.value = true
+ nextTick(() => {
+ // 此时 siderold.value 才有值
+ // 使用 ?. 防止极个别情况下组件未挂载导致的报错
+ if (siderold.value) {
+ siderold.value.loaddata(row)
+ tempdata++;
+ } else {
+ console.warn("子组件尚未挂载")
+ }
+ })
}
// --- 过滤与排序 ---
diff --git a/zhandianxinxi/光谱数据监控/src/sidevueold.vue b/zhandianxinxi/光谱数据监控/src/sidevueold.vue
index 0024ee1..ecffbf9 100644
--- a/zhandianxinxi/光谱数据监控/src/sidevueold.vue
+++ b/zhandianxinxi/光谱数据监控/src/sidevueold.vue
@@ -1,20 +1,36 @@
+
+
+ {{bbb}}
@@ -52,7 +71,7 @@ export default {
- aaaaaa
+