ปรับสิทธิ์

This commit is contained in:
STW_TTTY\stwtt 2024-08-19 13:25:17 +07:00
parent 3985b7255e
commit fd42965fa0
6 changed files with 21 additions and 22 deletions

View file

@ -327,19 +327,20 @@ const uploadFile = async (event: any, signDate: any) => {
config.API.fileRetirement(retireld.value.toString()), config.API.fileRetirement(retireld.value.toString()),
formdata formdata
) )
.then(() => { .then(async(res) => {
fileUpload.value = null;
signDate.value = null;
modalUpload.value = false;
await fecthlistprofile(retireld.value);
await fecthCheck(retireld.value);
hideLoader();
success($q, "เพิ่มไฟล์สำเร็จ"); success($q, "เพิ่มไฟล์สำเร็จ");
}) })
.catch((err) => { .catch((err) => {
messageError($q, err); messageError($q, err);
}) })
.finally(() => { .finally(() => {
fileUpload.value = null;
signDate.value = null;
modalUpload.value = false;
fecthlistprofile(retireld.value);
fecthCheck(retireld.value);
hideLoader();
}); });
}, },
"ยืนยันการอัปโหลดเอกสาร", "ยืนยันการอัปโหลดเอกสาร",

View file

@ -1657,7 +1657,7 @@ onMounted(async () => {
flat flat
round round
color="blue" color="blue"
icon="mdi-download-outline" icon="mdi-download"
@click="downloadRenameFileByLink(file.pathName, file.fileName)" @click="downloadRenameFileByLink(file.pathName, file.fileName)"
> >
<q-tooltip>ดาวนโหลดไฟล</q-tooltip> <q-tooltip>ดาวนโหลดไฟล</q-tooltip>

View file

@ -545,11 +545,8 @@ function updatemodalPersonal(modal: boolean) {
ปโหลดไฟลเอกสารหลกฐาน ปโหลดไฟลเอกสารหลกฐาน
</div> </div>
<div class="col-12"><q-separator /></div> <div class="col-12"><q-separator /></div>
<div <div class="row col-12 q-col-gutter-y-sm q-pa-sm">
class="row col-12 q-col-gutter-y-sm q-pa-sm" <div class="col-12 row" v-if="!checkRoutePermisson">
v-if="!checkRoutePermisson"
>
<div class="col-12 row">
<q-file <q-file
for="inputFiles" for="inputFiles"
class="col-12" class="col-12"

View file

@ -185,7 +185,7 @@ function downloadFile(link: string) {
flat flat
round round
color="blue" color="blue"
icon="mdi-download-outline" icon="mdi-download"
@click="downloadRenameFileByLink(f.pathName,f.fileName)" @click="downloadRenameFileByLink(f.pathName,f.fileName)"
> >
<q-tooltip>ดาวนโหลดเอกสาร</q-tooltip> <q-tooltip>ดาวนโหลดเอกสาร</q-tooltip>

View file

@ -438,6 +438,7 @@ onMounted(() => {
<q-tr :props="props"> <q-tr :props="props">
<q-td auto-width> <q-td auto-width>
<q-btn <q-btn
v-if="checkPermission($route)?.attrIsGet"
flat flat
round round
dense dense

View file

@ -348,7 +348,10 @@ onMounted(() => {
<q-space /> <q-space />
<q-btn <q-btn
v-if="formFilter.root !== null && checkPermission($route)?.attrIsGet !== false" v-if="
formFilter.root !== null &&
checkPermission($route)?.attrIsGet !== false
"
flat flat
round round
dense dense
@ -432,7 +435,7 @@ onMounted(() => {
> >
<template v-slot:header="props"> <template v-slot:header="props">
<q-tr :props="props"> <q-tr :props="props">
<q-th auto-width v-if="checkPermission($route)?.attrIsGet"></q-th> <q-th auto-width></q-th>
<q-th v-for="col in props.cols" :key="col.name" :props="props"> <q-th v-for="col in props.cols" :key="col.name" :props="props">
<span class="text-weight-medium">{{ col.label }}</span> <span class="text-weight-medium">{{ col.label }}</span>
</q-th> </q-th>
@ -441,8 +444,9 @@ onMounted(() => {
<template v-slot:body="props"> <template v-slot:body="props">
<q-tr :props="props"> <q-tr :props="props">
<q-td auto-width v-if="checkPermission($route)?.attrIsGet"> <q-td auto-width>
<q-btn <q-btn
v-if="checkPermission($route)?.attrIsGet"
flat flat
round round
dense dense
@ -453,11 +457,7 @@ onMounted(() => {
<q-tooltip>รายละเอยด</q-tooltip> <q-tooltip>รายละเอยด</q-tooltip>
</q-btn> </q-btn>
</q-td> </q-td>
<q-td <q-td v-for="col in props.cols" :key="col.name" :props="props">
v-for="col in props.cols"
:key="col.name"
:props="props"
>
<div class="table_ellipsis"> <div class="table_ellipsis">
{{ col.value ? col.value : "-" }} {{ col.value ? col.value : "-" }}
</div> </div>