fix รายละเอียดคำสั่ง
This commit is contained in:
parent
f3b9c21733
commit
8331aef0f6
1 changed files with 4 additions and 5 deletions
|
|
@ -54,11 +54,13 @@ const columns = ref<QTableProps["columns"]>([
|
|||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
},
|
||||
|
||||
{
|
||||
name: "fullName",
|
||||
align: "left",
|
||||
label: "ชื่อ-นามสกุล",
|
||||
field: "fullName",
|
||||
|
||||
field: (row) => `${row.prefix}${row.firstName} ${row.lastName}`,
|
||||
sortable: true,
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
|
|
@ -116,10 +118,7 @@ async function fetchData() {
|
|||
.get(config.API.commandAction(commandId.value, "tab3"))
|
||||
.then(async (res) => {
|
||||
const data = await res.data.result;
|
||||
rows.value = data.map((e: DataPerson) => ({
|
||||
...e,
|
||||
fullName: `${e.prefix}${e.firstName} ${e.lastName}`,
|
||||
}));
|
||||
rows.value = data;
|
||||
|
||||
isChangeData.value = false;
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue