diff --git a/src/api/12_evaluatePersonal/api.evaluate.ts b/src/api/12_evaluatePersonal/api.evaluate.ts index 6215b5ac2..23cead14b 100644 --- a/src/api/12_evaluatePersonal/api.evaluate.ts +++ b/src/api/12_evaluatePersonal/api.evaluate.ts @@ -6,8 +6,7 @@ export default { evaluateDirectorMain: () => `${evaluateDirectorMain}`, evaluateDirectorById: (id: string) => `${evaluateDirectorMain}/${id}`, - evaluationMain: (page: number, pageSize: number, keyword: string) => - `${evaluation}?page=${page}&pageSize=${pageSize}&keyword=${keyword}`, + evaluationMain: () => `${evaluation}`, evaluateGetDetail: (id: string) => `${evaluation}/check-spec/${id}`, evaluateGetStep: (id: string) => `${evaluation}/check/${id}`, @@ -26,7 +25,7 @@ export default { evaluationApproveDoc1: (id: string) => `${evaluation}/doc1/approve/${id}`, evaluationNext5To6: (id: string) => `${evaluation}/announce/${id}`, evaluationNextFinish: (id: string) => `${evaluation}/wait-check-doc-v2/${id}`, - + evaluationHistory: (id: string) => `${evaluation}/step-history/${id}`, evaluationDateAnnounce: (id: string) => `${evaluation}/check-date/${id}`, diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index 9cf3e32e7..d35aaf0be 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -50,6 +50,79 @@ const menuList = readonly([ path: "dashboard", role: "dashboard", }, + { + key: 3, + icon: "o_person", + activeIcon: "person", + label: "ข้อมูลหลัก (ใหม่)", + path: "metadataNew", + role: "metadata", + children: [ + { + key: 3.1, + label: "ข้อมูลปฏิทินวันหยุด", + path: "masterCalendarWork", + }, + { + key: 3.2, + label: "ข้อมูลเครื่องราชอิสริยาภรณ์", + path: "masterInsignia", + }, + ], + }, + { + key: 4, + icon: "o_groups", + activeIcon: "groups", + label: "โครงสร้างอัตรากำลัง (ใหม่)", + path: "organizationalNew", + role: "organization", + // children: [ + // { + // key: 3.1, + // label: "จัดการตำแหน่ง", + // path: "organizationalMapping", + // }, + // { + // key: 3.2, + // label: "แผนภูมิโครงสร้าง", + // path: "organizationalStructChart", + // }, + // { + // key: 3.3, + // label: "แผนภูมิองค์กร", + // path: "organizationalOrgChart", + // }, + // { + // key: 3.4, + // label: "ผังโครงสร้าง", + // path: "organizationalTree", + // }, + // { + // key: 3.5, + // label: "ผังโครงสร้างลูกจ้าง", + // path: "organizationalEmployee", + // }, + // { + // key: 3.6, + // label: "จัดการบัญชี 2", + // path: "manageReport2", + // }, + // { + // key: 3.7, + // label: "รายงานบัญชี", + // path: "organizationalReport", + // }, + // ], + }, + { + key: 4, + icon: "o_contact_page", + activeIcon: "contact_page", + label: "ทะเบียนประวัติ (ใหม่)", + path: "registryNew", + role: "registry", + }, { key: 2, icon: "o_person", diff --git a/src/modules/01_metadataNew/interface/index/Main.ts b/src/modules/01_metadataNew/interface/index/Main.ts new file mode 100644 index 000000000..46133c9b9 --- /dev/null +++ b/src/modules/01_metadataNew/interface/index/Main.ts @@ -0,0 +1,10 @@ +interface Pagination { + rowsPerPage: number; +} + +interface DataOption { + id: string; + name: string; +} + +export type { Pagination, DataOption }; diff --git a/src/modules/01_metadataNew/interface/request/Main.ts b/src/modules/01_metadataNew/interface/request/Main.ts new file mode 100644 index 000000000..b5eb23bd3 --- /dev/null +++ b/src/modules/01_metadataNew/interface/request/Main.ts @@ -0,0 +1,14 @@ +interface DataSumCalendarObject { + id: number; + monthFull: String; + count: number; + color: String; +} + +interface DataListsObject { + id: number; + count: number; + name: string; +} + +export type { DataSumCalendarObject, DataListsObject }; diff --git a/src/modules/01_metadataNew/router.ts b/src/modules/01_metadataNew/router.ts new file mode 100644 index 000000000..06b030d8d --- /dev/null +++ b/src/modules/01_metadataNew/router.ts @@ -0,0 +1,26 @@ +const calendarWorkPage = () => + import("@/modules/01_metadataNew/views/calendar.vue"); +const masterInsignia = () => import("@/modules/01_metadataNew/views/insignia.vue"); + +export default [ + { + path: "/master-data/calendar", + name: "masterCalendarWork", + component: calendarWorkPage, + meta: { + Auth: true, + Key: [7], + Role: "metadata", + }, + }, + { + path: "/master-data/insignia", + name: "masterInsignia", + component: masterInsignia, + meta: { + Auth: true, + Key: [7], + Role: "metadata", + }, + }, +]; diff --git a/src/modules/01_metadataNew/store.ts b/src/modules/01_metadataNew/store.ts new file mode 100644 index 000000000..e69de29bb diff --git a/src/modules/01_metadataNew/views/calendar.vue b/src/modules/01_metadataNew/views/calendar.vue new file mode 100644 index 000000000..d6ff149b9 --- /dev/null +++ b/src/modules/01_metadataNew/views/calendar.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/src/modules/01_metadataNew/views/insignia.vue b/src/modules/01_metadataNew/views/insignia.vue new file mode 100644 index 000000000..5d894837a --- /dev/null +++ b/src/modules/01_metadataNew/views/insignia.vue @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/src/modules/02_organizationalNew/interface/index/Main.ts b/src/modules/02_organizationalNew/interface/index/Main.ts new file mode 100644 index 000000000..46133c9b9 --- /dev/null +++ b/src/modules/02_organizationalNew/interface/index/Main.ts @@ -0,0 +1,10 @@ +interface Pagination { + rowsPerPage: number; +} + +interface DataOption { + id: string; + name: string; +} + +export type { Pagination, DataOption }; diff --git a/src/modules/02_organizationalNew/interface/request/Main.ts b/src/modules/02_organizationalNew/interface/request/Main.ts new file mode 100644 index 000000000..b5eb23bd3 --- /dev/null +++ b/src/modules/02_organizationalNew/interface/request/Main.ts @@ -0,0 +1,14 @@ +interface DataSumCalendarObject { + id: number; + monthFull: String; + count: number; + color: String; +} + +interface DataListsObject { + id: number; + count: number; + name: string; +} + +export type { DataSumCalendarObject, DataListsObject }; diff --git a/src/modules/02_organizationalNew/router.ts b/src/modules/02_organizationalNew/router.ts new file mode 100644 index 000000000..32b16995e --- /dev/null +++ b/src/modules/02_organizationalNew/router.ts @@ -0,0 +1,14 @@ +const mainPage = () => import("@/modules/02_organizationalNew/views/main.vue"); + +export default [ + { + path: "/organization-new", + name: "organizationalNew", + component: mainPage, + meta: { + Auth: true, + Key: [7], + Role: "organization", + }, + }, +]; diff --git a/src/modules/02_organizationalNew/store.ts b/src/modules/02_organizationalNew/store.ts new file mode 100644 index 000000000..e69de29bb diff --git a/src/modules/02_organizationalNew/views/main.vue b/src/modules/02_organizationalNew/views/main.vue new file mode 100644 index 000000000..2a55fa61c --- /dev/null +++ b/src/modules/02_organizationalNew/views/main.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/src/modules/03_recruitingNew/interface/index/Main.ts b/src/modules/03_recruitingNew/interface/index/Main.ts new file mode 100644 index 000000000..46133c9b9 --- /dev/null +++ b/src/modules/03_recruitingNew/interface/index/Main.ts @@ -0,0 +1,10 @@ +interface Pagination { + rowsPerPage: number; +} + +interface DataOption { + id: string; + name: string; +} + +export type { Pagination, DataOption }; diff --git a/src/modules/03_recruitingNew/interface/request/Main.ts b/src/modules/03_recruitingNew/interface/request/Main.ts new file mode 100644 index 000000000..b5eb23bd3 --- /dev/null +++ b/src/modules/03_recruitingNew/interface/request/Main.ts @@ -0,0 +1,14 @@ +interface DataSumCalendarObject { + id: number; + monthFull: String; + count: number; + color: String; +} + +interface DataListsObject { + id: number; + count: number; + name: string; +} + +export type { DataSumCalendarObject, DataListsObject }; diff --git a/src/modules/03_recruitingNew/router.ts b/src/modules/03_recruitingNew/router.ts new file mode 100644 index 000000000..c36ce682b --- /dev/null +++ b/src/modules/03_recruitingNew/router.ts @@ -0,0 +1,14 @@ +const mainPage = () => import("@/modules/02_organizationalNew/views/main.vue"); + +export default [ + { + path: "/registry-new", + name: "registryNew", + component: mainPage, + meta: { + Auth: true, + Key: [7], + Role: "registry", + }, + }, +]; diff --git a/src/modules/03_recruitingNew/store.ts b/src/modules/03_recruitingNew/store.ts new file mode 100644 index 000000000..e69de29bb diff --git a/src/modules/03_recruitingNew/views/main.vue b/src/modules/03_recruitingNew/views/main.vue new file mode 100644 index 000000000..db4dfb1ec --- /dev/null +++ b/src/modules/03_recruitingNew/views/main.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/src/modules/04_registry/components/Assessment.vue b/src/modules/04_registry/components/Assessment.vue index dbf833fff..37902f56a 100644 --- a/src/modules/04_registry/components/Assessment.vue +++ b/src/modules/04_registry/components/Assessment.vue @@ -626,7 +626,7 @@ const fetchData = async () => { messageError($q, e); }) .finally(() => { - hideLoader(); + store.isLoad++ }); } }; diff --git a/src/modules/04_registry/components/Coin.vue b/src/modules/04_registry/components/Coin.vue index 7d024d234..0d995b9de 100644 --- a/src/modules/04_registry/components/Coin.vue +++ b/src/modules/04_registry/components/Coin.vue @@ -45,8 +45,8 @@ icon="mdi-history" @click="clickHistory(props.row)" > - ประวัติแก้ไขประกาศเกียรติคุณ - + ประวัติแก้ไขประกาศเกียรติคุณ + @@ -67,9 +67,7 @@ /> -
+
{ messageError($q, e); }) .finally(() => { - hideLoader(); + store.isLoad++; }); } }; diff --git a/src/modules/04_registry/components/Discipline.vue b/src/modules/04_registry/components/Discipline.vue index f84e43479..b6611bebe 100644 --- a/src/modules/04_registry/components/Discipline.vue +++ b/src/modules/04_registry/components/Discipline.vue @@ -617,7 +617,7 @@ const fetchData = async () => { messageError($q, e); }) .finally(() => { - hideLoader(); + store.isLoad++ }); } }; diff --git a/src/modules/04_registry/components/Document.vue b/src/modules/04_registry/components/Document.vue index 3b6c40856..8c8d17f16 100644 --- a/src/modules/04_registry/components/Document.vue +++ b/src/modules/04_registry/components/Document.vue @@ -31,9 +31,9 @@ color="blue" icon="mdi-download-outline" @click="downloadData(file.file)" - > - ดาวน์โหลดเอกสารหลักฐาน - + > + ดาวน์โหลดเอกสารหลักฐาน + - ลบเอกสารหลักฐาน - + ลบเอกสารหลักฐาน +
@@ -145,6 +145,9 @@ import { useRoute } from "vue-router"; import HeaderTop from "@/modules/04_registry/components/Information/top.vue"; import http from "@/plugins/http"; import config from "@/app.config"; +import { useProfileDataStore } from "@/modules/04_registry/store"; + +const profileStore = useProfileDataStore(); const props = defineProps({ statusEdit: { @@ -189,7 +192,7 @@ const getData = async () => { messageError($q, e); }) .finally(() => { - hideLoader(); + profileStore.isLoad++; }); } }; diff --git a/src/modules/04_registry/components/Education.vue b/src/modules/04_registry/components/Education.vue index f9cd9f921..44d19632c 100644 --- a/src/modules/04_registry/components/Education.vue +++ b/src/modules/04_registry/components/Education.vue @@ -57,8 +57,8 @@ icon="mdi-history" @click="clickHistory(props.row)" > - ประวัติแก้ไขประวัติการศึกษา - + ประวัติแก้ไขประวัติการศึกษา + @@ -72,9 +72,7 @@ -
+
{ messageError($q, e); }) .finally(() => { - hideLoader(); + store.isLoad++; }); }; @@ -1087,7 +1085,8 @@ const fetchPositionPath = async () => { messageError($q, e); }) .finally(() => { - hideLoader(); + store.isLoad++; + // hideLoader(); }); }; @@ -1152,7 +1151,8 @@ const fetchData = async () => { messageError($q, e); }) .finally(() => { - hideLoader(); + // hideLoader(); + store.isLoad++; }); } }; diff --git a/src/modules/04_registry/components/Information/Address.vue b/src/modules/04_registry/components/Information/Address.vue index 52e5bd0db..4ac6c6611 100644 --- a/src/modules/04_registry/components/Information/Address.vue +++ b/src/modules/04_registry/components/Information/Address.vue @@ -306,6 +306,9 @@ import HistoryTable from "@/components/TableHistory.vue"; import { useRoute } from "vue-router"; import type { AddressOps } from "@/modules/04_registry/interface/index/Main"; import type { QTableProps } from "quasar"; +import { useProfileDataStore } from "@/modules/04_registry/store"; + +const profileStore = useProfileDataStore(); const props = defineProps({ statusEdit: { @@ -631,7 +634,7 @@ const getNewData = async () => { const fetchData = async () => { if (route.params.id) { - showLoader(); + // showLoader(); await http .get(config.API.profileAdrsId(route.params.id.toString())) .then((res) => { @@ -671,7 +674,8 @@ const fetchData = async () => { messageError($q, e); }) .finally(() => { - hideLoader(); + // hideLoader(); + profileStore.isLoad++; }); } }; @@ -835,7 +839,7 @@ const fetchProvince = async () => { messageError($q, e); }) .finally(() => { - hideLoader(); + profileStore.isLoad++; }); }; @@ -888,9 +892,9 @@ const fetchDistrict = async (id: string | null, position: string) => { messageError($q, e); }) .finally(() => { - hideLoader(); + profileStore.isLoad++; }); - } + } else profileStore.isLoad++; }; const fetchSubDistrict = async (id: string | null, position: string) => { @@ -942,9 +946,9 @@ const fetchSubDistrict = async (id: string | null, position: string) => { messageError($q, e); }) .finally(() => { - hideLoader(); + profileStore.isLoad++; }); - } + } else profileStore.isLoad++; }; const changeBtn = async () => { diff --git a/src/modules/04_registry/components/Information/Certicate.vue b/src/modules/04_registry/components/Information/Certicate.vue index 74ac8f943..e935500f4 100644 --- a/src/modules/04_registry/components/Information/Certicate.vue +++ b/src/modules/04_registry/components/Information/Certicate.vue @@ -69,9 +69,7 @@ /> -
+
{ messageError($q, e); }) .finally(() => { - hideLoader(); + // hideLoader(); + store.isLoad++; }); } }; diff --git a/src/modules/04_registry/components/Information/Family.vue b/src/modules/04_registry/components/Information/Family.vue index 0eb990250..2caf2f64a 100644 --- a/src/modules/04_registry/components/Information/Family.vue +++ b/src/modules/04_registry/components/Information/Family.vue @@ -1284,17 +1284,17 @@
+ :class="getClass(false)" + hide-bottom-space + :outlined="false" + dense + lazy-rules + :readonly="true" + :borderless="true" + v-model="items.childrenFirstName" + :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อ'}`]" + :label="`${'ชื่อ'}`" + />
{ messageError($q, e); }) .finally(() => { - hideLoader(); + // hideLoader(); + profileStore.isLoad++; }); }; @@ -1747,7 +1751,8 @@ const fetchData = async () => { messageError($q, e); }) .finally(async () => { - hideLoader(); + // hideLoader(); + profileStore.isLoad++ }); } }; diff --git a/src/modules/04_registry/components/Information/Government.vue b/src/modules/04_registry/components/Information/Government.vue index ee97886aa..3d9b7f808 100644 --- a/src/modules/04_registry/components/Information/Government.vue +++ b/src/modules/04_registry/components/Information/Government.vue @@ -619,7 +619,7 @@ watch(retireText, async () => { }); const fetchData = async () => { - showLoader(); + // showLoader(); await http .get(config.API.profileGovId(route.params.id.toString())) .then((res) => { @@ -645,7 +645,8 @@ const fetchData = async () => { messageError($q, e); }) .finally(async () => { - hideLoader(); + // hideLoader(); + profileStore.isLoad++; }); }; diff --git a/src/modules/04_registry/components/Information/Information.vue b/src/modules/04_registry/components/Information/Information.vue index 631f7c885..a0390c5c1 100644 --- a/src/modules/04_registry/components/Information/Information.vue +++ b/src/modules/04_registry/components/Information/Information.vue @@ -1,41 +1,106 @@