From 8d8b77fc58fb6532278cb9cc6485910b4f1023f6 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Wed, 26 Mar 2025 16:36:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B8=85=E6=B4=97=E7=AE=A1=E9=81=93?= =?UTF-8?q?=E4=B8=AD=E5=A2=9E=E5=8A=A0=E6=B3=A8=E5=B0=84=E6=B3=B5=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/clean/index.vue | 166 ++++++++++++++++++++++++++++++++++++++-------- src/views/login/index.vue | 2 +- src/views/point/index.vue | 1 - 3 files changed, 139 insertions(+), 30 deletions(-) diff --git a/src/views/clean/index.vue b/src/views/clean/index.vue index 3e60316..c9d575e 100644 --- a/src/views/clean/index.vue +++ b/src/views/clean/index.vue @@ -92,38 +92,128 @@ const syringePipelineWashStop = async () => { } await sendControl(params) } + +const form = ref({ + speed: undefined, + direction: 'forward', +}) + +const pumpStart = ref(false) + +const syringePumpInjectionVolumeSet = async () => { + if (!form.value.speed) { + FtMessage.error('请输入注射泵速度') + return + } + if (form.value.speed > 100) { + FtMessage.error('清洗速度最大为100 uL/min') + return + } + const params = { + cmdCode: 'syringe_pump_start', + cmdId: '', + params: { + direction: form.value.direction, + speed: form.value.speed, + }, + } + await sendControl(params, 'debug') + pumpStart.value = true +} + +const syringePumpStop = async () => { + const params = { + cmdCode: 'syringe_pump_stop', + cmdId: '', + } + await sendControl(params, 'debug') + pumpStart.value = false +} @@ -145,4 +235,24 @@ const syringePipelineWashStop = async () => { justify-content: center; } } +.el-row { + width: 100%; +} +.el-col { + width: 100%; + display: flex; + flex-direction: column; + //justify-content: center; + align-items: center; +} +.el-col:first-child { + border-right: 1px solid #ccc; +} +.unit-text { + font-size: 35px; +} +.title { + margin: 80px 0; + //text-decoration: underline; +} diff --git a/src/views/login/index.vue b/src/views/login/index.vue index bb965a0..5d1882b 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -46,7 +46,7 @@ onBeforeUnmount(() => {
- v1.0系统初始化中 {{ progress }}% + v1.0.1系统初始化中 {{ progress }}%
diff --git a/src/views/point/index.vue b/src/views/point/index.vue index 91dfed7..0734f73 100644 --- a/src/views/point/index.vue +++ b/src/views/point/index.vue @@ -1,5 +1,4 @@