updated route retirement

This commit is contained in:
Warunee Tamkoo 2024-08-01 14:44:43 +07:00
parent 483fc2943a
commit ebd4702356
6 changed files with 160 additions and 138 deletions

View file

@ -299,7 +299,9 @@ const pagination = ref({
<q-td
v-for="col in props.cols"
:key="col.id"
@click="router.push(`/retirement/out/${props.row.id}`)"
@click="
router.push(`/retirement/dismiss-order/${props.row.id}`)
"
>
<div v-if="col.name === 'no'">
{{ props.rowIndex + 1 }}
@ -307,13 +309,15 @@ const pagination = ref({
<div
v-else
:class="col.name === 'organizationPositionOld' ? 'table_ellipsis' : ''"
:class="
col.name === 'organizationPositionOld'
? 'table_ellipsis'
: ''
"
>
{{ col.value ? col.value : "-" }}
</div>
</q-td>
</q-tr>
</template>
</d-table>

View file

@ -12,7 +12,6 @@ import type { ResponseItems } from "@/modules/06_retirement/interface/response/e
import DialogFooter from "@/modules/05_placement/components/PersonalList/DialogFooter.vue";
import DialogHeader from "@/components/DialogHeader.vue";
/** use */
const $q = useQuasar(); // noti quasar
const router = useRouter();
@ -297,7 +296,7 @@ const openModalCalendar = (rows: any) => {
color="blue-9"
icon="mdi-square-edit-outline"
outline
@click="$router.push('/exit-Interview/edit-question')"
@click="$router.push('/retirement/exit-Interview/edit-question')"
><span class="q-pl-sm">แกไขคำถาม</span></q-btn
>
</div>
@ -374,7 +373,9 @@ const openModalCalendar = (rows: any) => {
key="no"
:props="props"
@click="
router.push(`/exit-Interview/questionnair/${props.row.id}`)
router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
"
>
{{ props.rowIndex + 1 }}
@ -383,7 +384,9 @@ const openModalCalendar = (rows: any) => {
key="fullname"
:props="props"
@click="
router.push(`/exit-Interview/questionnair/${props.row.id}`)
router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
"
>
{{ props.row.fullname }}
@ -392,7 +395,9 @@ const openModalCalendar = (rows: any) => {
key="realReason"
:props="props"
@click="
router.push(`/exit-Interview/questionnair/${props.row.id}`)
router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
"
>
{{ props.row.realReason }}
@ -401,7 +406,9 @@ const openModalCalendar = (rows: any) => {
key="notExitFactor"
:props="props"
@click="
router.push(`/exit-Interview/questionnair/${props.row.id}`)
router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
"
>
{{ props.row.notExitFactor }}
@ -410,7 +417,9 @@ const openModalCalendar = (rows: any) => {
key="futureWork"
:props="props"
@click="
router.push(`/exit-Interview/questionnair/${props.row.id}`)
router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
"
>
{{ props.row.futureWork ? "ใช่" : "ไม่" }}
@ -419,7 +428,9 @@ const openModalCalendar = (rows: any) => {
key="futureWorkReason"
:props="props"
@click="
router.push(`/exit-Interview/questionnair/${props.row.id}`)
router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
"
>
{{ props.row.futureWorkReason }}
@ -428,7 +439,9 @@ const openModalCalendar = (rows: any) => {
key="havejob"
:props="props"
@click="
router.push(`/exit-Interview/questionnair/${props.row.id}`)
router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
"
>
{{ props.row.havejob ? "ใช่" : "ไม่" }}
@ -438,7 +451,9 @@ const openModalCalendar = (rows: any) => {
key="havejobReason"
:props="props"
@click="
router.push(`/exit-Interview/questionnair/${props.row.id}`)
router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
"
>
<div class="table_ellipsis">
@ -449,7 +464,9 @@ const openModalCalendar = (rows: any) => {
key="appointDate"
:props="props"
@click="
router.push(`/exit-Interview/questionnair/${props.row.id}`)
router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
"
>
{{
@ -460,12 +477,13 @@ const openModalCalendar = (rows: any) => {
key="datetext"
:props="props"
@click="
router.push(`/exit-Interview/questionnair/${props.row.id}`)
router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
"
>
{{ props.row.datetext }}
</q-td>
</q-tr>
</template>
</d-table>

View file

@ -151,7 +151,7 @@ const resetFilter = () => {
/** Setting Pagination */
const nextPage = (id: string) => {
router.push("/deceased/" + id);
router.push("/retirement/deceased/" + id);
};
const pagination = ref({
sortBy: "createdAt",

View file

@ -375,7 +375,7 @@ const updateData = (row: DataCopyOrder) => {
flat
color="primary"
class="q-mr-sm"
@click="router.push(`/deceased/${profileId}`)"
@click="router.push(`/retirement/deceased/${profileId}`)"
/>
งหนงสอเวยน
</div>

View file

@ -55,7 +55,7 @@ const fetchData = async () => {
//detail deceased
const openDeceased = (id: string) => {
router.push(`/deceased/detail/${id}`);
router.push(`/retirement/deceased/detail/${id}`);
};
//
@ -109,7 +109,7 @@ const fileDownload = async (type: string) => {
flat
color="primary"
class="q-mr-sm"
@click="router.push(`/deceased`)"
@click="router.push(`/retirement/deceased`)"
/>
รายละเอยดบนทกเวยนแจงการถงแกกรรม {{ fullName }}
</div>