ปรับ เเสดงรายละเอียด รายบุคคลระบบ บรรจุ/พ้นราชการ
This commit is contained in:
parent
f9c4bb3b80
commit
5593d0a8dc
15 changed files with 303 additions and 44 deletions
|
|
@ -5,7 +5,10 @@ import { ref, onMounted } from "vue";
|
|||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
|
||||
import PopupPersonal from "@/components/Dialogs/PopupPersonal.vue";
|
||||
|
||||
const modalPersonal = ref<boolean>(false);
|
||||
const personId = ref<string>("");
|
||||
/**use*/
|
||||
const $q = useQuasar();
|
||||
const router = useRouter();
|
||||
|
|
@ -39,10 +42,6 @@ const fectdata = async () => {
|
|||
});
|
||||
};
|
||||
|
||||
//กลับไปหน้า registry
|
||||
const redirectToRegistry = (id: string) => {
|
||||
router.push(`/registry/${id}`);
|
||||
};
|
||||
|
||||
//เปิดdetail ของ deceased
|
||||
const openDeceased = (id: string) => {
|
||||
|
|
@ -88,6 +87,15 @@ const fileDownload = async (type: string) => {
|
|||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
function onclickViewinfo(id: string) {
|
||||
modalPersonal.value = true;
|
||||
personId.value = id;
|
||||
}
|
||||
|
||||
function updatemodalPersonal(modal: boolean) {
|
||||
modalPersonal.value = modal;
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
@ -117,7 +125,7 @@ const fileDownload = async (type: string) => {
|
|||
icon-right="mdi-open-in-new"
|
||||
class="q-px-sm"
|
||||
label="ดูข้อมูลทะเบียนประวัติ"
|
||||
@click="redirectToRegistry(detail.profileId)"
|
||||
@click="onclickViewinfo(detail.profileId)"
|
||||
/>
|
||||
</div>
|
||||
<div class="col-12"><q-separator /></div>
|
||||
|
|
@ -236,6 +244,12 @@ const fileDownload = async (type: string) => {
|
|||
</div>
|
||||
</div>
|
||||
</q-card>
|
||||
|
||||
<PopupPersonal
|
||||
:modal="modalPersonal"
|
||||
:id="personId"
|
||||
@update:modal="updatemodalPersonal"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scope>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue