diff --git a/src/modules/11_discipline/components/1_Complaint/Form.vue b/src/modules/11_discipline/components/1_Complaint/Form.vue index f09578759..d95f8b600 100644 --- a/src/modules/11_discipline/components/1_Complaint/Form.vue +++ b/src/modules/11_discipline/components/1_Complaint/Form.vue @@ -54,6 +54,7 @@ const isSave = ref(false); // มีการแก้ไขรอบ const isReadonly = ref(false); // อ่านได้อย่างเดียว const fileList = ref([]); const countNum = ref(1); +const profileType = ref(""); /** รับ props มาจากหน้าหลัก */ const props = defineProps({ @@ -299,10 +300,12 @@ function inputEdit(val: boolean) { /** * pop up รายละเอียดบุคคล * @param id id ของบุคคล + * @param type ประเภทบุคคล */ -function onclickViewinfo(id: string) { +function onclickViewinfo(id: string, type: string) { modalPersonal.value = true; personId.value = id; + profileType.value = type; } /** @@ -587,7 +590,12 @@ onMounted(async () => { round color="info" icon="mdi-eye" - @click="onclickViewinfo(props.row.personId)" + @click=" + onclickViewinfo( + props.row.personId, + props.row.profileType + ) + " > ดูข้อมูลในทะเบียนประวัติ @@ -1115,6 +1123,7 @@ onMounted(async () => { :modal="modalPersonal" :id="personId" @update:modal="updatemodalPersonal" + :type="profileType" />