fixing history command

This commit is contained in:
Warunee Tamkoo 2024-07-10 11:01:14 +07:00
parent e45aadbf6c
commit 4016eb6db3
2 changed files with 8 additions and 4 deletions

View file

@ -10,6 +10,7 @@ const placemenRepatriation = `${placement}/repatriation`;
const placemenRelocation = `${placement}/relocation`; const placemenRelocation = `${placement}/relocation`;
const placemenOther = `${env.API_URI}/retirement/other`; const placemenOther = `${env.API_URI}/retirement/other`;
const placemenAppointment = `${placement}/appointment`; const placemenAppointment = `${placement}/appointment`;
const orgSearchCommand = `${env.API_URI}/org/profile/search/profile/command`;
export default { export default {
MainDetail: (year: number) => `${placement}/exam/${year}`, MainDetail: (year: number) => `${placement}/exam/${year}`,
@ -102,6 +103,7 @@ export default {
orderReady: (id: string) => `${order}/order/ready/${id}`, orderReady: (id: string) => `${order}/order/ready/${id}`,
attachmentOrder: (orderId: string) => `${order}/order/attachment/${orderId}`, attachmentOrder: (orderId: string) => `${order}/order/attachment/${orderId}`,
searchOrderprofile: () => `${order}/order/search/profile/command`, searchOrderprofile: () => `${order}/order/search/profile/command`,
searchCommandProfileNew: () => `${orgSearchCommand}`,
disciplineReportList, disciplineReportList,
//receive ระบบรับโอน //receive ระบบรับโอน
receiveData: () => `${receive}`, receiveData: () => `${receive}`,

View file

@ -103,9 +103,9 @@ const clickSearch = async () => {
}; };
showLoader(); showLoader();
http http
.post(config.API.searchOrderprofile(), body) .post(config.API.searchCommandProfileNew(), body)
.then((res) => { .then(async (res) => {
let data = res.data.result; let data = await res.data.result.data;
if (data.length !== 0) { if (data.length !== 0) {
rows.value = data.map((e: history) => ({ rows.value = data.map((e: history) => ({
id: e.id, id: e.id,
@ -312,7 +312,9 @@ function updatemodalPersonal(modal: boolean) {
>{{ props.row.name }}</q-td >{{ props.row.name }}</q-td
> >
<q-td key="posNo" :props="props">{{ props.row.posNo }}</q-td> <q-td key="posNo" :props="props">{{
props.row.posNo !== null ? props.row.posNo : "-"
}}</q-td>
<q-td key="position" :props="props">{{ <q-td key="position" :props="props">{{
props.row.position props.row.position
}}</q-td> }}</q-td>