แก้ไขหน้ารายการทะเบียนประวัติผู้พ้นจากราชการ
This commit is contained in:
parent
8ba9c1b1b1
commit
87d4d8bd6a
1 changed files with 10 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
import { ref, watch, computed, onMounted } from "vue";
|
import { ref, watch, computed, onMounted } from "vue";
|
||||||
|
|
||||||
import { checkPermission } from "@/utils/permissions";
|
import { checkPermission } from "@/utils/permissions";
|
||||||
import { useRouter } from "vue-router";
|
import { useRoute, useRouter } from "vue-router";
|
||||||
import { useRegistryNewDataStore } from "@/modules/04_registryPerson/store";
|
import { useRegistryNewDataStore } from "@/modules/04_registryPerson/store";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
|
||||||
|
|
@ -18,6 +18,7 @@ import DialogHistory from "@/modules/04_registryPerson/components/DialogHistory.
|
||||||
|
|
||||||
/* use*/
|
/* use*/
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
const { date2Thai } = mixin;
|
const { date2Thai } = mixin;
|
||||||
|
|
@ -220,14 +221,21 @@ watch(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const isPageRetired = ref<boolean>(false); // หน้าทะเบียนประวัติข้าราชการพ้นจากราชการ
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
checkFilterDateAppoint();
|
checkFilterDateAppoint();
|
||||||
|
if (
|
||||||
|
route.name === "registryRetireOfficer" ||
|
||||||
|
route.name === "registryRetireEmployee"
|
||||||
|
) {
|
||||||
|
isPageRetired.value = true;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="col-12 row q-pb-sm q-col-gutter-sm items-center">
|
<div class="col-12 row q-pb-sm q-col-gutter-sm items-center">
|
||||||
<div class="row q-gutter-sm">
|
<div v-if="!isPageRetired" class="row q-gutter-sm">
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="
|
v-if="
|
||||||
empType === 'officer' ||
|
empType === 'officer' ||
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue