From 0acec4f940404c27375c3dc3c412db56bf1d5777 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Fri, 13 Jun 2025 15:48:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BA=AE=E5=BA=A6=E8=AE=B0=E5=BF=86;=20?= =?UTF-8?q?=E8=AF=95=E7=AE=A1=E5=86=B7=E5=8D=B4=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/home/Tube/index.vue | 3 ++- src/stores/systemStore.ts | 1 + src/types/system.d.ts | 3 ++- src/views/home/index.vue | 5 ++--- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/home/Tube/index.vue b/src/components/home/Tube/index.vue index 50bb2af..dbe8a19 100644 --- a/src/components/home/Tube/index.vue +++ b/src/components/home/Tube/index.vue @@ -108,7 +108,7 @@ defineExpose({ 已放置 -
+
预热中 加热中 恒温中 + 试管冷却中 降温中
diff --git a/src/stores/systemStore.ts b/src/stores/systemStore.ts index ebfb58e..b9f49bd 100644 --- a/src/stores/systemStore.ts +++ b/src/stores/systemStore.ts @@ -234,6 +234,7 @@ export const useSystemStore = defineStore('system', { systemList: [], systemLogList: [], currentTime: '0000-00-00 00:00:00', + lightNum: 100, }), actions: { insertLog(log: System.SystemLog) { diff --git a/src/types/system.d.ts b/src/types/system.d.ts index 577b3f8..97c21ba 100644 --- a/src/types/system.d.ts +++ b/src/types/system.d.ts @@ -10,6 +10,7 @@ declare namespace System { loginForm: LoginForm systemLogList: SystemLog[] currentTime: string + lightNum: number } interface SystemLog { cmdName: string @@ -61,7 +62,7 @@ declare namespace System { moduleCode: 'heat_module_01' | 'heat_module_02' | 'heat_module_03' | 'heat_module_04' | 'heat_module_05' | 'heat_module_06' trayUp: 0 | 1 trayStatus: 0 | 1 - heatingType: 'stop' | 'warm_up' | 'thermostatic' | 'constant' + heatingType: 'stop' | 'warm_up' | 'thermostatic' | 'constant' | 'trayCooling' fanOpen: boolean heating?: boolean capExist: boolean diff --git a/src/views/home/index.vue b/src/views/home/index.vue index d4876a7..24f4fc2 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -311,13 +311,12 @@ const warmUpStart = async () => { } const lightVisible = ref(false) -const lightNum = ref(0) const photoUrl = ref('') const take_photo = async () => { const params = { - lightIntensity: lightVisible.value ? lightNum.value : null, + lightIntensity: lightVisible.value ? systemStore.lightNum : null, } photoUrl.value = await takePhoto(params) } @@ -364,7 +363,7 @@ const savePhoto = () => {
亮度: - +