ปรับ Columns ประวัติข้อมูลการจ้าง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-10-25 17:40:38 +07:00
parent 45dfe838da
commit 49bbf92b4f

View file

@ -223,28 +223,28 @@ const columnsHis = ref<QTableProps["columns"]>([
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "font-size: 14px", style: "font-size: 14px",
}, },
{ // {
name: "createdFullName", // name: "createdFullName",
align: "left", // align: "left",
label: "ผู้สร้าง", // label: "",
sortable: false, // sortable: false,
field: "createdFullName", // field: "createdFullName",
headerStyle: "font-size: 14px", // headerStyle: "font-size: 14px",
style: "font-size: 14px", // style: "font-size: 14px",
}, // },
{ // {
name: "createdAt", // name: "createdAt",
align: "left", // align: "left",
label: "วันที่สร้าง", // label: "",
sortable: false, // sortable: false,
field: "createdAt", // field: "createdAt",
headerStyle: "font-size: 14px", // headerStyle: "font-size: 14px",
style: "font-size: 14px", // style: "font-size: 14px",
}, // },
{ {
name: "lastUpdateFullName", name: "lastUpdateFullName",
align: "left", align: "left",
label: "ผู้แก้ไข", label: "ผู้ดำเนินการ",
sortable: false, sortable: false,
field: "lastUpdateFullName", field: "lastUpdateFullName",
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
@ -263,14 +263,15 @@ const columnsHis = ref<QTableProps["columns"]>([
const visibleColumnsHis = ref<string[]>([ const visibleColumnsHis = ref<string[]>([
"dateEmployment", "dateEmployment",
"orderEmployment", "orderEmployment",
"createdFullName", // "createdFullName",
"createdAt", // "createdAt",
"lastUpdateFullName", "lastUpdateFullName",
"lastUpdatedAt", "lastUpdatedAt",
]); ]);
const filterHis = ref<string>(); const filterHis = ref<string>();
async function openPopupHistory(id: string) { async function openPopupHistory(id: string) {
modalHistory.value = true; modalHistory.value = true;
filterHis.value = "";
showLoader(); showLoader();
await http await http
.get(config.API.employmentHistoryId(id)) .get(config.API.employmentHistoryId(id))
@ -540,7 +541,7 @@ const paginationHis = ref({
</q-dialog> </q-dialog>
<q-dialog v-model="modalHistory"> <q-dialog v-model="modalHistory">
<q-card style="width: 700px; max-width: 80vw"> <q-card style="width: 800px; max-width: 80vw">
<q-toolbar> <q-toolbar>
<q-toolbar-title class="text-subtitle1 text-weight-bold"> <q-toolbar-title class="text-subtitle1 text-weight-bold">
<span style="margin-right: 0"> ประวอมลการจาง </span> <span style="margin-right: 0"> ประวอมลการจาง </span>
@ -557,7 +558,7 @@ const paginationHis = ref({
</q-toolbar> </q-toolbar>
<q-separator /> <q-separator />
<q-card-section class="q-pt-none q-mt-md"> <q-card-section class="q-pt-none q-mt-sm">
<q-toolbar class="q-pa-none"> <q-toolbar class="q-pa-none">
<q-space /> <q-space />
<div class="q-gutter-sm" style="display: flex"> <div class="q-gutter-sm" style="display: flex">