fixing history command
This commit is contained in:
parent
e45aadbf6c
commit
4016eb6db3
2 changed files with 8 additions and 4 deletions
|
|
@ -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}`,
|
||||
|
|
|
|||
|
|
@ -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 }}</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">{{
|
||||
props.row.position
|
||||
}}</q-td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue