#closed issue #1416 แสดงข้อมูลทะเบียนประวัติรายชื่อลูกจ้าง

This commit is contained in:
Warunee Tamkoo 2025-04-22 15:40:30 +07:00
parent 55905c8cec
commit c90e22b037
3 changed files with 24 additions and 9 deletions

View file

@ -715,13 +715,15 @@ async function fecthInsignia() {
}
const personId = ref<string>("");
const profileType = ref<string>("");
/**
* 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 () => {
<q-item
v-if="checkPermission($route)?.attrIsGet"
clickable
@click.stop="nextPage(props.row.profileId)"
@click.stop="
nextPage(props.row.profileId, props.row.employeeClass)
"
v-close-popup
>
<q-item-section style="min-width: 0px" avatar>
@ -1217,7 +1221,9 @@ onMounted(async () => {
flat
round
dense
@click.stop="nextPage(props.row.profileId)"
@click.stop="
nextPage(props.row.profileId, props.row.employeeClass)
"
>
<q-tooltip>อมลทะเบยนประว</q-tooltip>
</q-btn>
@ -1698,6 +1704,7 @@ onMounted(async () => {
<PopupPersonal
:modal="modalPersonal"
:id="personId"
:type="profileType"
@update:modal="updatemodalPersonal"
/>

View file

@ -170,14 +170,15 @@ function changtypeOc() {
const modalPersonal = ref<boolean>(false);
const personId = ref<string>("");
const profileType = ref<string>("");
/**
* 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"
>
<q-tooltip>อมลทะเบยนประว</q-tooltip>
@ -545,6 +548,7 @@ watch(
<PopupPersonal
:modal="modalPersonal"
:id="personId"
:type="profileType"
@update:modal="updatemodalPersonal"
/>
</template>

View file

@ -170,14 +170,15 @@ async function changtypeOc() {
const modalPersonal = ref<boolean>(false);
const personId = ref<string>("");
const profileType = ref<string>("");
/**
* 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"
>
<q-tooltip>อมลทะเบยนประว</q-tooltip>
@ -542,6 +545,7 @@ onMounted(async () => {
<PopupPersonal
:modal="modalPersonal"
:id="personId"
:type="profileType"
@update:modal="updatemodalPersonal"
/>
</template>