step2 ยังไม่เสร็จ ,step 3 เสร็จแล้ว ออกคำสั่ง
This commit is contained in:
parent
c613d3743e
commit
e650e992aa
8 changed files with 1127 additions and 646 deletions
|
|
@ -48,6 +48,7 @@
|
|||
:name="4"
|
||||
title="รายละเอียดคำสั่งและแนบท้าย"
|
||||
prefix="4"
|
||||
:done="step > 4"
|
||||
:header-nav="step > 4"
|
||||
/>
|
||||
<template v-slot:message>
|
||||
|
|
@ -61,8 +62,12 @@
|
|||
</template>
|
||||
<script setup lang="ts">
|
||||
import { useRouter } from "vue-router";
|
||||
import { ref, defineAsyncComponent, onMounted } from "vue";
|
||||
import { ref, defineAsyncComponent, onMounted, onUnmounted } from "vue";
|
||||
import type { QStepper } from "quasar";
|
||||
import { useProbationDataStore } from "@/modules/05_placement/store";
|
||||
|
||||
const probationData = useProbationDataStore();
|
||||
const { stepOrder, setStepOrder } = probationData;
|
||||
|
||||
const step01 = defineAsyncComponent(
|
||||
() =>
|
||||
|
|
@ -85,6 +90,10 @@ const router = useRouter();
|
|||
const step = ref<number>(1);
|
||||
const stepper = ref<QStepper>();
|
||||
|
||||
onUnmounted(() => {
|
||||
destroyLocalStorage();
|
||||
});
|
||||
|
||||
const nextStep = () => {
|
||||
stepper.value!.next();
|
||||
localStorage.setItem("currentStep", step.value.toString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue