ย้ายไอคอน

This commit is contained in:
STW_TTTY\stwtt 2024-07-24 16:37:04 +07:00
parent da4e99f767
commit c3c11afd1f
58 changed files with 1115 additions and 1056 deletions

View file

@ -132,14 +132,26 @@ onMounted(() => {
>
<template v-slot:header="props">
<q-tr :props="props">
<q-th auto-width v-if="typeTab === 'time-record'"></q-th>
<q-th v-for="col in props.cols" :key="col.name" :props="props">
<span class="text-weight-medium">{{ col.label }}</span>
</q-th>
<q-th auto-width v-if="typeTab === 'time-record'"></q-th>
</q-tr>
</template>
<template v-slot:body="props">
<q-tr :props="props" class="cursor-pointer">
<q-td v-if="typeTab === 'time-record'">
<q-btn
flat
dense
round
color="edit"
icon="edit"
@click.prevent="onClickEdit(props.row)"
>
<q-tooltip>แกไข</q-tooltip>
</q-btn>
</q-td>
<q-td
v-for="col in props.cols"
:key="col.name"
@ -177,18 +189,7 @@ onMounted(() => {
{{ col.value }}
</div>
</q-td>
<q-td v-if="typeTab === 'time-record'">
<q-btn
flat
dense
round
color="edit"
icon="edit"
@click.prevent="onClickEdit(props.row)"
>
<q-tooltip>แกไข</q-tooltip>
</q-btn>
</q-td>
</q-tr>
</template>
<template v-slot:pagination="scope">

View file

@ -209,6 +209,7 @@ function searchData() {
<!-- :paging="true" -->
<template v-slot:header="props">
<q-tr :props="props">
<q-th auto-width />
<q-th
v-for="col in props.cols"
:key="col.name"
@ -217,17 +218,11 @@ function searchData() {
>
<span class="text-weight-medium">{{ col.label }}</span>
</q-th>
<q-th style="width: 200px" />
</q-tr>
</template>
<template v-slot:body="props">
<q-tr :props="props" class="cursor-pointer">
<q-td v-for="col in props.cols" :key="col.name" :props="props">
<div>
{{ col.value }}
</div>
</q-td>
<q-td style="width: 150px">
<q-td>
<div>
<q-btn
flat
@ -272,6 +267,11 @@ function searchData() {
</q-btn>
</div>
</q-td>
<q-td v-for="col in props.cols" :key="col.name" :props="props">
<div>
{{ col.value }}
</div>
</q-td>
</q-tr>
</template>
<template v-slot:pagination="scope">

View file

@ -179,6 +179,7 @@ onMounted(() => {
>
<template v-slot:header="props">
<q-tr :props="props">
<q-th auto-width></q-th>
<q-th auto-width></q-th>
<q-th
v-for="col in props.cols"
@ -188,12 +189,13 @@ onMounted(() => {
>
<span class="text-weight-medium">{{ col.label }}</span>
</q-th>
<q-th auto-width></q-th>
</q-tr>
</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"
@ -203,6 +205,16 @@ onMounted(() => {
<q-tooltip>เวลา Default</q-tooltip>
</q-icon>
</q-td>
<q-td>
<q-btn
dense
flat
round
color="red"
icon="delete"
@click="onClickDelete(props.row.id)"
/>
</q-td>
<q-td
v-for="col in props.cols"
:key="col.name"
@ -227,16 +239,7 @@ onMounted(() => {
{{ col.value }}
</div>
</q-td>
<q-td>
<q-btn
dense
flat
round
color="red"
icon="delete"
@click="onClickDelete(props.row.id)"
/>
</q-td>
</q-tr>
</template>
</d-table>

View file

@ -290,30 +290,15 @@ const monthYearThai = (val: any) => {
</template>
<template v-slot:header="props">
<q-tr :props="props">
<q-th auto-width />
<q-th v-for="col in props.cols" :key="col.name" :props="props">
<span class="text-weight-medium">{{ col.label }}</span>
</q-th>
<q-th auto-width />
</q-tr>
</template>
<template v-slot:body="props">
<q-tr :props="props" class="cursor-pointer">
<q-td v-for="col in props.cols" :key="col.name" :props="props">
<div v-if="col.name == 'no'">
{{
(dataSpecialTime.page - 1) * dataSpecialTime.pageSize +
props.rowIndex +
1
}}
</div>
<div v-else-if="col.name === 'description'" class="table_ellipsis">
{{ props.row.description }}
</div>
<div v-else>
{{ col.value }}
</div>
</q-td>
<q-td auto-width>
<q-td auto-width class="text-right">
<q-btn
v-if="props.row.status == 'PENDING'"
color="orange"
@ -356,6 +341,24 @@ const monthYearThai = (val: any) => {
label="ไม่อนุมัติ"
/>
</q-td>
<q-td v-for="col in props.cols" :key="col.name" :props="props">
<div v-if="col.name == 'no'">
{{
(dataSpecialTime.page - 1) * dataSpecialTime.pageSize +
props.rowIndex +
1
}}
</div>
<div
v-else-if="col.name === 'description'"
class="table_ellipsis"
>
{{ props.row.description }}
</div>
<div v-else>
{{ col.value }}
</div>
</q-td>
</q-tr>
</template>
</d-table>
@ -369,7 +372,7 @@ const monthYearThai = (val: any) => {
label="เหตุผล"
:savaForm="clickSave"
/>
<DialogApprove
:modal="modalApprove"
:closeDialog="closeDialog"