#closed issue #1416 แสดงข้อมูลทะเบียนประวัติรายชื่อลูกจ้าง
This commit is contained in:
parent
55905c8cec
commit
c90e22b037
3 changed files with 24 additions and 9 deletions
|
|
@ -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"
|
||||
/>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue