ทะเบียนประวัติ: clearable
This commit is contained in:
parent
e7076ee06c
commit
f07f3acd51
6 changed files with 15 additions and 15 deletions
|
|
@ -295,12 +295,12 @@ const trainData = reactive<RequestItemsObject>({
|
|||
profileId: id.value,
|
||||
name: "",
|
||||
topic: "",
|
||||
yearly: new Date().getFullYear(),
|
||||
yearly: null,
|
||||
place: "",
|
||||
duration: "",
|
||||
department: "",
|
||||
numberOrder: "",
|
||||
dateOrder: new Date(),
|
||||
dateOrder: null,
|
||||
startDate: new Date(),
|
||||
endDate: new Date(),
|
||||
startYear: new Date().getFullYear(),
|
||||
|
|
@ -360,7 +360,7 @@ function clearForm() {
|
|||
isDate.value = "false";
|
||||
trainData.name = "";
|
||||
trainData.topic = "";
|
||||
trainData.yearly = new Date().getFullYear();
|
||||
trainData.yearly = null;
|
||||
trainData.place = "";
|
||||
trainData.duration = "";
|
||||
trainData.department = "";
|
||||
|
|
@ -959,7 +959,9 @@ onMounted(async () => {
|
|||
lazy-rules
|
||||
outlined
|
||||
hide-bottom-space
|
||||
:model-value="trainData.yearly + 543"
|
||||
:model-value="
|
||||
!!trainData.yearly ? trainData.yearly + 543 : null
|
||||
"
|
||||
:label="`${'ปีงบประมาณ'}`"
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue