แก้บัค

This commit is contained in:
AnandaTon 2023-07-27 14:07:53 +07:00
parent fde551b674
commit 6a048c23d9
3 changed files with 129 additions and 223 deletions

View file

@ -78,63 +78,123 @@
</q-tr>
</template>
<template v-slot:body="props">
<q-tr
:props="props"
class="cursor-pointer"
@click="redirectToPage(props.row.id)"
>
<q-td key="no" :props="props">
<q-tr :props="props" class="cursor-pointer">
<q-td key="no" :props="props" @click="redirectToPage(props.row.id)">
{{ props.rowIndex + 1 }}
</q-td>
<q-td key="fullname" :props="props">
<q-td
key="fullname"
:props="props"
@click="redirectToPage(props.row.id)"
>
{{ props.row.fullname }}
</q-td>
<q-td key="positionEmployeePosition" :props="props">
<q-td
key="positionEmployeePosition"
:props="props"
@click="redirectToPage(props.row.id)"
>
{{ props.row.positionEmployeePosition }}
</q-td>
<q-td key="positionEmployeePositionSide" :props="props">
<q-td
key="positionEmployeePositionSide"
:props="props"
@click="redirectToPage(props.row.id)"
>
{{ props.row.positionEmployeePositionSide }}
</q-td>
<q-td key="positionLine" :props="props">
<q-td
key="positionLine"
:props="props"
@click="redirectToPage(props.row.id)"
>
{{ props.row.positionLine }}
</q-td>
<q-td key="positionEmployeeGroup" :props="props">
<q-td
key="positionEmployeeGroup"
:props="props"
@click="redirectToPage(props.row.id)"
>
{{ props.row.positionEmployeeGroup }}
</q-td>
<q-td key="oc" :props="props">
<q-td key="oc" :props="props" @click="redirectToPage(props.row.id)">
{{ props.row.oc }}
</q-td>
<q-td key="amount" :props="props">
<q-td
key="amount"
:props="props"
@click="redirectToPage(props.row.id)"
>
{{ props.row.amount }}
</q-td>
<q-td key="govAge" :props="props">
<q-td
key="govAge"
:props="props"
@click="redirectToPage(props.row.id)"
>
{{ props.row.govAge }}
</q-td>
<q-td key="dateAppoint" :props="props">
<q-td
key="dateAppoint"
:props="props"
@click="redirectToPage(props.row.id)"
>
{{ props.row.dateAppoint }}
</q-td>
<q-td key="dateStart" :props="props">
<q-td
key="dateStart"
:props="props"
@click="redirectToPage(props.row.id)"
>
{{ props.row.dateStart }}
</q-td>
<q-td key="salaryDate" :props="props">
<q-td
key="salaryDate"
:props="props"
@click="redirectToPage(props.row.id)"
>
{{ props.row.salaryDate }}
</q-td>
<q-td key="refSalary" :props="props">
<q-td
key="refSalary"
:props="props"
@click="redirectToPage(props.row.id)"
>
{{ props.row.refSalary }}
</q-td>
<q-td key="age" :props="props">
<q-td
key="age"
:props="props"
@click="redirectToPage(props.row.id)"
>
{{ props.row.age }}
</q-td>
<q-td key="fullnameOld" :props="props">
<q-td
key="fullnameOld"
:props="props"
@click="redirectToPage(props.row.id)"
>
{{ props.row.fullnameOld }}
</q-td>
<q-td key="createdAt" :props="props">
<q-td
key="createdAt"
:props="props"
@click="redirectToPage(props.row.id)"
>
{{ props.row.createdAt }}
</q-td>
<q-td key="isLeave" :props="props">
<q-td
key="isLeave"
:props="props"
@click="redirectToPage(props.row.id)"
>
{{ props.row.isLeave }}
</q-td>
<q-td key="leaveDateOrder" :props="props">
<q-td
key="leaveDateOrder"
:props="props"
@click="redirectToPage(props.row.id)"
>
{{ props.row.leaveDateOrder }}
</q-td>
@ -1294,8 +1354,8 @@ const clickAdd = () => {
};
//
const redirectToPage = (Id?: number) => {
router.push(`/registryEmployee/Edit/${Id}`);
const redirectToPage = (profileId?: string) => {
router.push(`/registryEmployee/Edit/${profileId}`);
};
const editDetail = async (row: any) => {
await getPosition(row.id);