From 1a7b7c3d3370d9033e0b90a8e74e3acfb5709139 Mon Sep 17 00:00:00 2001 From: hwh <332078369@qq.com> Date: 星期二, 10 九月 2024 17:00:17 +0800 Subject: [PATCH] Merge branch 'master' of http://47.95.120.53:8083/r/WCSNet6 --- 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