|
@ -4,7 +4,9 @@ |
|
|
<main class="mt-[43px] border border-[#D6D6D6] bg-white rounded-b-md rounded-tr-md px-6 py-6"> |
|
|
<main class="mt-[43px] border border-[#D6D6D6] bg-white rounded-b-md rounded-tr-md px-6 py-6"> |
|
|
<div class="flex items-center gap-6"> |
|
|
<div class="flex items-center gap-6"> |
|
|
<p class="text-lg">清洗管道</p> |
|
|
<p class="text-lg">清洗管道</p> |
|
|
<button class="btn-dark px-8 py-2 text-lg" @click="onStartWash">开始清洗</button> |
|
|
|
|
|
|
|
|
<button :disabled="statusStore.workStatus !== 'idle'" class="btn-dark px-8 py-2 text-lg" @click="onStartWash('injector')">清洗注射器管路</button> |
|
|
|
|
|
<button :disabled="statusStore.workStatus !== 'idle'" class="btn-dark px-8 py-2 text-lg" @click="onStartWash('nozzle')">清洗喷涂部分</button> |
|
|
|
|
|
<button :disabled="statusStore.workStatus !== 'washing'" class="btn-dark px-8 py-2 text-lg" @click="onStopWash">停止清洗</button> |
|
|
</div> |
|
|
</div> |
|
|
</main> |
|
|
</main> |
|
|
<header |
|
|
<header |
|
@ -18,7 +20,8 @@ |
|
|
<main class="mt-[43px] border border-[#D6D6D6] bg-white rounded-b-md rounded-tr-md px-6 py-6"> |
|
|
<main class="mt-[43px] border border-[#D6D6D6] bg-white rounded-b-md rounded-tr-md px-6 py-6"> |
|
|
<div class="flex items-center gap-6"> |
|
|
<div class="flex items-center gap-6"> |
|
|
<p class="text-lg">预充管道</p> |
|
|
<p class="text-lg">预充管道</p> |
|
|
<button class="btn-dark px-8 py-2 text-lg" @click="onStartPrefill">开始预充</button> |
|
|
|
|
|
|
|
|
<button :disabled="statusStore.workStatus !== 'idle'" class="btn-dark px-8 py-2 text-lg" @click="onStartPrefill">开始预充</button> |
|
|
|
|
|
<button :disabled="statusStore.workStatus !== 'prefilling'" class="btn-dark px-8 py-2 text-lg" @click="onStopPrefill">结束预充</button> |
|
|
</div> |
|
|
</div> |
|
|
</main> |
|
|
</main> |
|
|
<header |
|
|
<header |
|
@ -31,7 +34,9 @@ |
|
|
<section class="flex flex-col relative text-primary mb-4"> |
|
|
<section class="flex flex-col relative text-primary mb-4"> |
|
|
<main class="mt-[43px] border border-[#D6D6D6] bg-white rounded-b-md rounded-tr-md px-6 py-6"> |
|
|
<main class="mt-[43px] border border-[#D6D6D6] bg-white rounded-b-md rounded-tr-md px-6 py-6"> |
|
|
<div class="flex items-center"> |
|
|
<div class="flex items-center"> |
|
|
<p class="text-lg">当前湿度 <span class="text-[28px] font-semibold">50</span> %RH</p> |
|
|
|
|
|
|
|
|
<p class="text-lg"> |
|
|
|
|
|
当前湿度 <span class="text-[28px] font-semibold">{{ statusStore.equipmentStatus.humidity }}</span> %RH |
|
|
|
|
|
</p> |
|
|
<p class="text-lg mx-6"> |
|
|
<p class="text-lg mx-6"> |
|
|
要求湿度<input |
|
|
要求湿度<input |
|
|
type="number" |
|
|
type="number" |
|
@ -39,7 +44,7 @@ |
|
|
class="border-none outline-none h-[32px] w-[60px] mx-2 bg-[#E8ECF7] text-primary font-medium rounded-md text-lg text-center" />%RH |
|
|
class="border-none outline-none h-[32px] w-[60px] mx-2 bg-[#E8ECF7] text-primary font-medium rounded-md text-lg text-center" />%RH |
|
|
</p> |
|
|
</p> |
|
|
|
|
|
|
|
|
<button class="btn-dark px-8 py-2 text-lg" @click="onStartDehumidify">开始除湿</button> |
|
|
|
|
|
|
|
|
<button :disabled="statusStore.workStatus !== 'idle'" class="btn-dark px-8 py-2 text-lg" @click="onStartDehumidify">开始除湿</button> |
|
|
</div> |
|
|
</div> |
|
|
</main> |
|
|
</main> |
|
|
<header |
|
|
<header |
|
@ -107,8 +112,10 @@ import { ref } from "vue"; |
|
|
import Dialog, { type DialogParam } from "@/components/Dialog.vue"; |
|
|
import Dialog, { type DialogParam } from "@/components/Dialog.vue"; |
|
|
import { useRouter } from "vue-router"; |
|
|
import { useRouter } from "vue-router"; |
|
|
import { ElMessage } from "element-plus"; |
|
|
import { ElMessage } from "element-plus"; |
|
|
import { startDehumidify, startPrefill, startWash } from "@/services/globalCmd/globalCmd"; |
|
|
|
|
|
|
|
|
import { startDehumidify, startPrefill, startWash, stopPrefill, stopWash, type WashType } from "@/services/globalCmd/globalCmd"; |
|
|
|
|
|
import { useEquipmentStatusStore } from "@/stores/equipmentStatus"; |
|
|
const router = useRouter(); |
|
|
const router = useRouter(); |
|
|
|
|
|
const statusStore = useEquipmentStatusStore(); |
|
|
|
|
|
|
|
|
const dialogContent = ref<DialogParam>({ |
|
|
const dialogContent = ref<DialogParam>({ |
|
|
title: "已完成", |
|
|
title: "已完成", |
|
@ -158,11 +165,20 @@ function onGoSpray() { |
|
|
cancelText: "取消", |
|
|
cancelText: "取消", |
|
|
_brand: "goSpray", |
|
|
_brand: "goSpray", |
|
|
}; |
|
|
}; |
|
|
showDialog.value = true; |
|
|
|
|
|
|
|
|
showDialog.value = true; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function onStartWash(type: WashType) { |
|
|
|
|
|
startWash({ type }).then(res => { |
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
} else { |
|
|
|
|
|
ElMessage.error(res.msg); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function onStartWash() { |
|
|
|
|
|
startWash({}).then(res => { |
|
|
|
|
|
|
|
|
function onStopWash() { |
|
|
|
|
|
stopWash({}).then(res => { |
|
|
if (res.success) { |
|
|
if (res.success) { |
|
|
} else { |
|
|
} else { |
|
|
ElMessage.error(res.msg); |
|
|
ElMessage.error(res.msg); |
|
@ -178,5 +194,13 @@ function onStartPrefill() { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
function onStopPrefill() { |
|
|
|
|
|
stopPrefill({}).then(res => { |
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
} else { |
|
|
|
|
|
ElMessage.error(res.msg); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
<style lang="scss" scoped></style> |
|
|
<style lang="scss" scoped></style> |