From d87c67b0052e047380b7781204f28e793630a396 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Thu, 5 Jun 2025 19:37:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B7=A5=E8=89=BA=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/home/Tube/index.vue | 34 ++++++++++++++++++++++++++++------ src/stores/systemStore.ts | 8 +++++++- src/views/craft/index.vue | 5 ++--- 3 files changed, 37 insertions(+), 10 deletions(-) diff --git a/src/components/home/Tube/index.vue b/src/components/home/Tube/index.vue index 2843bd4..e476b1d 100644 --- a/src/components/home/Tube/index.vue +++ b/src/components/home/Tube/index.vue @@ -52,13 +52,18 @@ const hearInfo = computed(() => { console.log(hearInfo.value) const craft = computed(() => { - return systemStore.systemStatus.tray?.find(item => item.heatModuleId === props.data.moduleCode)?.crafts + return systemStore.systemStatus.trays?.find(item => item.heatModuleCode === props.data.moduleCode)?.crafts }) const tray = computed(() => { return systemStore.systemStatus.trays?.find(item => item.heatModuleCode === props.data.moduleCode) }) +const craftSteps = computed(() => { + const steps = systemStore.systemStatus.trays?.find(item => item.heatModuleCode === props.data.moduleCode)?.crafts?.craft?.steps + return steps ? JSON.parse(steps) : undefined +}) + const setTemperature = () => { emits('setTemperature', props.data.moduleCode) } @@ -121,6 +126,12 @@ defineExpose({ 预设已暂停 预设执行错误 预设执行成功 + +
+ {{ (craft.currentIndex || 0) + 1 }}. + {{ craftSteps[craft.currentIndex || 0].params.description }} +
+
暂停 @@ -151,10 +162,10 @@ defineExpose({ {{ data.temperature || '--' }} - 降温中 - 加热中 - 烘干中 - 退火中 + 降温中 + 加热中 + 烘干中 + 退火中