ประเมินบบุคคล => permission คำขอประเมิน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-05 09:49:09 +07:00
parent d3b2733ad5
commit 5d83ef2e4f
5 changed files with 316 additions and 234 deletions

View file

@ -1,5 +1,6 @@
<script setup lang="ts">
import { ref, onMounted, defineProps, watch } from "vue";
import { ref, defineProps, watch } from "vue";
import { checkPermission } from "@/utils/permissions";
import http from "@/plugins/http";
import config from "@/app.config";
import { useQuasar } from "quasar";
@ -93,12 +94,12 @@ const listDirector = ref<any>([]);
async function onClickAdd() {
modalAddDirector.value = true;
getList()
getList();
}
function onClickClose() {
modalAddDirector.value = false;
props.fetchdata()
props.fetchdata();
}
/**
@ -155,9 +156,9 @@ async function getList() {
prefix: item.prefix,
firstName: item.firstName,
lastName: item.lastName,
phone: item.phone == '' ? '-' : item.phone,
email: item.email == '' ? '-' : item.email,
position: item.position == '' ? '-' : item.position,
phone: item.phone == "" ? "-" : item.phone,
email: item.email == "" ? "-" : item.email,
position: item.position == "" ? "-" : item.position,
}));
})
.catch((e) => {
@ -177,15 +178,14 @@ watch(
prefix: item.prefix,
firstName: item.firstName,
lastName: item.lastName,
phone: item.phone == '' ? '-' : item.phone,
email: item.email == '' ? '-' : item.email,
position: item.position == '' ? '-' : item.position,
positionName: item.positionName == '-' ? '-' : item.positionName,
phone: item.phone == "" ? "-" : item.phone,
email: item.email == "" ? "-" : item.email,
position: item.position == "" ? "-" : item.position,
positionName: item.positionName == "-" ? "-" : item.positionName,
}));
}
}
);
</script>
<template>
@ -195,6 +195,7 @@ watch(
>
กรรมการ
<q-btn
v-if="checkPermission($route)?.attrIsUpdate"
size="12px"
flat
round

View file

@ -1,5 +1,6 @@
<script setup lang="ts">
import { ref, onMounted, watch, defineProps } from "vue";
import { checkPermission } from "@/utils/permissions";
import type { QTableProps } from "quasar";
import { useQuasar } from "quasar";
import { useRoute } from "vue-router";
@ -119,12 +120,12 @@ const listMeet = ref<any>([]);
function onClickAdd() {
modalAdd.value = true;
getList()
getList();
}
function onClickClose() {
modalAdd.value = false;
props.fetchdata()
props.fetchdata();
}
/**
@ -177,8 +178,8 @@ async function getList() {
lastUpdateUserId: item.lastUpdateUserId,
createdFullName: item.createdFullName,
lastUpdateFullName: item.lastUpdateFullName,
title: item.title ? item.title :'-',
round: item.round ? item.round : '-',
title: item.title ? item.title : "-",
round: item.round ? item.round : "-",
date: `${date2Thai(item.dateStart as Date, false, true)} - ${date2Thai(
item.dateEnd as Date,
false,
@ -208,8 +209,8 @@ watch(
true
)}`,
dateStart: item.dateStart,
title: item.title ? item.title : '-',
round: item.round ? item.round : '-',
title: item.title ? item.title : "-",
round: item.round ? item.round : "-",
dateEnd: item.dateEnd,
result: item.result,
timePeriod: item.duration,
@ -217,7 +218,6 @@ watch(
}
}
);
</script>
<template>
<q-card bordered class="row col-12" style="border: 1px solid #d6dee1">
@ -226,6 +226,7 @@ watch(
>
การประช
<q-btn
v-if="checkPermission($route)?.attrIsUpdate"
size="12px"
flat
round