From c18a2ccb77849b693c3fc8cf6ffc08f8987af37c Mon Sep 17 00:00:00 2001 From: guoapeng Date: Wed, 16 Jul 2025 16:28:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/running/incubating.svg | 4 +- src/pages/Index/Index.vue | 11 +++ src/pages/Index/Regular/Emergency.vue | 96 ++++++++++------------- src/pages/Index/Regular/Running.vue | 12 +-- src/pages/Index/Settings/Network.vue | 2 +- src/pages/Index/components/Consumables/TabBar.vue | 4 +- src/store/modules/device.ts | 7 ++ src/websocket/socket.ts | 2 + 8 files changed, 74 insertions(+), 64 deletions(-) mode change 100755 => 100644 src/assets/running/incubating.svg diff --git a/src/assets/running/incubating.svg b/src/assets/running/incubating.svg old mode 100755 new mode 100644 index b0101ab..ad41a6f --- a/src/assets/running/incubating.svg +++ b/src/assets/running/incubating.svg @@ -4,8 +4,8 @@ - - + + diff --git a/src/pages/Index/Index.vue b/src/pages/Index/Index.vue index 4750dd7..7475c67 100644 --- a/src/pages/Index/Index.vue +++ b/src/pages/Index/Index.vue @@ -809,6 +809,7 @@ const handleAppWarningFlagState = (data: AppFlagStateListMessage['data']) => { if (data && data.states && data.states.length) { // showWarnModal isTriggerAlarm.value = true + deviceStore.setAlarmNum(data.warningAndErrorFlagTriggerNum || 0) deviceStore.setAlarmList(data.states) deviceStore.updatealarmFlagState(data) } @@ -969,6 +970,11 @@ const startTest = async () => { // 暂停测试 const pauseTest = async () => { + await ElMessageBox.confirm('是否暂停测试?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + }) deviceWaitingModelInfo.value = { title: '设备正在响应中', message: '请不要有任何手动操作!', @@ -985,6 +991,11 @@ const pauseTest = async () => { // 停止测试时清除标记 const stopTest = async () => { + await ElMessageBox.confirm('是否停止测试?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + }) deviceWaitingModelInfo.value = { title: '设备正在响应中', message: '请不要有任何手动操作!', diff --git a/src/pages/Index/Regular/Emergency.vue b/src/pages/Index/Regular/Emergency.vue index daa3656..ff238cd 100644 --- a/src/pages/Index/Regular/Emergency.vue +++ b/src/pages/Index/Regular/Emergency.vue @@ -15,7 +15,7 @@
- 血液类型 + 样本类型
- +
-
-