เพิ่ม icon
This commit is contained in:
parent
80856bbed0
commit
572ef18909
12 changed files with 310 additions and 209 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue