From 3b4ab19a4b05e098e971746c692a0d012fde7445 Mon Sep 17 00:00:00 2001 From: liudl <673013083@qq.com> Date: 星期五, 26 九月 2025 17:49:12 +0800 Subject: [PATCH] 修改问题 --- Web/src/views/device/deviceStartStop/index.vue | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Web/src/views/device/deviceStartStop/index.vue b/Web/src/views/device/deviceStartStop/index.vue index eb04f31..6359ab4 100644 --- a/Web/src/views/device/deviceStartStop/index.vue +++ b/Web/src/views/device/deviceStartStop/index.vue @@ -5,10 +5,10 @@ <el-collapse-item title="浠撳簱涓�灞�" name="1"> <el-card class="box-card" shadow="hover"> <el-text style="margin-right: 15px;">鎵樼洏杈撻��</el-text> - <el-button @click="write('OnePalletStart','1')">鍚姩</el-button> - <el-button @click="write('OnePalletStop','1')">鍋滄</el-button> + <el-button @mousedown="writeDown('OnePalletStart','1')" @mouseup="writeUp('OnePalletStart','1')">鍚姩</el-button> + <el-button @mousedown="writeDown('OnePalletStop','1')" @mouseup="writeUp('OnePalletStop','1')">鍋滄</el-button> </el-card> - <el-card class="box-card" shadow="hover" style="margin-top: 3px;"> + <!-- <el-card class="box-card" shadow="hover" style="margin-top: 3px;"> <el-text style="margin-right: 15px;">鎷嗚泛鏈哄櫒浜�1</el-text> <el-button @click="write('OneChaiStart','1')">鍚姩</el-button> <el-button @click="write('OneChaiStop','1')">鍋滄</el-button> @@ -18,11 +18,11 @@ <el-text style="margin-right: 15px;">鎷嗚泛鏈哄櫒浜�2</el-text> <el-button @click="write('OneChaiTwoStart','1')">鍚姩</el-button> <el-button @click="write('OneChaiTwoStop','1')">鍋滄</el-button> - </el-card> + </el-card> --> <el-card class="box-card" shadow="hover" style="margin-top: 3px;"> <el-text style="margin-right: 15px;">浠剁杈撻��</el-text> - <el-button @click="write('OneBoxStart','1')">鍚姩</el-button> - <el-button @click="write('OneBoxStop','1')">鍋滄</el-button> + <el-button @mousedown="writeDown('OneBoxStart','1')" @mouseup="writeUp('OneBoxStart','1')">鍚姩</el-button> + <el-button @mousedown="writeDown('OneBoxStop','1')" @mouseup="writeUp('OneBoxStop','1')">鍋滄</el-button> </el-card> </el-collapse-item> </el-collapse> @@ -61,8 +61,8 @@ <el-collapse-item title="浠撳簱涓夊眰" name="3"> <el-card class="box-card" shadow="hover" style="margin-top: 3px;"> <el-text style="margin-right: 15px;">鎵樼洏杈撻��</el-text> - <el-button @click="write('ThreePalletStart','3')">鍚姩</el-button> - <el-button @click="write('ThreePalletStop','3')">鍋滄</el-button> + <el-button @mousedown="writeDown('ThreePalletStart','3')" @mouseup="writeUp('ThreePalletStart','3')">鍚姩</el-button> + <el-button @mousedown="writeDown('ThreePalletStop','3')" @mouseup="writeUp('ThreePalletStop','3')">鍋滄</el-button> </el-card> </el-collapse-item> </el-collapse> -- Gitblit v1.8.0