<script setup lang="ts">
import { ref, onMounted } from "vue";
import { useQuasar } from "quasar";
import { useRouter } from "vue-router";
import http from "@/plugins/http";
import config from "@/app.config";

import Tab1 from "@/modules/06_assess/componenst/Tab1.vue"; // ชำนาญการ
import Tab2 from "@/modules/06_assess/componenst/Tab2.vue"; // ชำนาญการพิเศษ

import { useAssessStore } from "@/modules/06_assess/store";

const store = useAssessStore();
const router = useRouter();
const $q = useQuasar();
</script>
<template>
  <div class="col-12 row justify-center">
    <div class="col-xs-12 col-sm-12 col-md-11">
      <div class="toptitle text-white col-12 row items-center">
        <q-btn
          icon="mdi-arrow-left"
          unelevated
          round
          dense
          flat
          color="primary"
          class="q-mr-sm"
          @click="router.go(-1)"
        />
        <div>ประเมินผล</div>
      </div>
    </div>

    <div class="col-xs-12 col-sm-12 col-md-11 row q-col-gutter-md">
      <div class="col-12 row">
        <q-card bordered class="col-12 row caedNone">
          <q-card class="col-12 items-center">
            <q-tabs
              v-model="store.tabMenu"
              dense
              align="left"
              inline-label
              class="rounded-borders"
              indicator-color="primary"
              active-bg-color="teal-1"
              active-class="text-primary"
            >
              <q-tab name="1" label="ชำนาญการ" />
              <q-tab name="2" label="ชำนาญการพิเศษ" />
            </q-tabs>
            <q-separator />
            <q-tab-panels v-model="store.tabMenu" animated>
              <q-tab-panel name="1"> <Tab1 /></q-tab-panel>

              <q-tab-panel name="2"> <Tab2 /></q-tab-panel>
            </q-tab-panels>
          </q-card>
        </q-card>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped></style>
