แก้ไขทดลองงาน

This commit is contained in:
Warunee Tamkoo 2023-09-01 15:18:01 +07:00
parent 64152f72d9
commit e555119849
6 changed files with 127 additions and 331 deletions

View file

@ -94,7 +94,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "probation_status",
align: "left",
label: "สถานะทดลองงาน",
label: "สถานะการทดลองงาน",
sortable: true,
field: "probation_status",
headerStyle: "font-size: 14px",
@ -251,7 +251,7 @@ const findlist = async (id: string) => {
position: e.position,
level: e.positionEmployeeLevel,
organizationOrganization: e.oc,
status: statusProbation(e.probation),
status: e.probation,
}));
modal.value = true;
};
@ -306,14 +306,6 @@ const statusProbationMain = (val: number) => {
return " ";
}
};
const statusProbation = (val: boolean) => {
switch (val) {
case true:
return "ทดลองงาน";
default:
return " ";
}
};
//
const filterKeyword = ref<string>("");
@ -482,6 +474,9 @@ const paginationLabel2 = (start: string, end: string, total: string) => {
<div v-if="col.name == 'no'">
{{ props.rowIndex + 1 }}
</div>
<div v-else-if="col.name == 'status'">
<q-icon v-if="col.value === true" name="mdi-check" color="positive" />
</div>
<div v-else>
{{ col.value }}
</div>