|
@ -6,6 +6,8 @@ import { onMounted, ref } from "vue"; |
|
|
import { getList } from "./services/matrix/manage"; |
|
|
import { getList } from "./services/matrix/manage"; |
|
|
import { useSettingStore } from "./stores/setting"; |
|
|
import { useSettingStore } from "./stores/setting"; |
|
|
import Dialog, { type DialogParam } from "./components/Dialog.vue"; |
|
|
import Dialog, { type DialogParam } from "./components/Dialog.vue"; |
|
|
|
|
|
import { pushOutTray } from "./services/globalCmd/globalCmd"; |
|
|
|
|
|
import { ElMessage } from "element-plus"; |
|
|
|
|
|
|
|
|
const equipmentStatusStore = useEquipmentStatusStore(); |
|
|
const equipmentStatusStore = useEquipmentStatusStore(); |
|
|
const settingStore = useSettingStore(); |
|
|
const settingStore = useSettingStore(); |
|
@ -40,9 +42,10 @@ wsClient.dataOb.subscribe(data => { |
|
|
showDialog.value = true; |
|
|
showDialog.value = true; |
|
|
} else if (data.data.code === "spray_complete") { |
|
|
} else if (data.data.code === "spray_complete") { |
|
|
dialogContent.value = { |
|
|
dialogContent.value = { |
|
|
desc: "喷涂结束,建议回首页清洗管道", |
|
|
|
|
|
|
|
|
desc: "喷涂完成", |
|
|
type: "confirm", |
|
|
type: "confirm", |
|
|
okText: "去清洗", |
|
|
|
|
|
|
|
|
okText: "推出玻片", |
|
|
|
|
|
cancelText: "确认完成", |
|
|
_brand: "spray_complete", |
|
|
_brand: "spray_complete", |
|
|
}; |
|
|
}; |
|
|
showDialog.value = true; |
|
|
showDialog.value = true; |
|
@ -76,7 +79,13 @@ function onOk() { |
|
|
if (dialogContent.value._brand === "dehumidify_complete") { |
|
|
if (dialogContent.value._brand === "dehumidify_complete") { |
|
|
router.push("/spray"); |
|
|
router.push("/spray"); |
|
|
} else if (dialogContent.value._brand === "spray_complete") { |
|
|
} else if (dialogContent.value._brand === "spray_complete") { |
|
|
router.replace("/home"); |
|
|
|
|
|
|
|
|
pushOutTray({}).then(res => { |
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
ElMessage.success("正在推出"); |
|
|
|
|
|
} else { |
|
|
|
|
|
ElMessage.error(res.msg); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|