From c90e22b037904fa0fe0739fdd419426ef46f86e8 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 22 Apr 2025 15:40:30 +0700 Subject: [PATCH] =?UTF-8?q?#closed=20issue=20#1416=20=E0=B9=81=E0=B8=AA?= =?UTF-8?q?=E0=B8=94=E0=B8=87=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9?= =?UTF-8?q?=E0=B8=A5=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5=E0=B8=A2?= =?UTF-8?q?=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1=E0=B8=95?= =?UTF-8?q?=E0=B8=B4=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=8A=E0=B8=B7=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=A5=E0=B8=B9=E0=B8=81=E0=B8=88=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../07_insignia/components/2_Manage/Tab1.vue | 13 ++++++++++--- .../07_insignia/components/2_Manage/Tab2.vue | 10 +++++++--- .../07_insignia/components/2_Manage/Tab3.vue | 10 +++++++--- 3 files changed, 24 insertions(+), 9 deletions(-) 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 () => {