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 = () => {
亮度: - +