From d978900344c3f3a610a1d28465153517fbb06ddc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=A2=A6=E8=BF=9C?= <1063331231@qq.com> Date: Wed, 2 Jul 2025 14:10:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E6=B6=B2=E5=A2=9E=E5=8A=A0=E6=8E=92?= =?UTF-8?q?=E6=B6=B2=E7=8A=B6=E6=80=81=E7=9A=84=E5=88=A4=E6=96=AD=20?= =?UTF-8?q?=E6=8E=92=E6=B6=B2=E5=A2=9E=E5=8A=A0=E5=8A=A0=E6=B6=B2=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/liquid/index.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/liquid/index.vue b/src/views/liquid/index.vue index 44b179f..970ee98 100644 --- a/src/views/liquid/index.vue +++ b/src/views/liquid/index.vue @@ -98,6 +98,10 @@ const onStartAddLiquid = async () => { FtMessage.warning('加液容量不能大于总容量') return } + if (drainWorkState.value.workState !== 'idle') { + ElMessage.warning('正在排液中,不可进行加液操作') + return + } const params = { className: 'AddLiquidService', fnName: 'start', @@ -123,6 +127,10 @@ const onStopAddLiquid = async () => { } // 开始排液 const onStartDrainLiquid = async () => { + if (addWorkState.value.workState !== 'idle') { + ElMessage.warning('正在加液中,不可进行排液操作') + return + } const statusName = getDeviceStatus() if (statusName) { FtMessageBox.error(statusName) @@ -140,10 +148,6 @@ const onStartDrainLiquid = async () => { } const onStopDrainLiquid = async () => { - if (drainWorkState.value.workState === 'idle') { - ElMessage.warning('正在加液中,不可进行排液操作') - return - } const params = { className: 'DrainLiquidService', fnName: 'stop',