diff --git a/src/api/05_placement/api.placement.ts b/src/api/05_placement/api.placement.ts index a5ac04908..9272786ba 100644 --- a/src/api/05_placement/api.placement.ts +++ b/src/api/05_placement/api.placement.ts @@ -10,6 +10,7 @@ const placemenRepatriation = `${placement}/repatriation`; const placemenRelocation = `${placement}/relocation`; const placemenOther = `${env.API_URI}/retirement/other`; const placemenAppointment = `${placement}/appointment`; +const orgSearchCommand = `${env.API_URI}/org/profile/search/profile/command`; export default { MainDetail: (year: number) => `${placement}/exam/${year}`, @@ -102,6 +103,7 @@ export default { orderReady: (id: string) => `${order}/order/ready/${id}`, attachmentOrder: (orderId: string) => `${order}/order/attachment/${orderId}`, searchOrderprofile: () => `${order}/order/search/profile/command`, + searchCommandProfileNew: () => `${orgSearchCommand}`, disciplineReportList, //receive ระบบรับโอน receiveData: () => `${receive}`, diff --git a/src/modules/10_order/components/PopupHistory.vue b/src/modules/10_order/components/PopupHistory.vue index 59b68b420..2873301a1 100644 --- a/src/modules/10_order/components/PopupHistory.vue +++ b/src/modules/10_order/components/PopupHistory.vue @@ -103,9 +103,9 @@ const clickSearch = async () => { }; showLoader(); http - .post(config.API.searchOrderprofile(), body) - .then((res) => { - let data = res.data.result; + .post(config.API.searchCommandProfileNew(), body) + .then(async (res) => { + let data = await res.data.result.data; if (data.length !== 0) { rows.value = data.map((e: history) => ({ id: e.id, @@ -312,7 +312,9 @@ function updatemodalPersonal(modal: boolean) { >{{ props.row.name }} - {{ props.row.posNo }} + {{ + props.row.posNo !== null ? props.row.posNo : "-" + }} {{ props.row.position }}