<script setup lang="ts">
import Form from "@/modules/11_discipline/components/3_investigateDisciplinary/Form.vue";
import { useRoute, useRouter } from "vue-router";
const router = useRouter();

// บันทึกข้อมูล
const onSubmit = async () => {
  // post
  console.log("add");
  router.push(`/discipline/disciplinary`);
};
</script>
<template>
  <div class="col-xs-12 col-sm-12 col-md-11">
    <div class="toptitle text-dark col-12 row items-center">
      <q-btn
        for="#backMaininvestigate"
        icon="mdi-arrow-left"
        unelevated
        round
        dense
        flat
        color="primary"
        class="q-mr-sm"
        @click="router.go(-1)"
      />
      เพิ่มการสอบสวนความผิดทางวินัย
    </div>

    <Form :on-submit="onSubmit" />
  </div>
</template>
