This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-11-04 15:21:23 +07:00
parent aa9b04772b
commit 3b6c22027c
26 changed files with 155 additions and 134 deletions

View file

@ -32,8 +32,8 @@ const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
/**
* props
*/
const props = defineProps({
isLeave: Boolean,
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
const mode = ref<string>("table"); // Table,Card
@ -377,7 +377,7 @@ onMounted(() => {
<template>
<div class="row items-center q-gutter-x-sm q-pb-sm">
<q-btn
v-if="!props.isLeave && checkPermission($route)?.attrIsUpdate"
v-if="!isLeave && checkPermission($route)?.attrIsUpdate"
round
flat
color="primary"
@ -486,7 +486,7 @@ onMounted(() => {
<q-tooltip>ประวแกไขใบอนญาตประกอบวชาช</q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
flat
dense
round
@ -527,7 +527,7 @@ onMounted(() => {
<q-tooltip>ประวแกไขใบอนญาตประกอบวชาช</q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
flat
round
color="edit"

View file

@ -16,8 +16,8 @@ import dialogHeader from "@/components/DialogHeader.vue";
/**
* props
*/
const props = defineProps({
isLeave:Boolean
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
const route = useRoute();
@ -531,7 +531,7 @@ onMounted(() => {
<template>
<div class="row items-center q-gutter-x-sm q-pb-sm">
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
round
dense
flat
@ -642,7 +642,9 @@ onMounted(() => {
<q-tooltip>ประวแกไขการฝกอบรม/งาน</q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="
isLeave == false && checkPermission($route)?.attrIsUpdate
"
flat
dense
round
@ -682,7 +684,9 @@ onMounted(() => {
<q-tooltip>ประวแกไขการฝกอบรม/งาน</q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="
isLeave == false && checkPermission($route)?.attrIsUpdate
"
flat
round
color="edit"

View file

@ -38,8 +38,8 @@ const {
/**
* props
*/
const props = defineProps({
isLeave:Boolean
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
const profileId = ref<string>(
@ -656,7 +656,7 @@ onMounted(async () => {
<template>
<div class="row items-center q-gutter-x-sm q-pb-sm">
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
dense
color="primary"
icon="add"
@ -776,7 +776,9 @@ onMounted(async () => {
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="
isLeave == false && checkPermission($route)?.attrIsUpdate
"
flat
dense
round
@ -809,7 +811,9 @@ onMounted(async () => {
<q-tooltip>ประวแกไขเครองราชอสรยาภรณ</q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="
isLeave == false && checkPermission($route)?.attrIsUpdate
"
flat
round
color="edit"

View file

@ -35,8 +35,8 @@ const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
/**
* props
*/
const props = defineProps({
isLeave:Boolean
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
const id = ref<string>(""); //id
@ -372,7 +372,7 @@ onMounted(() => {
<template>
<div class="row items-center q-gutter-x-sm q-pb-sm">
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
dense
color="primary"
icon="add"
@ -491,7 +491,7 @@ onMounted(() => {
<q-tooltip>ประวแกไขประกาศเกยรต</q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
flat
dense
round
@ -524,7 +524,7 @@ onMounted(() => {
<q-tooltip>ประวแกไขประกาศเกยรต</q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
flat
round
color="edit"

View file

@ -49,8 +49,8 @@ const kpiDevelopmentId = ref<string>(""); // id การพัฒนารา
/**
* props
*/
const props = defineProps({
isLeave:Boolean
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
const totalIdp = ref<number>(0);
@ -587,7 +587,7 @@ onMounted(async () => {
<div class="col-12">
<div class="row items-center q-gutter-x-sm q-pb-sm">
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
dense
color="primary"
icon="add"
@ -710,7 +710,7 @@ onMounted(async () => {
>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
flat
dense
round
@ -745,7 +745,7 @@ onMounted(async () => {
>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
flat
round
color="edit"

View file

@ -36,8 +36,8 @@ const profileId = ref<string>(
/**
* props
*/
const props = defineProps({
isLeave:Boolean
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
/** ข้อมูลลูกจ้างชั่วคราว*/
@ -303,7 +303,7 @@ onMounted(() => {
<div class="row q-gutter-sm items-center">
<div class="toptitle col text-right q-gutter-x-sm">
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
flat
round
dense

View file

@ -34,8 +34,8 @@ const profileId = ref<string>(route.params.id.toString());
/**
* props
*/
const props = defineProps({
isLeave:Boolean
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
/** ข้อมูลการจ้าง*/
@ -234,7 +234,7 @@ onMounted(() => {
<div class="flex items-center">
<div class="q-gutter-sm">
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
size="12px"
flat
round
@ -317,7 +317,7 @@ onMounted(() => {
<q-tooltip>ประวอมลการจาง </q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
dense
flat
round
@ -328,7 +328,7 @@ onMounted(() => {
<q-tooltip>แกไขขอม</q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsDelete"
v-if="isLeave == false && checkPermission($route)?.attrIsDelete"
dense
flat
round

View file

@ -33,8 +33,8 @@ const {
/**
* props
*/
const props = defineProps({
isLeave:Boolean
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
const profileId = ref<string>(route.params.id.toString());
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
@ -298,7 +298,7 @@ onMounted(() => {
<q-space />
<div class="q-gutter-x-sm">
<q-btn
v-if="!props.isLeave && checkPermission($route)?.attrIsUpdate"
v-if="!isLeave && checkPermission($route)?.attrIsUpdate"
flat
dense
round
@ -326,26 +326,32 @@ onMounted(() => {
<div class="col-12 col-sm-12 col-md-5 text-grey-6 text-weight-medium">
<div>งก</div>
</div>
<div class="col-12 col-sm-12 col-md-7">{{ formMain.ocId ? formMain.ocId:'-' }}</div>
<div class="col-12 col-sm-12 col-md-7">
{{ formMain.ocId ? formMain.ocId : "-" }}
</div>
</div>
<div class="row items-center">
<div class="col-12 col-sm-12 col-md-5 text-grey-6 text-weight-medium">
<div>{{ empType === "" ? `ตำแหน่งในสายงาน` : `ตำแหน่ง` }}</div>
</div>
<div class="col-12 col-sm-12 col-md-7">{{ formMain.positionId ? formMain.positionId:'-' }}</div>
<div class="col-12 col-sm-12 col-md-7">
{{ formMain.positionId ? formMain.positionId : "-" }}
</div>
</div>
<div class="row items-center">
<div class="col-12 col-sm-12 col-md-5 text-grey-6 text-weight-medium">
<div>ตำแหนงเลขท</div>
</div>
<div class="col-12 col-sm-12 col-md-7">{{ formMain.numberId? formMain.numberId:'-' }}</div>
<div class="col-12 col-sm-12 col-md-7">
{{ formMain.numberId ? formMain.numberId : "-" }}
</div>
</div>
<div class="row items-center" v-if="empType === ''">
<div class="col-12 col-sm-12 col-md-5 text-grey-6 text-weight-medium">
<div>ตำแหนงทางการบรหาร</div>
</div>
<div class="col-12 col-sm-12 col-md-7">
{{ formMain.positionExecutive ? formMain.positionExecutive:'-' }}
{{ formMain.positionExecutive ? formMain.positionExecutive : "-" }}
</div>
</div>
<div class="row items-center" v-if="empType === ''">
@ -353,7 +359,11 @@ onMounted(() => {
<div>านทางการบรหาร</div>
</div>
<div class="col-12 col-sm-12 col-md-7">
{{ formMain.positionExecutiveSide ? formMain.positionExecutiveSide:'-' }}
{{
formMain.positionExecutiveSide
? formMain.positionExecutiveSide
: "-"
}}
</div>
</div>
</div>
@ -363,7 +373,7 @@ onMounted(() => {
<div>สายงาน</div>
</div>
<div class="col-12 col-sm-12 col-md-7">
{{ formMain.positionLine ? formMain.positionLine:'-' }}
{{ formMain.positionLine ? formMain.positionLine : "-" }}
</div>
</div>
<div class="row items-center">
@ -371,7 +381,7 @@ onMounted(() => {
<div>{{ empType === "" ? "ตำแหน่งประเภท" : "กลุ่มงาน" }}</div>
</div>
<div class="col-12 col-sm-12 col-md-7">
{{ formMain.positionType ? formMain.positionType:'-' }}
{{ formMain.positionType ? formMain.positionType : "-" }}
</div>
</div>
<div class="row items-center">
@ -379,7 +389,7 @@ onMounted(() => {
<div>{{ empType === "" ? "ระดับ" : "ระดับชั้นงาน" }}</div>
</div>
<div class="col-12 col-sm-12 col-md-7">
{{ formMain.positionLevel ? formMain.positionLevel:'-' }}
{{ formMain.positionLevel ? formMain.positionLevel : "-" }}
</div>
</div>
<div class="row items-center" v-if="empType === ''">
@ -387,7 +397,7 @@ onMounted(() => {
<div>าน/สาขา</div>
</div>
<div class="col-12 col-sm-12 col-md-7">
{{ formMain.positionPathSide ? formMain.positionPathSide:'-' }}
{{ formMain.positionPathSide ? formMain.positionPathSide : "-" }}
</div>
</div>
</div>

View file

@ -39,8 +39,8 @@ const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
/**
* props
*/
const props = defineProps({
isLeave:Boolean
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
//
@ -351,7 +351,7 @@ onMounted(() => {
<template>
<div class="row items-center q-gutter-x-sm q-pb-sm">
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
dense
color="primary"
icon="add"
@ -472,7 +472,7 @@ onMounted(() => {
<q-tooltip>ประวแกไขว</q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
flat
dense
round
@ -506,7 +506,7 @@ onMounted(() => {
><q-tooltip>ประวแกไขว</q-tooltip></q-btn
>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
color="edit"
icon="edit"
flat

View file

@ -27,9 +27,7 @@ const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
/**
* props
*/
const props = defineProps({
isLeave:Boolean
});
const filterKeyword = ref<string>(""); //
const rows = ref<RequestItemsObject[]>([]); //
const columns = ref<QTableProps["columns"]>([

View file

@ -25,8 +25,8 @@ import DialogHistory from "@/modules/04_registryPerson/components/detail/Governm
/**
* props
*/
const props = defineProps({
isLeave:Boolean
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
const route = useRoute();
@ -449,7 +449,7 @@ onMounted(() => {
<template>
<div class="row items-center q-gutter-x-sm q-pb-sm">
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
dense
color="primary"
icon="add"
@ -568,7 +568,9 @@ onMounted(() => {
<q-tooltip>ประวแกไขการลา</q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="
isLeave == false && checkPermission($route)?.attrIsUpdate
"
flat
dense
round
@ -613,7 +615,10 @@ onMounted(() => {
><q-tooltip>ประวแกไขการลา</q-tooltip></q-btn
>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="
isLeave == false &&
checkPermission($route)?.attrIsUpdate
"
color="edit"
icon="edit"
flat

View file

@ -26,12 +26,6 @@ const { showLoader, hideLoader, messageError, date2Thai, pathRegistryEmp } =
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
/**
* props
*/
const props = defineProps({
isLeave:Boolean
});
const filterKeyword = ref<string>("");
const rows = ref<DetailData[]>([]); //data history
const formFilter = reactive<FormFilter>({

View file

@ -35,8 +35,8 @@ const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
/**
* props
*/
const props = defineProps({
isLeave:Boolean
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
const id = ref<string>(""); //id
const modal = ref<boolean>(false); // popup
@ -274,7 +274,7 @@ onMounted(() => {
<template>
<div class="row items-center q-gutter-x-sm q-pb-sm">
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
dense
color="primary"
icon="add"
@ -394,7 +394,9 @@ onMounted(() => {
<q-tooltip>ประวแกไขปฏราชการพเศษ</q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="
isLeave == false && checkPermission($route)?.attrIsUpdate
"
flat
dense
round
@ -428,7 +430,10 @@ onMounted(() => {
><q-tooltip>ประวแกไขปฏราชการพเศษ</q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="
isLeave == false &&
checkPermission($route)?.attrIsUpdate
"
color="edit"
icon="edit"
flat

View file

@ -21,12 +21,6 @@ const { showLoader, hideLoader, messageError, date2Thai, pathRegistryEmp } =
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
/**
* props
*/
const props = defineProps({
isLeave:Boolean
});
const filterKeyword = ref<string>(""); //
const rows = ref<ResponseObject[]>([]); //data history
const columns = ref<QTableProps["columns"]>([

View file

@ -31,8 +31,8 @@ const id = ref<string>("");
/**
* props
*/
const props = defineProps({
isLeave:Boolean
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
const profileId = ref<string>(
@ -209,7 +209,7 @@ onMounted(() => {
<template>
<div class="row items-center q-gutter-x-sm q-pb-sm">
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
dense
color="primary"
icon="add"
@ -327,7 +327,7 @@ onMounted(() => {
<q-tooltip>ประวแกไขอนๆ</q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
flat
dense
round
@ -360,7 +360,7 @@ onMounted(() => {
><q-tooltip>ประวแกไขอนๆ</q-tooltip></q-btn
>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
color="edit"
icon="edit"
flat

View file

@ -26,8 +26,8 @@ const {
/**
* props
*/
const props = defineProps({
isLeave: Boolean,
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
const profileId = ref<string>(
@ -193,7 +193,7 @@ onMounted(() => {
<div class="row col-12 q-col-gutter-y-sm q-pa-sm">
<div class="col-12 row">
<q-file
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
for="inputFiles"
class="col-12"
outlined
@ -248,7 +248,7 @@ onMounted(() => {
><q-tooltip>ดาวนโหลดไฟล</q-tooltip></q-btn
>
<q-btn
v-if="props.isLeave == false"
v-if="isLeave == false"
size="12px"
flat
round

View file

@ -41,9 +41,11 @@ const {
/**
* props
*/
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
const props = defineProps({
fetchDataPersonal: { type: Function, require: true },
isLeave: Boolean,
});
const profileId = ref<string>(
@ -65,7 +67,7 @@ const filterHistory = ref<string>(""); //คำค้นหาช้อมูล
const modalHistory = ref<boolean>(false); //
const age = ref<string | null>(""); //
const formData = reactive<RequestObject>(store.defaultProfile); //
const emailVerify = ref<string|null>('')
const emailVerify = ref<string | null>("");
/** ข้อมูล Label*/
const dataLabel = {
@ -294,7 +296,7 @@ async function getData() {
.then((res) => {
informaData.value = res.data.result;
id.value = res.data.result.id;
emailVerify.value = res.data.result.statusEmail
emailVerify.value = res.data.result.statusEmail;
if (res.data.result.birthDate) {
//
age.value = calculateAge(res.data.result.birthDate);
@ -448,7 +450,7 @@ onMounted(() => {
<div class="row q-gutter-sm items-center">
<div class="toptitle col text-right">
<q-btn
v-if="!props.isLeave && checkPermission($route)?.attrIsUpdate"
v-if="!isLeave && checkPermission($route)?.attrIsUpdate"
flat
round
dense
@ -539,7 +541,11 @@ onMounted(() => {
</div>
<div class="q-py-xs">
{{ informaData.email ? informaData.email : "-"
}}<q-icon v-if="emailVerify == 'NOT_VERIFIED'" name="mdi-alert-box" color="warning" size="sm"
}}<q-icon
v-if="emailVerify == 'NOT_VERIFIED'"
name="mdi-alert-box"
color="warning"
size="sm"
><q-tooltip>รอยนยนอเมล</q-tooltip></q-icon
>
</div>

View file

@ -44,9 +44,11 @@ const {
/**
* props
*/
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
const props = defineProps({
fetchDataPersonal: { type: Function, require: true },
isLeave:Boolean
});
const profileId = ref<string>(route.params.id.toString()); //id Profile
@ -451,7 +453,7 @@ onMounted(async () => {
<template>
<div class="row items-center q-gutter-x-sm q-pb-sm">
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
round
flat
color="primary"

View file

@ -40,8 +40,8 @@ const {
/**
* props
*/
const props = defineProps({
isLeave:Boolean
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
const profileId = ref<string>(
@ -533,7 +533,7 @@ onMounted(async () => {
<div class="row q-gutter-sm items-center">
<div class="toptitle col text-right">
<q-btn
v-if="!props.isLeave && checkPermission($route)?.attrIsUpdate"
v-if="!isLeave && checkPermission($route)?.attrIsUpdate"
flat
round
dense

View file

@ -35,8 +35,8 @@ const {
/**
* props
*/
const props = defineProps({
isLeave:Boolean
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
const profileId = ref<string>(
route.params.id ? route.params.id.toString() : ""
@ -511,7 +511,7 @@ onMounted(async () => {
</q-toolbar-title>
<div class="row q-col-gutter-sm">
<q-btn
v-if="!props.isLeave && checkPermission($route)?.attrIsUpdate"
v-if="!isLeave && checkPermission($route)?.attrIsUpdate"
round
flat
color="edit"
@ -585,7 +585,7 @@ onMounted(async () => {
</q-toolbar-title>
<div class="row q-col-gutter-sm">
<q-btn
v-if="!props.isLeave && checkPermission($route)?.attrIsUpdate"
v-if="!isLeave && checkPermission($route)?.attrIsUpdate"
round
flat
color="edit"
@ -659,7 +659,7 @@ onMounted(async () => {
สมรส
</div>
<q-btn
v-if="!props.isLeave && checkPermission($route)?.attrIsUpdate"
v-if="!isLeave && checkPermission($route)?.attrIsUpdate"
round
flat
dense
@ -758,7 +758,7 @@ onMounted(async () => {
<div class="row q-col-gutter-sm">
<div class="text-weight-bold text-primary text-subtitle1"> ตร</div>
<q-btn
v-if="!props.isLeave && checkPermission($route)?.attrIsUpdate"
v-if="!isLeave && checkPermission($route)?.attrIsUpdate"
round
flat
dense
@ -781,7 +781,7 @@ onMounted(async () => {
<q-space />
<div class="row q-col-gutter-sm">
<q-btn
v-if="!props.isLeave && checkPermission($route)?.attrIsUpdate"
v-if="!isLeave && checkPermission($route)?.attrIsUpdate"
round
flat
color="edit"

View file

@ -42,8 +42,8 @@ const mode = ref<string>("table"); //การแสดงของ Table card
/**
* props
*/
const props = defineProps({
isLeave: Boolean,
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
//Table
const rows = ref<ResponseObject[]>([]);
@ -752,7 +752,7 @@ onMounted(async () => {
<template>
<div class="row items-center q-gutter-x-sm q-pb-sm">
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
round
flat
dense
@ -863,7 +863,9 @@ onMounted(async () => {
<q-tooltip>ประวแกไขประวการศกษา</q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="
isLeave == false && checkPermission($route)?.attrIsUpdate
"
flat
dense
round
@ -904,7 +906,7 @@ onMounted(async () => {
<q-tooltip>ประวแกไขประวการศกษา</q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false"
v-if="isLeave == false"
dense
flat
round

View file

@ -35,8 +35,8 @@ const mode = ref<string>("table"); //การแสดงของ Table card
/**
* props
*/
const props = defineProps({
isLeave: Boolean,
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
//Table
const keyword = ref<string>(""); //
@ -352,7 +352,7 @@ onMounted(() => {
<template>
<div class="row items-center q-gutter-x-sm q-pb-sm">
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
flat
round
color="primary"
@ -456,9 +456,7 @@ onMounted(() => {
<q-tooltip>ประวแกไขความสามารถพเศษ</q-tooltip>
</q-btn>
<q-btn
v-if="
props.isLeave == false && checkPermission($route)?.attrIsUpdate
"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
flat
dense
round
@ -498,7 +496,7 @@ onMounted(() => {
<q-tooltip>ประวแกไขความสามารถพเศษ</q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false"
v-if="isLeave == false"
dense
flat
round

View file

@ -35,8 +35,8 @@ const profileId = ref<string>(
/**
* props
*/
const props = defineProps({
isLeave: Boolean,
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
const store = useSalaryDataStore();
@ -628,7 +628,7 @@ onMounted(() => {
<template>
<div class="row items-center q-gutter-x-sm q-pb-sm">
<q-btn
v-if="!props.isLeave && checkPermission($route)?.attrIsUpdate"
v-if="!isLeave && checkPermission($route)?.attrIsUpdate"
flat
color="primary"
round
@ -703,9 +703,7 @@ onMounted(() => {
</q-btn>
<q-btn
v-if="
props.isLeave == false && checkPermission($route)?.attrIsUpdate
"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
flat
dense
round
@ -717,9 +715,7 @@ onMounted(() => {
<q-tooltip>แกไขขอม</q-tooltip>
</q-btn>
<q-btn
v-if="
props.isLeave == false && checkPermission($route)?.attrIsUpdate
"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
dense
flat
round
@ -731,9 +727,7 @@ onMounted(() => {
</q-btn>
<q-btn
v-if="
props.isLeave == false && checkPermission($route)?.attrIsUpdate
"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
dense
flat
round

View file

@ -36,8 +36,8 @@ const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
/**
* props
*/
const props = defineProps({
isLeave:Boolean
const isLeave = defineModel<boolean>("isLeave", {
required: true,
});
const modelView = ref<string>("table"); // Table,Card
@ -244,7 +244,7 @@ onMounted(() => {
<template>
<div class="row items-center q-gutter-x-sm q-pb-sm">
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
dense
color="primary"
icon="add"
@ -363,7 +363,9 @@ onMounted(() => {
<q-tooltip>ประวนทกวนทไมไดบเงนเดอนฯ</q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="
isLeave == false && checkPermission($route)?.attrIsUpdate
"
flat
dense
round
@ -395,7 +397,9 @@ onMounted(() => {
<q-tooltip>ประวนทกวนทไมไดบเงนเดอนฯ</q-tooltip>
</q-btn>
<q-btn
v-if="props.isLeave == false && checkPermission($route)?.attrIsUpdate"
v-if="
isLeave == false && checkPermission($route)?.attrIsUpdate
"
flat
round
color="edit"

View file

@ -1,13 +1,13 @@
<script setup lang="ts">
import { ref } from "vue";
import { useRegistryNewDataStore } from '@/modules/04_registryPerson/store'
import { useRegistryNewDataStore } from "@/modules/04_registryPerson/store";
/** importComponents*/
import PositionSalary from "@/modules/04_registryPerson/components/detail/Salary/01_PositionSalary.vue"; //
import NotReceiveSalary from "@/modules/04_registryPerson/components/detail/Salary/02_NotReceiveSalary.vue"; //
const storeRegistry = useRegistryNewDataStore()
const storeRegistry = useRegistryNewDataStore();
const tab = ref<string>("1");
</script>
@ -37,10 +37,10 @@ const tab = ref<string>("1");
<q-tab-panels v-model="tab" animated>
<q-tab-panel name="1">
<PositionSalary :is-leave="storeRegistry.isLeave"/>
<PositionSalary :is-leave="storeRegistry.isLeave" />
</q-tab-panel>
<q-tab-panel name="2">
<NotReceiveSalary :is-leave="storeRegistry.isLeave"/>
<NotReceiveSalary :is-leave="storeRegistry.isLeave" />
</q-tab-panel>
</q-tab-panels>
</template>

View file

@ -14,6 +14,7 @@ interface RequestObject {
rank: string | null;
relationship: string | null;
religion: string | null;
phone: string | null;
// telephoneNumber: string | null;
}