|
@ -4,12 +4,20 @@ |
|
|
<span>当前湿度:{{ statusStore.equipmentStatus.humidity }}%RH</span> |
|
|
<span>当前湿度:{{ statusStore.equipmentStatus.humidity }}%RH</span> |
|
|
<!-- <span>当前温度:18℃</span> --> |
|
|
<!-- <span>当前温度:18℃</span> --> |
|
|
</section> |
|
|
</section> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<section class="bg-[#335AA5] ml-6 px-4 py-2 rounded flex items-center gap-4"> |
|
|
<section class="bg-[#335AA5] ml-6 px-4 py-2 rounded flex items-center gap-4"> |
|
|
<span>当前设备:{{ workStatusDescMap[statusStore.workStatus] }}</span> |
|
|
<span>当前设备:{{ workStatusDescMap[statusStore.workStatus] }}</span> |
|
|
<!-- <span>当前温度:18℃</span> --> |
|
|
<!-- <span>当前温度:18℃</span> --> |
|
|
</section> |
|
|
</section> |
|
|
<Time class="ml-auto text-lg"></Time> |
|
|
|
|
|
|
|
|
<button |
|
|
|
|
|
:disabled="!statusStore.equipmentStatus.yAxisMovementEnded" |
|
|
|
|
|
class="ml-auto btn-light px-8 py-1 text-lg" |
|
|
|
|
|
@click="onPushTrayClick"> |
|
|
|
|
|
{{ pushBtnText }} |
|
|
|
|
|
</button> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <Time class="ml-auto text-lg"></Time> --> |
|
|
|
|
|
|
|
|
<!-- <section v-if="route.path === '/home'" class="ml-auto h-[--footerHeight] flex items-center"> |
|
|
<!-- <section v-if="route.path === '/home'" class="ml-auto h-[--footerHeight] flex items-center"> |
|
|
<div class="btn-light px-5 py-2 mr-5"> |
|
|
<div class="btn-light px-5 py-2 mr-5"> |
|
|
<img src="@/assets/wash.svg" alt="wash" /> |
|
|
<img src="@/assets/wash.svg" alt="wash" /> |
|
@ -30,11 +38,46 @@ |
|
|
import { useRoute, useRouter } from "vue-router"; |
|
|
import { useRoute, useRouter } from "vue-router"; |
|
|
import Time from "./Time.vue"; |
|
|
import Time from "./Time.vue"; |
|
|
import { useEquipmentStatusStore } from "@/stores/equipmentStatus"; |
|
|
import { useEquipmentStatusStore } from "@/stores/equipmentStatus"; |
|
|
import { workStatusDescMap } from "@/services/wsTypes"; |
|
|
|
|
|
|
|
|
import { workStatusDescMap } from "@/services/wsTypes"; |
|
|
|
|
|
import { computed } from "vue"; |
|
|
|
|
|
import { pushInTray, pushOutTray } from "@/services/globalCmd/globalCmd"; |
|
|
|
|
|
import { ElMessage } from "element-plus"; |
|
|
const route = useRoute(); |
|
|
const route = useRoute(); |
|
|
const router = useRouter(); |
|
|
const router = useRouter(); |
|
|
const statusStore = useEquipmentStatusStore(); |
|
|
const statusStore = useEquipmentStatusStore(); |
|
|
|
|
|
|
|
|
|
|
|
const pushBtnText = computed(() => { |
|
|
|
|
|
if (isTrayInside.value) { |
|
|
|
|
|
return "推出玻片"; |
|
|
|
|
|
} else if (isTrayOutside.value) { |
|
|
|
|
|
return "推入玻片"; |
|
|
|
|
|
} else { |
|
|
|
|
|
return "正在操作"; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
const isTrayOutside = computed(() => { |
|
|
|
|
|
return statusStore.equipmentStatus.yAxisMovementEnded && statusStore.equipmentStatus.yAxisLimited; |
|
|
|
|
|
}); |
|
|
|
|
|
const isTrayInside = computed(() => { |
|
|
|
|
|
return statusStore.equipmentStatus.yAxisMovementEnded && statusStore.equipmentStatus.yAxisAtOrigin; |
|
|
|
|
|
}); |
|
|
|
|
|
function onPushTrayClick() { |
|
|
|
|
|
if (isTrayOutside.value) { |
|
|
|
|
|
pushInTray({}).then(res => { |
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
} else { |
|
|
|
|
|
ElMessage.error(res.msg); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} else if (isTrayInside.value) { |
|
|
|
|
|
pushOutTray({}).then(res => { |
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
} else { |
|
|
|
|
|
ElMessage.error(res.msg); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
function onMenuBtnClick() { |
|
|
function onMenuBtnClick() { |
|
|
if (route.path !== "/") { |
|
|
if (route.path !== "/") { |
|
|
router.back(); |
|
|
router.back(); |
|
|