validate
This commit is contained in:
parent
21a91881a4
commit
34acdbea0e
4 changed files with 297 additions and 154 deletions
|
|
@ -57,6 +57,7 @@ onMounted(() => {
|
|||
pmOut: "15:30",
|
||||
note: "",
|
||||
status: true,
|
||||
isDefault:true
|
||||
},
|
||||
{
|
||||
am: "08:30",
|
||||
|
|
@ -65,6 +66,7 @@ onMounted(() => {
|
|||
pmOut: "15:30",
|
||||
note: "",
|
||||
status: false,
|
||||
isDefault:true
|
||||
},
|
||||
{
|
||||
am: "09:30",
|
||||
|
|
@ -73,6 +75,7 @@ onMounted(() => {
|
|||
pmOut: "15:30",
|
||||
note: "",
|
||||
status: true,
|
||||
isDefault:true
|
||||
},
|
||||
{
|
||||
am: "10:30",
|
||||
|
|
@ -81,6 +84,7 @@ onMounted(() => {
|
|||
pmOut: "15:30",
|
||||
note: "",
|
||||
status: true,
|
||||
isDefault:false
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
|
@ -164,6 +168,7 @@ onMounted(() => {
|
|||
>
|
||||
<template v-slot:header="props">
|
||||
<q-tr :props="props">
|
||||
<q-th auto-width></q-th>
|
||||
<q-th
|
||||
v-for="col in props.cols"
|
||||
:key="col.name"
|
||||
|
|
@ -176,6 +181,16 @@ onMounted(() => {
|
|||
</template>
|
||||
<template v-slot:body="props">
|
||||
<q-tr :props="props" class="cursor-pointer">
|
||||
<q-td auto-width>
|
||||
<q-icon
|
||||
v-if="props.row.isDefault === true"
|
||||
name="mdi-bookmark"
|
||||
size="xs"
|
||||
color="primary"
|
||||
>
|
||||
<q-tooltip>เวลา Default</q-tooltip>
|
||||
</q-icon>
|
||||
</q-td>
|
||||
<q-td v-for="col in props.cols" :key="col.name" :props="props" @click.prevent="openModal(props.row,'edit')">
|
||||
<div v-if="col.name === 'status'" class="text-center">
|
||||
<q-icon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue