<script setup lang="ts">
import Form from "@/modules/11_discipline/components/8_AppealComplain/Form.vue";
import { useRoute, useRouter } from "vue-router";

const router = useRouter();

/** บันทึกข้อมูลเเละ route กลับหน้าหลัก */
async function onSubmit(){
  console.log("add");
  router.push(`/discipline-appealcomplain`);
};
</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>
