updated format code
This commit is contained in:
parent
b75d69ea08
commit
b14bad2249
241 changed files with 14012 additions and 13811 deletions
|
|
@ -5,9 +5,9 @@ import { useRoute, useRouter } from "vue-router";
|
|||
const router = useRouter();
|
||||
|
||||
/** บันทึกข้อมูลเเละ route กลับหน้าหลัก */
|
||||
async function onSubmit(){
|
||||
async function onSubmit() {
|
||||
router.push(`/discipline/investigatefacts`);
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ const dateMonth = ref<DataDateMonthObject>({
|
|||
async function fetchCalendar() {
|
||||
showLoader();
|
||||
const defaultColor = "#e3fdda";
|
||||
const gradientColors = '#f7d0dd'
|
||||
const gradientColors = "#f7d0dd";
|
||||
|
||||
const events = await props.lists.map(
|
||||
(e: ExtendHistoryObject, index: number) => ({
|
||||
|
|
@ -91,9 +91,7 @@ async function fetchCalendar() {
|
|||
end: moment(e.dateEnd).format("YYYY-MM-DD") + " 23:59:59",
|
||||
allDay: false,
|
||||
color:
|
||||
props.lists.length > 1 && index > 0
|
||||
? gradientColors
|
||||
: defaultColor,
|
||||
props.lists.length > 1 && index > 0 ? gradientColors : defaultColor,
|
||||
})
|
||||
);
|
||||
calendarOptions.value.events = events;
|
||||
|
|
|
|||
|
|
@ -132,29 +132,29 @@ async function cancel(text: string) {
|
|||
* ฟังก์ชั่นเปิด model
|
||||
* @param text
|
||||
*/
|
||||
async function view(text: string){
|
||||
async function view(text: string) {
|
||||
title.value = text;
|
||||
modalCancel.value = true;
|
||||
modeCancel.value = false;
|
||||
};
|
||||
}
|
||||
|
||||
async function updateMonth(e: DataDateMonthObject){
|
||||
async function updateMonth(e: DataDateMonthObject) {
|
||||
if (e != null) {
|
||||
dateYear.value = e.year;
|
||||
|
||||
changCalendar();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function monthYearThai(val: DataDateMonthObject){
|
||||
function monthYearThai(val: DataDateMonthObject) {
|
||||
if (val == null) return "";
|
||||
else return monthYear2Thai(val.month, val.year);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* เรียกฟังก์ชันทั้งหมดตอนเรียกใช้ไฟล์นี้
|
||||
*/
|
||||
onMounted(async () => {
|
||||
onMounted(async () => {
|
||||
fetchCalendar();
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -28,7 +28,9 @@ const { dialogConfirm, showLoader, success, hideLoader, messageError } = mixin;
|
|||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
|
||||
const checkRoutePermisson = ref<boolean>(route.name == "disciplineInvestigatefactsDetail");
|
||||
const checkRoutePermisson = ref<boolean>(
|
||||
route.name == "disciplineInvestigatefactsDetail"
|
||||
);
|
||||
const id = ref<string>(route.params.id as string);
|
||||
const modalPopup = ref<boolean>(false);
|
||||
|
||||
|
|
@ -351,7 +353,13 @@ watch(
|
|||
class="q-mr-sm"
|
||||
@click="$router.push(`/discipline/investigatefacts`)"
|
||||
/>
|
||||
<div class="q-ma-none">{{ checkRoutePermisson ? 'รายละเอียดรายการสืบสวนข้อเท็จจริง':'แก้ไขรายการสืบสวนข้อเท็จจริง'}}</div>
|
||||
<div class="q-ma-none">
|
||||
{{
|
||||
checkRoutePermisson
|
||||
? "รายละเอียดรายการสืบสวนข้อเท็จจริง"
|
||||
: "แก้ไขรายการสืบสวนข้อเท็จจริง"
|
||||
}}
|
||||
</div>
|
||||
<q-space />
|
||||
|
||||
<div class="q-gutter-x-sm" v-if="!checkRoutePermisson">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue