From d3e1346d52806f00d21eba23cabf9cfa4f61d7d4 Mon Sep 17 00:00:00 2001
From: hwh <332078369@qq.com>
Date: 星期四, 05 九月 2024 16:34:00 +0800
Subject: [PATCH] 测试页面,修复bug

---
 Web/src/views/device/deviceInfo/index.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/Web/src/views/device/deviceInfo/index.vue b/Web/src/views/device/deviceInfo/index.vue
index 9101e17..9d46727 100644
--- a/Web/src/views/device/deviceInfo/index.vue
+++ b/Web/src/views/device/deviceInfo/index.vue
@@ -37,9 +37,12 @@
 			</el-col>
 			<el-col :span="21">
 				<div class="card-page">
-					<el-button type="primary" :plain="floorStates.isPlain1" @click="floorTogglePlain(1)">涓�灞傚钩闈�</el-button>
-					<el-button type="primary" :plain="floorStates.isPlain2" @click="floorTogglePlain(2)">浜屽眰骞抽潰</el-button>
-					<el-button type="primary" :plain="floorStates.isPlain3" @click="floorTogglePlain(3)">涓夊眰骞抽潰</el-button>
+					<el-button type="primary" :plain="floorStates.isPlain1"
+						@click="floorTogglePlain(1)">涓�灞傚钩闈�</el-button>
+					<el-button type="primary" :plain="floorStates.isPlain2"
+						@click="floorTogglePlain(2)">浜屽眰骞抽潰</el-button>
+					<el-button type="primary" :plain="floorStates.isPlain3"
+						@click="floorTogglePlain(3)">涓夊眰骞抽潰</el-button>
 				</div>
 				<div style="margin: 40px; height: 50%;">
 					<div class="grid-container-line">
@@ -148,7 +151,9 @@
 	});
 });
 const handleSwitchChange = (field: string, value: boolean) => {
-	signalR.invoke('UpdateService', state.value);
+	const param = { [field]: value };
+	debugger;
+	signalR.invoke('UpdateService', param);
 };
 
 // 鏇存柊杈撻�佺嚎鏁版嵁鐨勯�氱敤鍑芥暟

--
Gitblit v1.8.0