fix รายละเอียดคำสั่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-22 17:33:00 +07:00
parent f3b9c21733
commit 8331aef0f6

View file

@ -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;
})