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

// บันทึกข้อมูล
const onSubmit = async () => {
  // post
  console.log("add");
  router.push(`/discipline/complaints`);
};
</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>
