diff --git a/src/modules/05_placement/components/probation/FormAssign.vue b/src/modules/05_placement/components/probation/FormAssign.vue index 8b8bdbca9..1ef9299cc 100644 --- a/src/modules/05_placement/components/probation/FormAssign.vue +++ b/src/modules/05_placement/components/probation/FormAssign.vue @@ -10,6 +10,7 @@ const $q = useQuasar(); const isEdit = ref(true); const router = useRouter(); const route = useRoute(); +const checkRoutePermisson = ref(route.name == "probationFormDetail"); const mixin = useCounterMixin(); const { date2Thai, @@ -1111,7 +1112,7 @@ onMounted(async () => {
แบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ
{
{
{ (route.name == "probationFormDetail"); const assignId = ref(route.params.form.toString()); const { assign } = probationStore; const personalId = ref(route.params.personalId.toString()); @@ -296,6 +297,7 @@ onMounted(async () => {
{
- + ยกเลิก {
- - - + + + + + + 1.1. ความรู้ความสามารถ - - - - 1.1. ความรู้ความสามารถ - - - - - -
- {{ optionText[index].label }} -
-
-
-
-
-
-
-
+ + + + + +
+ {{ optionText[index].label }} +
+
+
+
+
+ + + - - - + + + + + + 1.2. ทักษะ - - - - 1.2. ทักษะ - - - - - -
- {{ optionText[index].label }} -
-
-
-
-
-
-
-
+ + + + + +
+ {{ optionText[index].label }} +
+
+
+
+
+ + + - - - + + + + + + 1.3. สมมรถนะ - - - - 1.3. สมมรถนะ - - - - - -
- {{ optionText[index].label }} -
-
-
-
-
-
-
-
+ + + + + +
+ {{ optionText[index].label }} +
+
+
+
+
+ + + - - - + + + + + + 1.4. ความสามารถในการเรียนรู้งาน - - - - 1.4. ความสามารถในการเรียนรู้งาน - - - - - -
- {{ optionText[index].label }} -
-
-
-
-
-
-
-
+ + + + + +
+ {{ optionText[index].label }} +
+
+
+
+
+ + + - - - + + + + + + 1.5. + ความสามารถในการปรับใช้ความรู้กับงานในหน้าที่ - - - - 1.5. - ความสามารถในการปรับใช้ความรู้กับงานในหน้าที่ - - - - - -
- {{ optionText[index].label }} -
-
-
-
-
-
-
-
+ + + + + +
+ {{ optionText[index].label }} +
+
+
+
+
+ + + - - - + + + + + + 1.6. ความสำเร็จของงานที่ได้รับมอบหมาย - - - - 1.6. ความสำเร็จของงานที่ได้รับมอบหมาย - - - - - -
- {{ optionText[index].label }} -
-
-
-
-
-
-
-
+ + + + + +
+ {{ optionText[index].label }} +
+
+
+
+
+ + + - - - - - - - 1.7 อื่นๆ - - - - - + + + + + + + 1.7 อื่นๆ + + + + + - - - - - - - - - - - - -
- {{ optionText[index].label }} -
-
-
-
-
-
-
-
-
+ + + + + + + + + + + + +
+ {{ optionText[index].label }} +
+
+
+
+
+
+
+
+
-
-
- 2 - พฤติกรรมของผู้ทดลองปฏิบัติบัติหน้าที่ราชการ -
-
- - 2.1 ความประพฤติ -
- - - - - {{ list.label }} - - - - - -
- {{ optionText[index].label }} -
-
-
-
-
-
- -
-
-
-
-
- - 2.2 ความมีคุณธรรมจริยธรรม -
- - - - - {{ list.label }} - - - - - -
- {{ optionText[index].label }} -
-
-
-
-
-
- -
-
-
-
-
- - 2.3 การรักษาวินัย -
- - - - - - {{ list.label }} - - - - - -
- {{ optionText[index].label }} -
-
-
-
-
-
- -
-
-
-
-
- - 2.4 อื่นๆ - -
- - - - - - - - - - - - -
- {{ optionText[index].label }} -
-
-
-
-
-
-
-
-
- -
-
-
- - จุดเด่น (ไม่เกิน 5 บรรทัด) -
- -
-
-
- - สิ่งที่ควรปรับปรุง (ไม่เกิน 5 บรรทัด) -
- -
-
+
+
+ 2 + พฤติกรรมของผู้ทดลองปฏิบัติบัติหน้าที่ราชการ
+
+ + 2.1 ความประพฤติ +
+ + + + + {{ list.label }} + + + + + +
+ {{ optionText[index].label }} +
+
+
+
+
+
+ +
+
+
+
+
+ + 2.2 ความมีคุณธรรมจริยธรรม +
+ + + + + {{ list.label }} + + + + + +
+ {{ optionText[index].label }} +
+
+
+
+
+
+ +
+
+
+
+
+ + 2.3 การรักษาวินัย +
+ + + + + + {{ list.label }} + + + + + +
+ {{ optionText[index].label }} +
+
+
+
+
+
+ +
+
+
+
+
+ + 2.4 อื่นๆ + +
+ + + + + + + + + + + + +
+ {{ optionText[index].label }} +
+
+
+
+
+
+
+
+
+ +
+
+
+ + จุดเด่น (ไม่เกิน 5 บรรทัด) +
+ +
+
+
+ + สิ่งที่ควรปรับปรุง (ไม่เกิน 5 บรรทัด) +
+ +
+
+
diff --git a/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluateScore.vue b/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluateScore.vue index 25def53be..66d6c5b1f 100644 --- a/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluateScore.vue +++ b/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluateScore.vue @@ -35,6 +35,7 @@ const { dialogConfirm, } = mixin; const route = useRoute(); +const checkRoutePermisson = ref(route.name == "probationFormDetail"); const assignId = ref(route.params.form.toString()); const personalId = ref(route.params.personalId.toString()); const myForm = ref(null); @@ -430,6 +431,7 @@ onMounted(async () => {
แบบประเมินผล (คณะกรรมการ)
{
- + ยกเลิก (route.name == "probationFormDetail"); const assignId = ref(route.params.form.toString()); const personalId = ref(route.params.personalId.toString()); const action = ref("add"); @@ -332,7 +333,7 @@ onMounted(() => { :locale="'th'" autoApply borderless - :readonly="!status" + :readonly="!status || checkRoutePermisson" :enableTimePicker="false" week-start="0" > @@ -346,7 +347,7 @@ onMounted(() => { { { ]" hide-bottom-space :options="optionsResult" - :disable="!status" + :disable="!status || checkRoutePermisson" dense borderless emit-value @@ -497,7 +498,7 @@ onMounted(() => { dense borderless outlined - :disable="!status" + :disable="!status || checkRoutePermisson" class="bg-white" type="textarea" v-model="reson" @@ -550,7 +551,7 @@ onMounted(() => { menu-class-name="modalfix" v-model="chairman_dated" :locale="'th'" - :readonly="!status" + :readonly="!status || checkRoutePermisson" autoApply borderless :enableTimePicker="false" @@ -566,7 +567,7 @@ onMounted(() => { @@ -626,7 +627,7 @@ onMounted(() => { { + diff --git a/src/modules/05_placement/components/probation/FormEvaluation/FormSaveResult.vue b/src/modules/05_placement/components/probation/FormEvaluation/FormSaveResult.vue index f53f23213..d04f11b23 100644 --- a/src/modules/05_placement/components/probation/FormEvaluation/FormSaveResult.vue +++ b/src/modules/05_placement/components/probation/FormEvaluation/FormSaveResult.vue @@ -12,9 +12,11 @@ import criterion from "@/modules/05_placement/components/Other/Criterion.vue"; import type { ListDataText } from "@/modules/05_placement/interface/index/Main"; const router = useRouter(); + const routeName = router.currentRoute.value.name; const $q = useQuasar(); const route = useRoute(); +const checkRoutePermisson = ref(route.name == "probationFormDetail"); const probationStore = useProbationDataStore(); const { fecthAssignoutput, assign } = probationStore; @@ -362,6 +364,7 @@ onMounted(async () => {
แบบบันทึกผล (ผู้ดูเเล)
{
- + ยกเลิก (route.name == "probationFormDetail"); const probationStore = useProbationDataStore(); const { fecthAssignoutput, assign } = probationStore; @@ -373,6 +374,7 @@ onMounted(async () => {
แบบบันทึกผล (ผู้บังคับบัญชา)
{
- + ยกเลิก { {{ list.label }} - - - -
- {{ optionText[index].label }} -
-
-
-
-
+ + + +
+ {{ optionText[index].label }} +
+
+
+
+ @@ -894,24 +905,24 @@ onMounted(async () => { {{ list.label }} - - - -
- {{ optionText[index].label }} -
-
-
-
-
+ + + +
+ {{ optionText[index].label }} +
+
+
+
+ @@ -934,24 +945,24 @@ onMounted(async () => { {{ list.label }} - - - -
- {{ optionText[index].label }} -
-
-
-
-
+ + + +
+ {{ optionText[index].label }} +
+
+
+
+ @@ -997,24 +1008,24 @@ onMounted(async () => { - - - -
- {{ optionText[index].label }} -
-
-
-
-
+ + + +
+ {{ optionText[index].label }} +
+
+
+
+ diff --git a/src/modules/05_placement/components/probation/FormEvaluation/Header.vue b/src/modules/05_placement/components/probation/FormEvaluation/Header.vue index c245f988b..d3f1faef2 100644 --- a/src/modules/05_placement/components/probation/FormEvaluation/Header.vue +++ b/src/modules/05_placement/components/probation/FormEvaluation/Header.vue @@ -1,8 +1,10 @@ diff --git a/src/modules/05_placement/components/probation/FormEvaluation/Template2Format2.vue b/src/modules/05_placement/components/probation/FormEvaluation/Template2Format2.vue index 8deccf166..7282bc291 100644 --- a/src/modules/05_placement/components/probation/FormEvaluation/Template2Format2.vue +++ b/src/modules/05_placement/components/probation/FormEvaluation/Template2Format2.vue @@ -24,6 +24,7 @@ const FormEvaluateScore = defineAsyncComponent( const router = useRouter(); const route = useRoute(); +const checkRoutePermisson = ref(route.name == "probationFormDetail"); const mixin = useCounterMixin(); const $q = useQuasar(); const { showLoader, hideLoader, messageError, success } = mixin; @@ -140,7 +141,7 @@ const changeTab = (tabVal: string) => {
- +
diff --git a/src/modules/05_placement/components/probation/MainDetail.vue b/src/modules/05_placement/components/probation/MainDetail.vue index ddfc5ab37..f2668b359 100644 --- a/src/modules/05_placement/components/probation/MainDetail.vue +++ b/src/modules/05_placement/components/probation/MainDetail.vue @@ -47,6 +47,7 @@ const SummarySurvey = defineAsyncComponent( const router = useRouter(); const route = useRoute(); +const checkRoutePermisson = ref(route.name == "probationFormDetail"); const drawer = ref(true); const activeTab = ref(""); const personalId = ref(route.params.personalId.toString()); @@ -62,7 +63,7 @@ function changeTab(tab: string){ /** ปุ่มกลับ */ function clickBack(){ - router.push(`/probation/detail/${personalId.value}`); + router.go(-1) DataStore.mainTab = "tab1"; }; diff --git a/src/modules/05_placement/components/probation/MainProbation.vue b/src/modules/05_placement/components/probation/MainProbation.vue index b81afd7a5..7294920a9 100644 --- a/src/modules/05_placement/components/probation/MainProbation.vue +++ b/src/modules/05_placement/components/probation/MainProbation.vue @@ -17,6 +17,7 @@ import router from "@/router"; import http from "@/plugins/http"; import config from "@/app.config"; +import { checkPermission } from "@/utils/permissions"; const $q = useQuasar(); //ใช้ noti quasar const rows = ref([]); @@ -505,8 +506,8 @@ onMounted(async () => {
{ >