แก้ไขทดลองงาน
This commit is contained in:
parent
64152f72d9
commit
e555119849
6 changed files with 127 additions and 331 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue