แก้ไข 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 {
|
||||
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}`,
|
||||
createnote: () => `${retirement}/edit`,
|
||||
removeProfile: () => `${retirement}/remove`,
|
||||
|
|
|
|||
|
|
@ -463,6 +463,7 @@ const paginationLabel = (start: number, end: number, total: number) => {
|
|||
:props="props"
|
||||
class="cursor-pointer"
|
||||
: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="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-btn
|
||||
<!-- <q-btn
|
||||
flat
|
||||
round
|
||||
color="blue"
|
||||
|
|
@ -520,7 +521,7 @@ const paginationLabel = (start: number, end: number, total: number) => {
|
|||
@click.stop="router.push(`/registry/${props.row.profileId}`)"
|
||||
>
|
||||
<q-tooltip>ดูข้อมูลทะเบียนประวัติ</q-tooltip>
|
||||
</q-btn>
|
||||
</q-btn> -->
|
||||
</q-td>
|
||||
<q-td auto-width v-if="typeReport === 'EDIT' || round === 1">
|
||||
<q-btn
|
||||
|
|
@ -533,7 +534,7 @@ const paginationLabel = (start: number, end: number, total: number) => {
|
|||
(modalNote = true),
|
||||
(note = props.row.reason),
|
||||
(action = 'edit'),
|
||||
(retireProfileId = props.row.profileId)
|
||||
(retireProfileId = props.row.id)
|
||||
"
|
||||
>
|
||||
<q-tooltip>กรอกเหตุผล</q-tooltip>
|
||||
|
|
@ -550,7 +551,7 @@ const paginationLabel = (start: number, end: number, total: number) => {
|
|||
(modalNote = true),
|
||||
(action = 'delete'),
|
||||
(note = props.row.remove),
|
||||
(retireProfileId = props.row.profileId)
|
||||
(retireProfileId = props.row.id)
|
||||
"
|
||||
><q-tooltip>ลบข้อมูล</q-tooltip></q-btn
|
||||
>
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@
|
|||
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
||||
<span class="text-weight-medium">{{ col.label }}</span>
|
||||
</q-th>
|
||||
<q-th auto-width />
|
||||
<!-- <q-th auto-width /> -->
|
||||
</q-tr>
|
||||
</template>
|
||||
<template v-slot:body="props">
|
||||
|
|
@ -472,12 +472,12 @@ const clickAdd = () => {
|
|||
})
|
||||
.onCancel(() => {})
|
||||
.onDismiss(() => {});
|
||||
} else {
|
||||
modal.value = true;
|
||||
action.value = "";
|
||||
radio.value = "";
|
||||
}
|
||||
|
||||
modal.value = true;
|
||||
action.value = "";
|
||||
radio.value = "";
|
||||
|
||||
// $q.dialog({
|
||||
// title: "เพิ่มประกาศ",
|
||||
// message: "เลือกประกาศที่ต้องการเพิ่มข้อมูล",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue