diff --git a/src/app.config.ts b/src/app.config.ts index be0aacba9..4ab46b8e9 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -137,10 +137,108 @@ const API = { ...file, }; +const path = "http://localhost:3008"; + +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 = { + 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 { API: API, compettitivePanel, qualifyDisableExamPanel, qualifyExamPanel, s3ClusterUrl, + manualConfig, + generatePopupPath, }; diff --git a/src/manual.json b/src/manual.json deleted file mode 100644 index 5a00a2c5c..000000000 --- a/src/manual.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "/": "http://localhost:3008/", - "/KPI-indicator-plan": "http://localhost:3008/manual/chapter-3-admin-evaluate", - "/KPI-indicator-role": "http://localhost:3008/manual/chapter-3-admin-evaluate", - "/assignment": "http://localhost:3008/manual/chapter-3-admin-evaluate", - "/KPI-competency": "http://localhost:3008/manual/chapter-3-admin-evaluate", - "/strategic": "http://localhost:3008/manual/chapter-3-admin-evaluate", - "/organization-new": "http://localhost:3008/manual/chapter-4-admin-organization", - "/registry-new": "http://localhost:3008/manual/chapter-7-admin-registry", - "/registry-employee": "http://localhost:3008/manual/chapter-8-admin-registry-employee", - "/order": "http://localhost:3008/manual/chapter-9-admin-order", - "/compete/period": "http://localhost:3008/manual/chapter-10-admin-recruit", - "/compete/period/stat": "http://localhost:3008/manual/chapter-10-admin-recruit", - "/qualify/period": "http://localhost:3008/manual/chapter-10-admin-recruit", - "/disable/period": "http://localhost:3008/manual/chapter-10-admin-recruit", - "/qualify/manage": "http://localhost:3008/manual/chapter-10-admin-recruit", - "/qualify/period/stat": "http://localhost:3008/manual/chapter-10-admin-recruit", - "/qualify/disable/stat": "http://localhost:3008/manual/chapter-10-admin-recruit", - "/placement": "http://localhost:3008/manual/chapter-11-admin-appointment", - "/transfer": "http://localhost:3008/manual/chapter-11-admin-appointment", - "/receive": "http://localhost:3008/manual/chapter-11-admin-appointment", - "/help-government": "http://localhost:3008/manual/chapter-11-admin-appointment", - "/repatriate": "http://localhost:3008/manual/chapter-11-admin-appointment", - "/appoint-promote": "http://localhost:3008/manual/chapter-11-admin-appointment", - "/appoint-employee": "http://localhost:3008/manual/chapter-11-admin-appointment", - "/other": "http://localhost:3008/manual/chapter-11-admin-appointment", - "/probation": "http://localhost:3008/manual/chapter-12-admin-probation", - "/retirement": "http://localhost:3008/manual/chapter-13-admin-retirement", - "/retirement/resign": "http://localhost:3008/manual/chapter-13-admin-retirement", - "/exit-Interview": "http://localhost:3008/manual/chapter-13-admin-retirement", - "/deceased": "http://localhost:3008/manual/chapter-13-admin-retirement", - "/dismiss-order": "http://localhost:3008/manual/chapter-13-admin-retirement", - "/insignia/round-proposals": "http://localhost:3008/manual/chapter-14-admin-insignia", - "/insignia/manage/list-manage": "http://localhost:3008/manual/chapter-14-admin-insignia", - "/insignia/record": "http://localhost:3008/manual/chapter-14-admin-insignia", - "/insignia/allocate": "http://localhost:3008/manual/chapter-14-admin-insignia", - "/insignia/borrow": "http://localhost:3008/manual/chapter-14-admin-insignia", - "/insignia/report": "http://localhost:3008/manual/chapter-14-admin-insignia", - "/discipline/complaints": "http://localhost:3008/manual/chapter-16-admin-discipline", - "/discipline/investigatefacts": "http://localhost:3008/manual/chapter-16-admin-discipline", - "/discipline/disciplinary": "http://localhost:3008/manual/chapter-16-admin-discipline", - "/discipline-result": "http://localhost:3008/manual/chapter-16-admin-discipline", - "/discipline-suspend": "http://localhost:3008/manual/chapter-16-admin-discipline", - "/discipline-appealcomplain": "http://localhost:3008/manual/chapter-16-admin-discipline", - "/discipline-order": "http://localhost:3008/manual/chapter-16-admin-discipline", - "/discipline/director": "http://localhost:3008/manual/chapter-16-admin-discipline", - "/discipline/channel": "http://localhost:3008/manual/chapter-16-admin-discipline", - "/evaluate": "http://localhost:3008/manual/chapter-17-admin-KPI", - "/evaluate/director": "http://localhost:3008/manual/chapter-17-admin-KPI", - "/evaluate/meeting": "http://localhost:3008/manual/chapter-17-admin-KPI", - "/salary":"http://localhost:3008/manual/chapter-18-admin-salary", - "/salary-employee":"http://localhost:3008/manual/chapter-18-admin-salary", - "/salary/round":"http://localhost:3008/manual/chapter-18-admin-salary", - "/salary/lists":"http://localhost:3008/manual/chapter-18-admin-salary", - "/salary-employee/lists":"http://localhost:3008/manual/chapter-18-admin-salary", - "/salary/command":"http://localhost:3008/manual/chapter-18-admin-salary", - "/development":"http://localhost:3008/manual/chapter-20-admin-development", - "/development/history":"http://localhost:3008/manual/chapter-20-admin-development", - "/development/employee-history":"http://localhost:3008/manual/chapter-20-admin-development", - "/development/scholarship":"http://localhost:3008/manual/chapter-20-admin-development" -} \ No newline at end of file diff --git a/src/modules/06_retirement/components/ListRetirement/AddList.vue b/src/modules/06_retirement/components/ListRetirement/AddList.vue index cac1f34d0..458848879 100644 --- a/src/modules/06_retirement/components/ListRetirement/AddList.vue +++ b/src/modules/06_retirement/components/ListRetirement/AddList.vue @@ -132,6 +132,9 @@ const fecthProfile = async () => { ); rows.value = res.data.result.data.map((e: any) => ({ id: e.id, + prefix:e.prefix, + firstName:e.firstName, + lastName:e.lastName, fullname: e.prefix + e.firstName + " " + e.lastName, position: e.position, level: @@ -265,10 +268,10 @@ const paginationLabel = (start: number, end: number, total: number) => { {{ props.rowIndex + 1 }} - {{ props.row.fullname }} + {{ props.row.prefix ? props.row.prefix:'' }}{{ props.row.firstName ? props.row.firstName:'' }} {{ props.row.lastName ? props.row.lastName:'' }} - {{ props.row.position }} + {{ props.row.position ? props.row.position:'-' }} {{ props.row.level }} ([]); /** คอลัมน์ที่แสดง */ const columns = ref([]); -const rows = ref([]); +const rows = ref([]); const visibleColumns = ref([ "order", "name", @@ -101,6 +101,9 @@ const fecthlistprofile = async (id: string) => { id: e.id, profileId: e.profileId, order: e.order, + prefix: e.prefix, + firstName: e.firstName, + lastName: e.lastName, name: e.prefix + e.firstName + " " + e.lastName, organization: e.root, position: e.position, @@ -629,7 +632,11 @@ function updatemodalPersonal(modal: boolean) { @click.stop="onclickViewinfo(props.row.profileId)" > {{ props.row.order }} - {{ props.row.name }} + {{ props.row.prefix ? props.row.prefix : "" + }}{{ props.row.firstName ? props.row.firstName : "" }} + {{ props.row.lastName ? props.row.lastName : "" }} {{ - props.row.position + props.row.position ? props.row.position:'-' }} {{ props.row.positionType ? props.row.positionType : "-" }} @@ -649,7 +656,7 @@ function updatemodalPersonal(modal: boolean) { {{ - props.row.positionNumber + props.row.positionNumber ? props.row.positionNumber:'-' }} {{ - props.row.organization + props.row.organization ? props.row.organization:'-' }} { dense flat size="13px" - class="q-mx-md bg-grey-3" + class="bg-grey-3" :color="totalNoti === 0 ? 'grey-6' : 'grey-8'" >