แก้ไข retirement

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-08-07 13:17:59 +07:00
parent 446ff20c72
commit c21a95f486
3 changed files with 11 additions and 10 deletions

View file

@ -4,7 +4,7 @@ const retirement = `${env.API_URI}/retirement`
export default { export default {
profile: (type: string, year: string) => `${retirement}/profile/${type}/${year}`, profile: (type: string, year: string) => `${retirement}/profile/${type}/${year}`,
// profileRetire: (retireProfileId: string) => `${retirement}/profile/${retireProfileId}`, profileRetire: (retireProfileId: string) => `${retirement}/profile/${retireProfileId}`,
listRetire: (retireId: string) => `${retirement}/${retireId}`, listRetire: (retireId: string) => `${retirement}/${retireId}`,
createnote: () => `${retirement}/edit`, createnote: () => `${retirement}/edit`,
removeProfile: () => `${retirement}/remove`, removeProfile: () => `${retirement}/remove`,

View file

@ -463,6 +463,7 @@ const paginationLabel = (start: number, end: number, total: number) => {
:props="props" :props="props"
class="cursor-pointer" class="cursor-pointer"
:style="props.row.profileId === profileId && 'color: #26a69a;'" :style="props.row.profileId === profileId && 'color: #26a69a;'"
@click.stop="router.push(`/registry/${props.row.profileId}`)"
> >
<q-td key="order" :props="props">{{ props.row.order }} </q-td> <q-td key="order" :props="props">{{ props.row.order }} </q-td>
<!-- <q-td key="fixname" :props="props">{{ props.row.fixname }}</q-td> --> <!-- <q-td key="fixname" :props="props">{{ props.row.fixname }}</q-td> -->
@ -511,7 +512,7 @@ const paginationLabel = (start: number, end: number, total: number) => {
> >
<q-tooltip>โน</q-tooltip></q-btn <q-tooltip>โน</q-tooltip></q-btn
> --> > -->
<q-btn <!-- <q-btn
flat flat
round round
color="blue" color="blue"
@ -520,7 +521,7 @@ const paginationLabel = (start: number, end: number, total: number) => {
@click.stop="router.push(`/registry/${props.row.profileId}`)" @click.stop="router.push(`/registry/${props.row.profileId}`)"
> >
<q-tooltip>อมลทะเบยนประว</q-tooltip> <q-tooltip>อมลทะเบยนประว</q-tooltip>
</q-btn> </q-btn> -->
</q-td> </q-td>
<q-td auto-width v-if="typeReport === 'EDIT' || round === 1"> <q-td auto-width v-if="typeReport === 'EDIT' || round === 1">
<q-btn <q-btn
@ -533,7 +534,7 @@ const paginationLabel = (start: number, end: number, total: number) => {
(modalNote = true), (modalNote = true),
(note = props.row.reason), (note = props.row.reason),
(action = 'edit'), (action = 'edit'),
(retireProfileId = props.row.profileId) (retireProfileId = props.row.id)
" "
> >
<q-tooltip>กรอกเหตผล</q-tooltip> <q-tooltip>กรอกเหตผล</q-tooltip>
@ -550,7 +551,7 @@ const paginationLabel = (start: number, end: number, total: number) => {
(modalNote = true), (modalNote = true),
(action = 'delete'), (action = 'delete'),
(note = props.row.remove), (note = props.row.remove),
(retireProfileId = props.row.profileId) (retireProfileId = props.row.id)
" "
><q-tooltip>ลบขอม</q-tooltip></q-btn ><q-tooltip>ลบขอม</q-tooltip></q-btn
> >

View file

@ -125,7 +125,7 @@
<q-th v-for="col in props.cols" :key="col.name" :props="props"> <q-th v-for="col in props.cols" :key="col.name" :props="props">
<span class="text-weight-medium">{{ col.label }}</span> <span class="text-weight-medium">{{ col.label }}</span>
</q-th> </q-th>
<q-th auto-width /> <!-- <q-th auto-width /> -->
</q-tr> </q-tr>
</template> </template>
<template v-slot:body="props"> <template v-slot:body="props">
@ -472,12 +472,12 @@ const clickAdd = () => {
}) })
.onCancel(() => {}) .onCancel(() => {})
.onDismiss(() => {}); .onDismiss(() => {});
} else {
modal.value = true;
action.value = "";
radio.value = "";
} }
modal.value = true;
action.value = "";
radio.value = "";
// $q.dialog({ // $q.dialog({
// title: "", // title: "",
// message: "", // message: "",