#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 personId = ref<string>("");
|
||||||
|
const profileType = ref<string>("");
|
||||||
/**
|
/**
|
||||||
* function redirect to ทะเบียนประวัติ
|
* function redirect to ทะเบียนประวัติ
|
||||||
* @param id profileId
|
* @param id profileId
|
||||||
*/
|
*/
|
||||||
function nextPage(id: string) {
|
function nextPage(id: string, type: string) {
|
||||||
modalPersonal.value = true;
|
modalPersonal.value = true;
|
||||||
personId.value = id;
|
personId.value = id;
|
||||||
|
profileType.value = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
function updatemodalPersonal(modal: boolean) {
|
function updatemodalPersonal(modal: boolean) {
|
||||||
|
|
@ -1148,7 +1150,9 @@ onMounted(async () => {
|
||||||
<q-item
|
<q-item
|
||||||
v-if="checkPermission($route)?.attrIsGet"
|
v-if="checkPermission($route)?.attrIsGet"
|
||||||
clickable
|
clickable
|
||||||
@click.stop="nextPage(props.row.profileId)"
|
@click.stop="
|
||||||
|
nextPage(props.row.profileId, props.row.employeeClass)
|
||||||
|
"
|
||||||
v-close-popup
|
v-close-popup
|
||||||
>
|
>
|
||||||
<q-item-section style="min-width: 0px" avatar>
|
<q-item-section style="min-width: 0px" avatar>
|
||||||
|
|
@ -1217,7 +1221,9 @@ onMounted(async () => {
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
dense
|
dense
|
||||||
@click.stop="nextPage(props.row.profileId)"
|
@click.stop="
|
||||||
|
nextPage(props.row.profileId, props.row.employeeClass)
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<q-tooltip>ดูข้อมูลทะเบียนประวัติ</q-tooltip>
|
<q-tooltip>ดูข้อมูลทะเบียนประวัติ</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
|
@ -1698,6 +1704,7 @@ onMounted(async () => {
|
||||||
<PopupPersonal
|
<PopupPersonal
|
||||||
:modal="modalPersonal"
|
:modal="modalPersonal"
|
||||||
:id="personId"
|
:id="personId"
|
||||||
|
:type="profileType"
|
||||||
@update:modal="updatemodalPersonal"
|
@update:modal="updatemodalPersonal"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -170,14 +170,15 @@ function changtypeOc() {
|
||||||
|
|
||||||
const modalPersonal = ref<boolean>(false);
|
const modalPersonal = ref<boolean>(false);
|
||||||
const personId = ref<string>("");
|
const personId = ref<string>("");
|
||||||
|
const profileType = ref<string>("");
|
||||||
/**
|
/**
|
||||||
* function redirect ทะเบียนประวัติิ
|
* function redirect ทะเบียนประวัติิ
|
||||||
* @param id profileId
|
* @param id profileId
|
||||||
*/
|
*/
|
||||||
function nextPage(id: string) {
|
function nextPage(id: string, type: string) {
|
||||||
modalPersonal.value = true;
|
modalPersonal.value = true;
|
||||||
personId.value = id;
|
personId.value = id;
|
||||||
|
profileType.value = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
function updatemodalPersonal(modal: boolean) {
|
function updatemodalPersonal(modal: boolean) {
|
||||||
|
|
@ -474,7 +475,9 @@ watch(
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
color="info"
|
color="info"
|
||||||
@click="nextPage(props.row.profileId)"
|
@click="
|
||||||
|
nextPage(props.row.profileId, props.row.employeeClass)
|
||||||
|
"
|
||||||
icon="mdi-eye"
|
icon="mdi-eye"
|
||||||
>
|
>
|
||||||
<q-tooltip>ดูข้อมูลทะเบียนประวัติ</q-tooltip>
|
<q-tooltip>ดูข้อมูลทะเบียนประวัติ</q-tooltip>
|
||||||
|
|
@ -545,6 +548,7 @@ watch(
|
||||||
<PopupPersonal
|
<PopupPersonal
|
||||||
:modal="modalPersonal"
|
:modal="modalPersonal"
|
||||||
:id="personId"
|
:id="personId"
|
||||||
|
:type="profileType"
|
||||||
@update:modal="updatemodalPersonal"
|
@update:modal="updatemodalPersonal"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -170,14 +170,15 @@ async function changtypeOc() {
|
||||||
|
|
||||||
const modalPersonal = ref<boolean>(false);
|
const modalPersonal = ref<boolean>(false);
|
||||||
const personId = ref<string>("");
|
const personId = ref<string>("");
|
||||||
|
const profileType = ref<string>("");
|
||||||
/**
|
/**
|
||||||
* function redirect ทะเบียนประวัติิ
|
* function redirect ทะเบียนประวัติิ
|
||||||
* @param id profileId
|
* @param id profileId
|
||||||
*/
|
*/
|
||||||
function nextPage(id: string) {
|
function nextPage(id: string, type: string) {
|
||||||
modalPersonal.value = true;
|
modalPersonal.value = true;
|
||||||
personId.value = id;
|
personId.value = id;
|
||||||
|
profileType.value = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
function updatemodalPersonal(modal: boolean) {
|
function updatemodalPersonal(modal: boolean) {
|
||||||
|
|
@ -472,7 +473,9 @@ onMounted(async () => {
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
color="info"
|
color="info"
|
||||||
@click="nextPage(props.row.profileId)"
|
@click="
|
||||||
|
nextPage(props.row.profileId, props.row.employeeClass)
|
||||||
|
"
|
||||||
icon="mdi-eye"
|
icon="mdi-eye"
|
||||||
>
|
>
|
||||||
<q-tooltip>ดูข้อมูลทะเบียนประวัติ</q-tooltip>
|
<q-tooltip>ดูข้อมูลทะเบียนประวัติ</q-tooltip>
|
||||||
|
|
@ -542,6 +545,7 @@ onMounted(async () => {
|
||||||
<PopupPersonal
|
<PopupPersonal
|
||||||
:modal="modalPersonal"
|
:modal="modalPersonal"
|
||||||
:id="personId"
|
:id="personId"
|
||||||
|
:type="profileType"
|
||||||
@update:modal="updatemodalPersonal"
|
@update:modal="updatemodalPersonal"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue