diff --git a/src/modules/07_insignia/components/2_Manage/Tab1.vue b/src/modules/07_insignia/components/2_Manage/Tab1.vue index 65cf5d6ab..245098a8c 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab1.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab1.vue @@ -715,13 +715,15 @@ async function fecthInsignia() { } const personId = ref(""); +const profileType = ref(""); /** * function redirect to ทะเบียนประวัติ * @param id profileId */ -function nextPage(id: string) { +function nextPage(id: string, type: string) { modalPersonal.value = true; personId.value = id; + profileType.value = type; } function updatemodalPersonal(modal: boolean) { @@ -1148,7 +1150,9 @@ onMounted(async () => { @@ -1217,7 +1221,9 @@ onMounted(async () => { flat round dense - @click.stop="nextPage(props.row.profileId)" + @click.stop=" + nextPage(props.row.profileId, props.row.employeeClass) + " > ดูข้อมูลทะเบียนประวัติ @@ -1698,6 +1704,7 @@ onMounted(async () => { diff --git a/src/modules/07_insignia/components/2_Manage/Tab2.vue b/src/modules/07_insignia/components/2_Manage/Tab2.vue index 2d757afab..807e1df29 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab2.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab2.vue @@ -170,14 +170,15 @@ function changtypeOc() { const modalPersonal = ref(false); const personId = ref(""); - +const profileType = ref(""); /** * function redirect ทะเบียนประวัติิ * @param id profileId */ -function nextPage(id: string) { +function nextPage(id: string, type: string) { modalPersonal.value = true; personId.value = id; + profileType.value = type; } function updatemodalPersonal(modal: boolean) { @@ -474,7 +475,9 @@ watch( flat round color="info" - @click="nextPage(props.row.profileId)" + @click=" + nextPage(props.row.profileId, props.row.employeeClass) + " icon="mdi-eye" > ดูข้อมูลทะเบียนประวัติ @@ -545,6 +548,7 @@ watch( diff --git a/src/modules/07_insignia/components/2_Manage/Tab3.vue b/src/modules/07_insignia/components/2_Manage/Tab3.vue index 76514f23d..85a7b14bb 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab3.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab3.vue @@ -170,14 +170,15 @@ async function changtypeOc() { const modalPersonal = ref(false); const personId = ref(""); - +const profileType = ref(""); /** * function redirect ทะเบียนประวัติิ * @param id profileId */ -function nextPage(id: string) { +function nextPage(id: string, type: string) { modalPersonal.value = true; personId.value = id; + profileType.value = type; } function updatemodalPersonal(modal: boolean) { @@ -472,7 +473,9 @@ onMounted(async () => { flat round color="info" - @click="nextPage(props.row.profileId)" + @click=" + nextPage(props.row.profileId, props.row.employeeClass) + " icon="mdi-eye" > ดูข้อมูลทะเบียนประวัติ @@ -542,6 +545,7 @@ onMounted(async () => {