แสดงปีปัจจุบัน แสดงตัวอย่างการลา

This commit is contained in:
AnandaTon 2023-10-27 10:54:49 +07:00
parent 2920faf584
commit cb4850ec27
2 changed files with 213 additions and 228 deletions

View file

@ -4,6 +4,7 @@
<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>
{{ dateMonth }}
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-11 row q-col-gutter-md">
@ -153,7 +154,10 @@ import type { DataDateMonthObject } from "@/modules/05_leave/interface/request/C
const router = useRouter()
const currentTab = ref<string>("calendar") // tab calendar= list=
const dateMonth = ref<number>(new Date().getFullYear())
const dateMonth = ref<DataDateMonthObject>({
month: new Date().getMonth(), // Months are 0-based in JavaScript, so we add 1 to get the actual month.
year: new Date().getFullYear(),
})
const dateYear = ref<number>(new Date().getFullYear())
const mixin = useCounterMixin() //