ui จัดการตำแหน่งติดเงื่อนไข
This commit is contained in:
parent
54108b98eb
commit
577d2d8182
2 changed files with 14 additions and 3 deletions
|
|
@ -59,7 +59,7 @@ function onSubmit() {
|
|||
/>
|
||||
<q-separator />
|
||||
|
||||
<q-card-section>
|
||||
<q-card-section class="q-pt-none">
|
||||
<div class="row q--col-gutter-sm">
|
||||
<div class="col-12">
|
||||
<q-checkbox
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ const columns = ref<QTableProps["columns"]>([
|
|||
{
|
||||
name: "isCondition",
|
||||
align: "left",
|
||||
label: "ตำแหน่งติดเงื่อนไง",
|
||||
label: "ตำแหน่งติดเงื่อนไข",
|
||||
sortable: false,
|
||||
field: "isCondition",
|
||||
headerStyle: "font-size: 14px",
|
||||
|
|
@ -256,7 +256,18 @@ async function fetchDataTable() {
|
|||
const data = await res.data.result;
|
||||
totalRow.value = data.total;
|
||||
totalPage.value = Math.ceil(data.total / pageSize.value);
|
||||
rows.value = data.data;
|
||||
rows.value = data.data.map((e: any) => ({
|
||||
...e,
|
||||
profilePosition: e.profilePosition
|
||||
? e.profilePosition
|
||||
: e.positions[0].positionName,
|
||||
profilePostype: e.profilePostype
|
||||
? e.profilePostype
|
||||
: e.positions[0].posTypeName,
|
||||
profilePoslevel: e.profilePoslevel
|
||||
? e.profilePoslevel
|
||||
: e.positions[0].posTypeName,
|
||||
}));
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue