ปรับโค้ดวินัย
This commit is contained in:
parent
1483bbcac7
commit
c81b5db558
17 changed files with 93 additions and 196 deletions
|
|
@ -1,17 +1,15 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, watch, type PropType } from "vue";
|
||||
// import config from "@/app.config";
|
||||
// import http from "@/plugins/http";
|
||||
import { useQuasar } from "quasar";
|
||||
import FullCalendar from "@fullcalendar/vue3";
|
||||
import dayGridPlugin from "@fullcalendar/daygrid";
|
||||
import type { CalendarOptions } from "@fullcalendar/core";
|
||||
import timeGridPlugin from "@fullcalendar/timegrid";
|
||||
import interactionPlugin from "@fullcalendar/interaction";
|
||||
import allLocales from "@fullcalendar/core/locales-all";
|
||||
import listPlugin from "@fullcalendar/list";
|
||||
import moment from "moment";
|
||||
|
||||
import type { CalendarOptions } from "@fullcalendar/core";
|
||||
import type { DataDateMonthObject } from "@/modules/09_leave/interface/response/leave";
|
||||
import type { ExtendHistoryObject } from "@/modules/11_discipline/interface/response/Main";
|
||||
|
||||
|
|
@ -80,19 +78,6 @@ const dateMonth = ref<DataDateMonthObject>({
|
|||
year: new Date().getFullYear(),
|
||||
});
|
||||
|
||||
/** function เรียกข่อมูล calendar*/
|
||||
// function getRandomColor() {
|
||||
// return (
|
||||
// "hsl(" +
|
||||
// 360 * Math.random() +
|
||||
// "," +
|
||||
// (25 + 70 * Math.random()) +
|
||||
// "%," +
|
||||
// (85 + 10 * Math.random()) +
|
||||
// "%)"
|
||||
// );
|
||||
// }
|
||||
|
||||
async function fetchCalendar() {
|
||||
showLoader();
|
||||
const defaultColor = "#e3fdda";
|
||||
|
|
@ -123,14 +108,6 @@ async function fetchCalendar() {
|
|||
}, 1000);
|
||||
}
|
||||
|
||||
// function generateGradientColors(length: number) {
|
||||
// const colors = [];
|
||||
// for (let i = 0; i < length; i++) {
|
||||
// colors.push(getRandomColor());
|
||||
// }
|
||||
// return colors;
|
||||
// }
|
||||
|
||||
/**
|
||||
* function convert เดือนปี
|
||||
* @param val เดือนปี
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue