From 61bd1a0d6adf9c78e545fb4b8d1e6817a8695e89 Mon Sep 17 00:00:00 2001
From: sjl <1716605279@qq.com>
Date: Wed, 26 Feb 2025 19:49:23 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/views/home/components/table.vue | 19 +------------------
.../src/views/home/components/testPopup.vue | 2 +-
2 files changed, 2 insertions(+), 19 deletions(-)
diff --git a/frontend/src/views/home/components/table.vue b/frontend/src/views/home/components/table.vue
index ad7906d..8ecb224 100644
--- a/frontend/src/views/home/components/table.vue
+++ b/frontend/src/views/home/components/table.vue
@@ -943,24 +943,7 @@ const handleTest = async (val: string) => {
dialogTitle.value = val
if (val === '手动检测') {
- if (!socketClient.Instance) {
- console.error('WebSocket 客户端实例不存在');
- return;
- }
-
- socketClient.Instance.connect();
- dataSocket.socketServe = socketClient.Instance;
- dataSocket.socketServe.registerCallBack('aaa', (res: { code: number; }) => {
- // 处理来自服务器的消息
- //console.log('Received message:', res)
- // 根据需要在这里添加更多的处理逻辑
- if (res.code === 20000) {
- ElMessage.error(message.message)
- loading.close()
- } else {
- webMsgSend.value = res
- }
- })
+
if (testType === 'reTest') {
ElMessageBox.confirm('请选择复检检测方式', '设备复检',
{
diff --git a/frontend/src/views/home/components/testPopup.vue b/frontend/src/views/home/components/testPopup.vue
index b47587d..1d7dc09 100644
--- a/frontend/src/views/home/components/testPopup.vue
+++ b/frontend/src/views/home/components/testPopup.vue
@@ -15,7 +15,7 @@
:webMsgSend="webMsgSend"/>
-
+