เพิ่ม icon

This commit is contained in:
STW_TTTY\stwtt 2024-09-23 13:40:03 +07:00
parent 80856bbed0
commit 572ef18909
12 changed files with 310 additions and 209 deletions

View file

@ -360,9 +360,6 @@ async function saveDataAgency(data: DataLink[], del: string) {
async function saveDataGoverment(data: DataLink[], del: string) {
dialogform.value?.validate().then(async (result: boolean) => {
if (result) {
// if (data.length === 0) {
// dialogMessageNotify($q, " 2 2 ");
// } else
if (del) {
dialogRemove($q, () => dataPost(data));
} else {
@ -853,7 +850,6 @@ onMounted(async () => {
:disable="statusHeader()"
class="q-pt-sm"
/>
<!-- :disable="true" -->
<q-input
v-model="web.thai"
:class="getClass(enable.web)"
@ -1116,17 +1112,20 @@ onMounted(async () => {
>
<template #columns="props">
<q-tr :props="props">
<q-td
v-for="col in props.cols"
:key="col.name"
:props="props"
@click="
checkPermission($route)?.attrIsUpdate
? selectData(props.row.id, false)
: undefined
"
class="cursor-pointer"
>
<q-td auto-width>
<q-btn
v-if="checkPermission($route)?.attrIsUpdate"
@click="selectData(props.row.id, false)"
flat
dense
round
color="primary"
icon="edit"
>
<q-tooltip>แกไขขอม</q-tooltip>
</q-btn>
</q-td>
<q-td v-for="col in props.cols" :key="col.name" :props="props">
<div v-if="col.name == 'createdAt'" class="">
{{ date2Thai(col.value) }}
</div>
@ -1159,17 +1158,20 @@ onMounted(async () => {
>
<template #columns="props">
<q-tr :props="props">
<q-td
v-for="col in props.cols"
:key="col.name"
:props="props"
@click="
checkPermission($route)?.attrIsUpdate
? selectData(props.row.id, true)
: undefined
"
class="cursor-pointer"
>
<q-td auto-width>
<q-btn
v-if="checkPermission($route)?.attrIsUpdate"
@click="selectData(props.row.id, true)"
flat
dense
round
color="primary"
icon="edit"
>
<q-tooltip>แกไขขอม</q-tooltip>
</q-btn>
</q-td>
<q-td v-for="col in props.cols" :key="col.name" :props="props">
<div v-if="col.name == 'createdAt'" class="">
{{ date2Thai(col.value) }}
</div>