แก้ไข clickEditRowposition
This commit is contained in:
parent
9975c4176d
commit
58a8f97e6c
1 changed files with 11 additions and 6 deletions
|
|
@ -50,11 +50,12 @@
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template #bottom="props">
|
<template #bottom="props">
|
||||||
<div style="width: 60% !important" />
|
<div style="width: 64% !important" />
|
||||||
|
|
||||||
<div
|
<div
|
||||||
:props="props"
|
:props="props"
|
||||||
class="row"
|
class="row"
|
||||||
style="width: 18.4% !important; padding-left: 20px"
|
style="width: 33% !important; padding-left: 20px"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="text-weight-medium text-subtitle2 q-py-sm row col-12 justify-between"
|
class="text-weight-medium text-subtitle2 q-py-sm row col-12 justify-between"
|
||||||
|
|
@ -91,7 +92,7 @@
|
||||||
v-model="position"
|
v-model="position"
|
||||||
:rules="[(val) => !!val || `${'กรุณากรอกตำแหน่ง/ลักษณะงาน'}`]"
|
:rules="[(val) => !!val || `${'กรุณากรอกตำแหน่ง/ลักษณะงาน'}`]"
|
||||||
:label="`${'ตำแหน่ง/ลักษณะงาน'}`"
|
:label="`${'ตำแหน่ง/ลักษณะงาน'}`"
|
||||||
@update:modelValue="clickEditRow"
|
@update:modelValue="clickEditRowPosition"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -424,7 +425,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
name: "startDate",
|
name: "startDate",
|
||||||
align: "left",
|
align: "center",
|
||||||
label: "เริ่ม",
|
label: "เริ่ม",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "startDate",
|
field: "startDate",
|
||||||
|
|
@ -435,7 +436,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "endDate",
|
name: "endDate",
|
||||||
align: "left",
|
align: "center",
|
||||||
label: "สิ้นสุด",
|
label: "สิ้นสุด",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "endDate",
|
field: "endDate",
|
||||||
|
|
@ -446,7 +447,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "rangeDate",
|
name: "rangeDate",
|
||||||
align: "left",
|
align: "right",
|
||||||
label: "ระยะเวลา",
|
label: "ระยะเวลา",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "rangeDate",
|
field: "rangeDate",
|
||||||
|
|
@ -835,6 +836,10 @@ const clickEditRow = () => {
|
||||||
editRow.value = true;
|
editRow.value = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const clickEditRowPosition = () => {
|
||||||
|
editRow.value = true;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* validate input ใน dialog
|
* validate input ใน dialog
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue