Browse Source

feat: 预充加回原点按钮

master
guoapeng 5 months ago
parent
commit
6e2c590e6f
  1. 21
      src/views/PreSpray.vue

21
src/views/PreSpray.vue

@ -51,6 +51,12 @@
@click="onStopPrefill">
结束预充
</button>
<button
class="btn-dark px-8 py-2 text-lg"
@click="toOrigin">
回原点
</button>
</div>
</main>
<header
@ -146,7 +152,15 @@ import { ref } from "vue";
import Dialog, { type DialogParam } from "@/components/Dialog.vue";
import { useRouter } from "vue-router";
import { ElMessage } from "element-plus";
import { startDehumidify, startPrefill, startWash, stopPrefill, stopWash, type WashType } from "@/services/globalCmd/globalCmd";
import {
motorMoveToHome,
startDehumidify,
startPrefill,
startWash,
stopPrefill,
stopWash,
type WashType
} from "@/services/globalCmd/globalCmd";
import { useEquipmentStatusStore } from "@/stores/equipmentStatus";
const router = useRouter();
const statusStore = useEquipmentStatusStore();
@ -234,5 +248,10 @@ function onStopPrefill() {
}
});
}
const toOrigin = async () => {
await motorMoveToHome({axis:'Z'});
await motorMoveToHome({axis:'X'});
}
</script>
<style lang="scss" scoped></style>
Loading…
Cancel
Save