แก้ไข retirement
This commit is contained in:
parent
446ff20c72
commit
c21a95f486
3 changed files with 11 additions and 10 deletions
|
|
@ -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`,
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -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: "เลือกประกาศที่ต้องการเพิ่มข้อมูล",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue