Merge branch 'develop' into devTee

This commit is contained in:
setthawutttty 2025-01-30 16:03:35 +07:00
commit a42367e48a
7 changed files with 25 additions and 4 deletions

View file

@ -21,6 +21,13 @@ const props = defineProps({
loop: {
type: Number,
},
isMax: {
required: false,
type: Boolean,
default() {
return false;
},
},
addData: {
type: Function,
default() {
@ -114,7 +121,7 @@ function nextPage() {
</q-tabs>
<div>
<q-btn
v-if="!checkRoutePermisson && props.checkPermission"
v-if="!checkRoutePermisson && props.checkPermission && !isMax"
color="blue"
flat
dense

View file

@ -130,6 +130,7 @@ onMounted(async () => {
:loop="probationStore.tabs.length"
:FileDownload="FileDownload"
:checkPermission="probationStore?.dataPermissions?.tab2?.isEdit as boolean"
:is-max="probationStore.tabs.length === 3"
/>
<q-tab-panels
v-model="tab"

View file

@ -146,6 +146,7 @@ onMounted(async () => {
:loop="probationStore.tabs.length"
:FileDownload="FileDownload"
:checkPermission="probationStore?.dataPermissions?.tab3?.isEdit as boolean"
:is-max="probationStore.tabs.length === 3"
/>
<q-tab-panels
v-model="tab"

View file

@ -114,6 +114,7 @@ onMounted(() => {
:add-data="addData"
:FileDownload="FileDownload"
:checkPermission="probationStore?.dataPermissions?.tab4?.isEdit as boolean"
:is-max="tabs.length === 2"
/>
<q-tab-panels

View file

@ -103,6 +103,7 @@ const changeTab = (tabVal: string) => {
:add-data="addData"
:FileDownload="FileDownload"
:checkPermission="probationStore?.dataPermissions?.tab5?.isEdit as boolean"
:is-max="tabs.length === 2"
/>
<q-tab-panels

View file

@ -83,7 +83,7 @@ onMounted(() => {
<div class="q-gutter-md" v-else>
<div class="flex justify-center items-center q-my-md q-gutter-md">
งไมไดดำเนนการแบบประเมนผล
งไมไดรายงานผลการประเมนฯ
</div>
</div>
</template>

View file

@ -55,6 +55,7 @@ const result_option = reactive([
},
]);
const checkDisplay = ref<boolean | null>(null);
/** get คะแนน */
async function getReportScore() {
showLoader();
@ -98,6 +99,10 @@ async function getReportScore() {
reason.value = data.reason;
pass_result.value = data.pass_result;
evaluate_date.value = data.evaluate_date;
checkDisplay.value = true;
})
.catch((e) => {
checkDisplay.value = false;
})
.finally(() => {
hideLoader();
@ -111,7 +116,12 @@ onMounted(() => {
</script>
<template>
<div class="row col-12 q-ma-xs">
<div v-if="checkDisplay === false" class="q-gutter-md">
<div class="flex justify-center items-center q-my-lg">
งไมไดรายงานผลการประเมนฯ
</div>
</div>
<div v-if="checkDisplay" class="row col-12 q-ma-xs">
<div class="toptitle text-dark col-12 row items-center q-gutter-md">
<div>ผลการประเมนการทดลองปฏหนาทราชการ</div>
</div>
@ -232,7 +242,7 @@ onMounted(() => {
<q-item-section
side
v-if="pass_result == 1"
v-if="Number(sum_percent) >= 60"
style="white-space: nowrap; width: 140px"
>
าน (งกวารอยละ 60)