From 25f115d9c8f3b27235c94dcc7fbd9ec85afe36b3 Mon Sep 17 00:00:00 2001 From: LiLongLong <13717757313@163.com> Date: Tue, 4 Mar 2025 03:56:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B0=83=E8=AF=95=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/History.vue | 2 +- src/views/debug/index.vue | 26 ++++++++++++++------------ src/views/matrixCraft/index.vue | 16 +++++++++++++--- 3 files changed, 28 insertions(+), 16 deletions(-) diff --git a/src/views/History.vue b/src/views/History.vue index edcdb3a..6783053 100644 --- a/src/views/History.vue +++ b/src/views/History.vue @@ -4,7 +4,7 @@ 删除
- + diff --git a/src/views/debug/index.vue b/src/views/debug/index.vue index 6a7eca8..1c7751b 100644 --- a/src/views/debug/index.vue +++ b/src/views/debug/index.vue @@ -79,12 +79,14 @@ 湿度: - + +
+ 开始除湿 + 结束除湿 +
- - 确定 - + @@ -160,16 +162,16 @@
气压阀
- 打开清洗阀 - 关闭清洗阀 + 打开清洗阀 + 关闭清洗阀
- 打开喷嘴阀 - 关闭喷嘴阀 + 打开喷嘴阀 + 关闭喷嘴阀
- 打开除湿阀 - 关闭除湿阀 + 打开除湿阀 + 关闭除湿阀
@@ -354,11 +356,11 @@ import { }) } - const onControlValve = (type:ControlNitrogen) => { + const onControlValve = (type:ControlNitrogen,open:boolean) => { const params = { params:{ valveType:type, - isOpen:true + isOpen:open } } controlValve(params).then((res:any) => { diff --git a/src/views/matrixCraft/index.vue b/src/views/matrixCraft/index.vue index 5c89591..9fac6dc 100644 --- a/src/views/matrixCraft/index.vue +++ b/src/views/matrixCraft/index.vue @@ -61,6 +61,7 @@ (defaultCraft); watch(()=>settingStore.matrixList, (newVal)=>{ if(newVal && newVal.length){ - defaultSprayData.value.matrixId = newVal[0].id + onMatrixChange(newVal[0].id) + }else{ + onMatrixChange(null) } + console.log('defaultSprayData---', defaultSprayData) }) onMounted(()=>{ - tableData.value = settingStore.matrixList; + let matrixList = settingStore.matrixList + tableData.value = matrixList; + if(matrixList && matrixList.length){ + onMatrixChange(matrixList[0].id) + }else{ + onMatrixChange(null) + } getCraftList() }) @@ -242,7 +252,7 @@ } - function onMatrixChange(val: number) { + function onMatrixChange(val: any) { defaultSprayData.value.matrixId = val }