diff --git a/src/app.config.ts b/src/app.config.ts index 784c7001b..4ab46b8e9 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -138,68 +138,99 @@ const API = { }; const path = "http://localhost:3008"; -const name = ""; + +const generatePopupPath = (routeName: any) => { + if (routeName.includes("metadata")) { + return `${path}/manual/chapter-2-admin-metadata`; + } + if (routeName.includes("KPI")) { + return `${path}/manual/chapter-3-admin-evaluate`; + } + if (routeName.includes("compete")) { + return `${path}/manual/chapter-10-admin-recruit`; + } + if (routeName.includes("registryNew")) { + return `${path}/manual/chapter-7-admin-registry`; + } + if (routeName.includes("registry")) { + return `${path}/manual/chapter-7-admin-registry`; + } + if (routeName.includes("registry-employee")) { + return `${path}/manual/chapter-8-admin-registry-employee`; + } + if (routeName.includes("qualify")) { + return `${path}/manual/chapter-10-admin-recruit`; + } + if (routeName.includes("insignia")) { + return `${path}/manual/chapter-14-admin-insignia`; + } + if (routeName.includes("resign")) { + return `${path}/manual/chapter-13-admin-retirement`; + } + if (routeName.includes("retirement")) { + return `${path}/manual/chapter-13-admin-retirement`; + } + if (routeName.includes("deceased")) { + return `${path}/manual/chapter-13-admin-retirement`; + } + if (routeName.includes("exit-Interview")) { + return `${path}/manual/chapter-13-admin-retirement`; + } + if (routeName.includes("expulsion")) { + return `${path}/manual/chapter-13-admin-retirement`; + } + if (routeName.includes("discharged")) { + return `${path}/manual/chapter-13-admin-retirement`; + } + if (routeName.includes("discipline")) { + return `${path}/manual/chapter-16-admin-discipline`; + } + if (routeName.includes("appeal")) { + return `${path}/manual/chapter-16-admin-discipline`; + } + if (routeName.includes("evaluate")) { + return `${path}/manual/chapter-17-admin-KPI`; + } + if (routeName.includes("salary")) { + return `${path}/manual/chapter-18-admin-salary`; + } + if (routeName.includes("development")) { + return `${path}/manual/chapter-20-admin-development`; + } else { + return manualConfig[routeName as keyof typeof manualConfig]; + } +}; const manualConfig = { - "/": `${path}/`, - "/KPI-indicator-plan": `${path}/manual/chapter-3-admin-evaluate`, - "/KPI-indicator-role": `${path}/manual/chapter-3-admin-evaluate`, - "/assignment": `${path}/manual/chapter-3-admin-evaluate`, - "/KPI-competency": `${path}/manual/chapter-3-admin-evaluate`, - "/strategic": `${path}/manual/chapter-3-admin-evaluate`, - "/organization-new": `${path}/manual/chapter-4-admin-organization`, - "/registry-new": `${path}/manual/chapter-7-admin-registry`, - "/registry-employee": `${path}/manual/chapter-8-admin-registry-employee`, - "/order": `${path}/manual/chapter-9-admin-order`, - "/compete/period": `${path}/manual/chapter-10-admin-recruit`, - "/compete/period/stat": `${path}/manual/chapter-10-admin-recruit`, - "/qualify/period": `${path}/manual/chapter-10-admin-recruit`, - "/disable/period": `${path}/manual/chapter-10-admin-recruit`, - "/qualify/manage": `${path}/manual/chapter-10-admin-recruit`, - "/qualify/period/stat": `${path}/manual/chapter-10-admin-recruit`, - "/qualify/disable/stat": `${path}/manual/chapter-10-admin-recruit`, - "/placement": `${path}/manual/chapter-11-admin-appointment`, - "/transfer": `${path}/manual/chapter-11-admin-appointment`, - "/receive": `${path}/manual/chapter-11-admin-appointment`, - "/help-government": `${path}/manual/chapter-11-admin-appointment`, - "/repatriate": `${path}/manual/chapter-11-admin-appointment`, - "/appoint-promote": `${path}/manual/chapter-11-admin-appointment`, - "/appoint-employee": `${path}/manual/chapter-11-admin-appointment`, - "/other": `${path}/manual/chapter-11-admin-appointment`, - "/probation": `${path}/manual/chapter-12-admin-probation`, - "/retirement": `${path}/manual/chapter-13-admin-retirement`, - "/retirement/resign": `${path}/manual/chapter-13-admin-retirement`, - "/exit-Interview": `${path}/manual/chapter-13-admin-retirement`, - "/deceased": `${path}/manual/chapter-13-admin-retirement`, - "/dismiss-order": `${path}/manual/chapter-13-admin-retirement`, - "/insignia/round-proposals": `${path}/manual/chapter-14-admin-insignia`, - "/insignia/manage/list-manage": `${path}/manual/chapter-14-admin-insignia`, - "/insignia/record": `${path}/manual/chapter-14-admin-insignia`, - "/insignia/allocate": `${path}/manual/chapter-14-admin-insignia`, - "/insignia/borrow": `${path}/manual/chapter-14-admin-insignia`, - "/insignia/report": `${path}/manual/chapter-14-admin-insignia`, - "/discipline/complaints": `${path}/manual/chapter-16-admin-discipline`, - "/discipline/investigatefacts": `${path}/manual/chapter-16-admin-discipline`, - "/discipline/disciplinary": `${path}/manual/chapter-16-admin-discipline`, - "/discipline-result": `${path}/manual/chapter-16-admin-discipline`, - "/discipline-suspend": `${path}/manual/chapter-16-admin-discipline`, - "/discipline-appealcomplain": `${path}/manual/chapter-16-admin-discipline`, - "/discipline-order": `${path}/manual/chapter-16-admin-discipline`, - "/discipline/director": `${path}/manual/chapter-16-admin-discipline`, - "/discipline/channel": `${path}/manual/chapter-16-admin-discipline`, - "/evaluate": `${path}/manual/chapter-17-admin-KPI`, - "/evaluate/director": `${path}/manual/chapter-17-admin-KPI`, - "/evaluate/meeting": `${path}/manual/chapter-17-admin-KPI`, - "/salary": `${path}/manual/chapter-18-admin-salary`, - "/salary-employee": `${path}/manual/chapter-18-admin-salary`, - "/salary/round": `${path}/manual/chapter-18-admin-salary`, - "/salary/lists": `${path}/manual/chapter-18-admin-salary`, - "/salary-employee/lists": `${path}/manual/chapter-18-admin-salary`, - "/salary/command": `${path}/manual/chapter-18-admin-salary`, - "/development": `${path}/manual/chapter-20-admin-development`, - "/development/history": `${path}/manual/chapter-20-admin-development`, - "/development/employee-history": `${path}/manual/chapter-20-admin-development`, - "/development/scholarship": `${path}/manual/chapter-20-admin-development`, + dashboard: `${path}/`, + strategic: `${path}/manual/chapter-3-admin-evaluate`, + organizationNew: `${path}/manual/chapter-4-admin-organization`, + organization: `${path}/manual/chapter-7-admin-registry`, + order: `${path}/manual/chapter-9-admin-order`, + OrderDetail: `${path}/manual/chapter-9-admin-order`, + OrderAdd: `${path}/manual/chapter-9-admin-order`, + disableperiod: `${path}/manual/chapter-10-admin-recruit`, + manage: `${path}/manual/chapter-10-admin-recruit`, + editorweb: `${path}/manual/chapter-10-admin-recruit`, + manageDetaill: `${path}/manual/chapter-10-admin-recruit`, + ExamForm: `${path}/manual/chapter-10-admin-recruit`, + Payment: `${path}/manual/chapter-10-admin-recruit`, + placement: `${path}/manual/chapter-11-admin-appointment`, + transfer: `${path}/manual/chapter-11-admin-appointment`, + receive: `${path}/manual/chapter-11-admin-appointment`, + "help-government": `${path}/manual/chapter-11-admin-appointment`, + repatriate: `${path}/manual/chapter-11-admin-appointment`, + "appoint-promote": `${path}/manual/chapter-11-admin-appointment`, + "appoint-employee": `${path}/manual/chapter-11-admin-appointment`, + other: `${path}/manual/chapter-11-admin-appointment`, + probation: `${path}/manual/chapter-12-admin-probation`, + retirement: `${path}/manual/chapter-13-admin-retirement`, + resign: `${path}/manual/chapter-13-admin-retirement`, + ExitInterviewEditQuestion: `${path}/manual/chapter-13-admin-retirement`, + "dismiss-order": `${path}/manual/chapter-13-admin-retirement`, + "report-report": `${path}/manual/chapter-14-admin-insignia`, + "report-report-01": `${path}/manual/chapter-14-admin-insignia`, + appealComplain: `${path}/manual/chapter-16-admin-discipline`, }; export default { @@ -209,4 +240,5 @@ export default { qualifyExamPanel, s3ClusterUrl, manualConfig, + generatePopupPath, }; diff --git a/src/components/Dialogs/DialogOrgSelect.vue b/src/components/Dialogs/DialogOrgSelect.vue index a819c4398..8dd2e2eff 100644 --- a/src/components/Dialogs/DialogOrgSelect.vue +++ b/src/components/Dialogs/DialogOrgSelect.vue @@ -344,8 +344,6 @@ async function getActive() { }) .catch((err) => { messageError($q, err); - }) - .finally(() => { hideLoader(); }); } diff --git a/src/modules/05_placement/components/PersonalList/Table.vue b/src/modules/05_placement/components/PersonalList/Table.vue index eee30764f..1ceac6518 100644 --- a/src/modules/05_placement/components/PersonalList/Table.vue +++ b/src/modules/05_placement/components/PersonalList/Table.vue @@ -898,37 +898,6 @@ onMounted(async () => { > - - - - - เลือกหน่วยงานที่รับบรรจุและแต่งตั้ง - + + + + เลือกหน่วยงานที่รับบรรจุและแต่งตั้ง + + ([ sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), format(val, row) { - return `${row.prefix}${row.firstName} ${row.lastName}`; + return `${row.prefix ?? ""}${row.firstName ?? ""} ${row.lastName ?? ""}`; }, }, { @@ -78,7 +78,11 @@ const columns = ref([ headerStyle: "font-size: 14px", style: "font-size: 14px", format(val, row) { - return row.positionTypeOld + " (" + row.positionLevelOld + ")"; + return row.positionTypeOld + ? `${row.positionTypeOld}${ + row.positionLevelOld ? `(${row.positionLevelOld})` : "" + }` + : ""; }, }, { @@ -257,6 +261,7 @@ onMounted(async () => {
+ {{}} {{ col.value == null ? "" : col.value == "" ? "-" : col.value }} diff --git a/src/modules/07_insignia/components/1_Proposals/addProposals.vue b/src/modules/07_insignia/components/1_Proposals/addProposals.vue index 4146517eb..4ef569328 100644 --- a/src/modules/07_insignia/components/1_Proposals/addProposals.vue +++ b/src/modules/07_insignia/components/1_Proposals/addProposals.vue @@ -222,7 +222,7 @@ onMounted(async () => {
{ { v-model="dateStart" :locale="'th'" autoApply - class="col-xs-12 col-sm-5" + class="col-xs-12 col-sm-5 inputgreen" borderless :enableTimePicker="false" week-start="0" @@ -307,7 +307,7 @@ onMounted(async () => { { { /> {
{ messageError($q, err); + }) + .finally(() => { + hideLoader(); }); } diff --git a/src/modules/09_leave/interface/request/changeRound.ts b/src/modules/09_leave/interface/request/changeRound.ts index a9e45b5b9..51154ff24 100644 --- a/src/modules/09_leave/interface/request/changeRound.ts +++ b/src/modules/09_leave/interface/request/changeRound.ts @@ -2,6 +2,8 @@ interface dataPost { cardId: string; firstName: string; lastName: string; + page: number; + pageSize: number; } interface DataOption { diff --git a/src/modules/09_leave/stores/ChangeRoundStore.ts b/src/modules/09_leave/stores/ChangeRoundStore.ts index c1422e647..f45b0dbca 100644 --- a/src/modules/09_leave/stores/ChangeRoundStore.ts +++ b/src/modules/09_leave/stores/ChangeRoundStore.ts @@ -127,6 +127,10 @@ export const useChangeRoundDataStore = defineStore( console.log(profileId); profileId.value = id; } + + const maxPageMain = ref(0); + const totalListMain = ref(0); + function fetchDataForCardId(dataDetail: any) { if (dataDetail) { showLoader(); @@ -141,6 +145,10 @@ export const useChangeRoundDataStore = defineStore( }) .then((res) => { const apiData = res.data.result.data; + totalListMain.value = res.data.result.total; + maxPageMain.value = Math.ceil( + totalListMain.value / dataDetail.pageSize + ); if (apiData.length > 0) { checkCilck.value = false; rows.value = apiData.map((e: any) => ({ @@ -238,6 +246,9 @@ export const useChangeRoundDataStore = defineStore( changePage, total, maxPage, + + totalListMain, + maxPageMain, }; } ); diff --git a/src/modules/09_leave/views/ChangeRoundMain.vue b/src/modules/09_leave/views/ChangeRoundMain.vue index 6c7e41052..26ff27127 100644 --- a/src/modules/09_leave/views/ChangeRoundMain.vue +++ b/src/modules/09_leave/views/ChangeRoundMain.vue @@ -1,5 +1,5 @@ @@ -529,11 +531,13 @@ const handleButtonClick = () => { dense flat size="13px" - class="q-mx-md bg-grey-3" + class="bg-grey-3" :color="totalNoti === 0 ? 'grey-6' : 'grey-8'" @click="handleButtonClick()" + style="margin-right: 10px" > - + + คู่มือ { dense flat size="13px" - class="q-mx-md bg-grey-3" + class="bg-grey-3" :color="totalNoti === 0 ? 'grey-6' : 'grey-8'" >