+
({
institute: "",
startYear: new Date().getFullYear(),
endYear: new Date().getFullYear(),
- finishDate: new Date(),
+ finishDate: null,
startDate: new Date(),
endDate: new Date(),
isEducation: null,
@@ -532,7 +532,7 @@ function clearForm() {
educationData.institute = "";
educationData.startYear = new Date().getFullYear();
educationData.endYear = new Date().getFullYear();
- educationData.finishDate = new Date();
+ educationData.finishDate = null;
educationData.startDate = new Date();
educationData.endDate = new Date();
educationData.isEducation = null;
@@ -1225,11 +1225,8 @@ onMounted(async () => {
dense
class="inputgreen"
:model-value="date2Thai(educationData.finishDate)"
- :rules="[
- (val) => !!val || `${'กรุณาเลือกวันที่สำเร็จการศึกษา'}`,
- ]"
hide-bottom-space
- :label="`${'วันที่สำเร็จการศึกษา'}`"
+ :label="`${'วันที่สำเร็จการศึกษาs'}`"
>
{
>
+
+
+
@@ -1262,6 +1266,7 @@ onMounted(async () => {
) "
label="เป็นวุฒิการศึกษาในตำแหน่ง"
hide-bottom-space
+ clearable
/>
diff --git a/src/modules/04_registryNew/interface/request/Education.ts b/src/modules/04_registryNew/interface/request/Education.ts
index 624ac34ba..22f62c362 100644
--- a/src/modules/04_registryNew/interface/request/Education.ts
+++ b/src/modules/04_registryNew/interface/request/Education.ts
@@ -1,27 +1,26 @@
interface RequestItemsObject {
- profileId: string
- educationLevel: string;
- institute: string;
- startYear: number;
- endYear: number;
- finishDate: Date;
- startDate: Date;
- endDate: Date;
- isEducation: boolean | null;
- degree: string;
- field: string;
- fundName: string;
- gpa: string;
- country: string;
- other: string;
- duration: string;
- durationYear: number | null;
- note: string;
- educationLevelId: string,
- positionPath: string,
- positionPathId: string,
- isDate: boolean
- }
-
- export type { RequestItemsObject };
+ profileId: string;
+ educationLevel: string;
+ institute: string;
+ startYear: number;
+ endYear: number;
+ finishDate: Date | null;
+ startDate: Date;
+ endDate: Date;
+ isEducation: boolean | null;
+ degree: string;
+ field: string;
+ fundName: string;
+ gpa: string;
+ country: string;
+ other: string;
+ duration: string;
+ durationYear: number | null;
+ note: string;
+ educationLevelId: string;
+ positionPath: string;
+ positionPathId: string;
+ isDate: boolean;
+}
+export type { RequestItemsObject };