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 @@