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 <q-td
v-for="col in props.cols" v-for="col in props.cols"
:key="col.id" :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'"> <div v-if="col.name === 'no'">
{{ props.rowIndex + 1 }} {{ props.rowIndex + 1 }}
@ -307,13 +309,15 @@ const pagination = ref({
<div <div
v-else v-else
:class="col.name === 'organizationPositionOld' ? 'table_ellipsis' : ''" :class="
col.name === 'organizationPositionOld'
? 'table_ellipsis'
: ''
"
> >
{{ col.value ? col.value : "-" }} {{ col.value ? col.value : "-" }}
</div> </div>
</q-td> </q-td>
</q-tr> </q-tr>
</template> </template>
</d-table> </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 DialogFooter from "@/modules/05_placement/components/PersonalList/DialogFooter.vue";
import DialogHeader from "@/components/DialogHeader.vue"; import DialogHeader from "@/components/DialogHeader.vue";
/** use */ /** use */
const $q = useQuasar(); // noti quasar const $q = useQuasar(); // noti quasar
const router = useRouter(); const router = useRouter();
@ -297,7 +296,7 @@ const openModalCalendar = (rows: any) => {
color="blue-9" color="blue-9"
icon="mdi-square-edit-outline" icon="mdi-square-edit-outline"
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 ><span class="q-pl-sm">แกไขคำถาม</span></q-btn
> >
</div> </div>
@ -374,7 +373,9 @@ const openModalCalendar = (rows: any) => {
key="no" key="no"
:props="props" :props="props"
@click=" @click="
router.push(`/exit-Interview/questionnair/${props.row.id}`) router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
" "
> >
{{ props.rowIndex + 1 }} {{ props.rowIndex + 1 }}
@ -383,7 +384,9 @@ const openModalCalendar = (rows: any) => {
key="fullname" key="fullname"
:props="props" :props="props"
@click=" @click="
router.push(`/exit-Interview/questionnair/${props.row.id}`) router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
" "
> >
{{ props.row.fullname }} {{ props.row.fullname }}
@ -392,7 +395,9 @@ const openModalCalendar = (rows: any) => {
key="realReason" key="realReason"
:props="props" :props="props"
@click=" @click="
router.push(`/exit-Interview/questionnair/${props.row.id}`) router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
" "
> >
{{ props.row.realReason }} {{ props.row.realReason }}
@ -401,7 +406,9 @@ const openModalCalendar = (rows: any) => {
key="notExitFactor" key="notExitFactor"
:props="props" :props="props"
@click=" @click="
router.push(`/exit-Interview/questionnair/${props.row.id}`) router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
" "
> >
{{ props.row.notExitFactor }} {{ props.row.notExitFactor }}
@ -410,7 +417,9 @@ const openModalCalendar = (rows: any) => {
key="futureWork" key="futureWork"
:props="props" :props="props"
@click=" @click="
router.push(`/exit-Interview/questionnair/${props.row.id}`) router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
" "
> >
{{ props.row.futureWork ? "ใช่" : "ไม่" }} {{ props.row.futureWork ? "ใช่" : "ไม่" }}
@ -419,7 +428,9 @@ const openModalCalendar = (rows: any) => {
key="futureWorkReason" key="futureWorkReason"
:props="props" :props="props"
@click=" @click="
router.push(`/exit-Interview/questionnair/${props.row.id}`) router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
" "
> >
{{ props.row.futureWorkReason }} {{ props.row.futureWorkReason }}
@ -428,7 +439,9 @@ const openModalCalendar = (rows: any) => {
key="havejob" key="havejob"
:props="props" :props="props"
@click=" @click="
router.push(`/exit-Interview/questionnair/${props.row.id}`) router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
" "
> >
{{ props.row.havejob ? "ใช่" : "ไม่" }} {{ props.row.havejob ? "ใช่" : "ไม่" }}
@ -438,7 +451,9 @@ const openModalCalendar = (rows: any) => {
key="havejobReason" key="havejobReason"
:props="props" :props="props"
@click=" @click="
router.push(`/exit-Interview/questionnair/${props.row.id}`) router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
" "
> >
<div class="table_ellipsis"> <div class="table_ellipsis">
@ -449,7 +464,9 @@ const openModalCalendar = (rows: any) => {
key="appointDate" key="appointDate"
:props="props" :props="props"
@click=" @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" key="datetext"
:props="props" :props="props"
@click=" @click="
router.push(`/exit-Interview/questionnair/${props.row.id}`) router.push(
`/retirement/exit-Interview/questionnair/${props.row.id}`
)
" "
> >
{{ props.row.datetext }} {{ props.row.datetext }}
</q-td> </q-td>
</q-tr> </q-tr>
</template> </template>
</d-table> </d-table>

View file

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

View file

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

View file

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

View file

@ -5,8 +5,8 @@
const Main = () => import("@/modules/06_retirement/views/Main.vue"); const Main = () => import("@/modules/06_retirement/views/Main.vue");
const Listretirement = () => const Listretirement = () =>
import("@/modules/06_retirement/components/ListRetirement/TableList.vue"); import("@/modules/06_retirement/components/ListRetirement/TableList.vue");
const resignOrder = () => // const resignOrder = () =>
import("@/modules/06_retirement/components/resign/ResignOrder.vue"); // import("@/modules/06_retirement/components/resign/ResignOrder.vue");
const resign = () => const resign = () =>
import("@/modules/06_retirement/components/resign/Resign.vue"); import("@/modules/06_retirement/components/resign/Resign.vue");
const resignByid = () => const resignByid = () =>
@ -19,17 +19,17 @@ const dismissOrder = () =>
import("@/modules/06_retirement/components/DismissOrder/DismissOrder.vue"); import("@/modules/06_retirement/components/DismissOrder/DismissOrder.vue");
const outDetail = () => const outDetail = () =>
import("@/modules/06_retirement/components/DismissOrder/outRegistry.vue"); import("@/modules/06_retirement/components/DismissOrder/outRegistry.vue");
const dischargedMain = () => // const dischargedMain = () =>
import("@/modules/06_retirement/components/Discharged/dischargedMain.vue"); // import("@/modules/06_retirement/components/Discharged/dischargedMain.vue");
const dischargedDetails = () => // const dischargedDetails = () =>
import( // import(
"@/modules/06_retirement/components/Discharged/dischargedRegistry.vue" // "@/modules/06_retirement/components/Discharged/dischargedRegistry.vue"
); // );
const expulsionMain = () => // const expulsionMain = () =>
import("@/modules/06_retirement/components/Expulsion/expulsionMain.vue"); // import("@/modules/06_retirement/components/Expulsion/expulsionMain.vue");
const expulsionDetails = () => // const expulsionDetails = () =>
import("@/modules/06_retirement/components/Expulsion/expulsionRegistry.vue"); // import("@/modules/06_retirement/components/Expulsion/expulsionRegistry.vue");
const exitInterviewMain = () => const exitInterviewMain = () =>
import("@/modules/06_retirement/components/ExitInterview/exitMain.vue"); import("@/modules/06_retirement/components/ExitInterview/exitMain.vue");
const exitInterviewDetails = () => const exitInterviewDetails = () =>
@ -46,38 +46,8 @@ export default [
component: Main, component: Main,
meta: { meta: {
Auth: true, Auth: true,
Key: [7], Key: "SYS_RETIREMENT",
Role: "retirement", Role: "STAFF",
},
},
{
path: "/exit-Interview",
name: "exit-Interview",
component: exitInterviewMain,
meta: {
Auth: true,
Key: [7.3],
Role: "retirement",
},
},
{
path: "/exit-Interview/questionnair/:id",
name: "exit-Interview-details",
component: exitInterviewDetails,
meta: {
Auth: true,
Key: [7.4],
Role: "retirement",
},
},
{
path: "/exit-Interview/edit-question",
name: "ExitInterviewEditQuestion",
component: exitInterviewEditQuestion,
meta: {
Auth: true,
Key: [7.5],
Role: "retirement",
}, },
}, },
{ {
@ -86,8 +56,8 @@ export default [
component: Listretirement, component: Listretirement,
meta: { meta: {
Auth: true, Auth: true,
Key: [7.1], Key: "SYS_RETIREMENT",
Role: "retirement", Role: "STAFF",
}, },
}, },
{ {
@ -96,8 +66,38 @@ export default [
component: Listretirement, component: Listretirement,
meta: { meta: {
Auth: true, Auth: true,
Key: [7.1], Key: "SYS_RETIREMENT",
Role: "retirement", Role: "STAFF",
},
},
{
path: "/retirement/exit-Interview",
name: "exit-Interview",
component: exitInterviewMain,
meta: {
Auth: true,
Key: "SYS_RESIGN_INTERVIEW",
Role: "STAFF",
},
},
{
path: "/retirement/exit-Interview/questionnair/:id",
name: "exit-Interview-details",
component: exitInterviewDetails,
meta: {
Auth: true,
Key: "SYS_RESIGN_INTERVIEW",
Role: "STAFF",
},
},
{
path: "/retirement/exit-Interview/edit-question",
name: "ExitInterviewEditQuestion",
component: exitInterviewEditQuestion,
meta: {
Auth: true,
Key: "SYS_RESIGN_INTERVIEW",
Role: "STAFF",
}, },
}, },
{ {
@ -106,8 +106,8 @@ export default [
component: resign, component: resign,
meta: { meta: {
Auth: true, Auth: true,
Key: [7.2], Key: "SYS_RESIGN",
Role: "retirement", Role: "STAFF",
}, },
}, },
{ {
@ -116,108 +116,108 @@ export default [
component: resignByid, component: resignByid,
meta: { meta: {
Auth: true, Auth: true,
Key: [7.3], Key: "SYS_RESIGN",
Role: "retirement", Role: "STAFF",
}, },
}, },
// {
// path: "/retirement/resign-order",
// name: "resign-order",
// component: resignOrder,
// meta: {
// Auth: true,
// Key: "SYS_RESIGN",
// Role: "STAFF",
// },
// },
{ {
path: "/retirement/resign-order", path: "/retirement/deceased",
name: "resign-order",
component: resignOrder,
meta: {
Auth: true,
Key: [7.4],
Role: "retirement",
},
},
{
path: "/deceased",
name: "deceased", name: "deceased",
component: deceased, component: deceased,
meta: { meta: {
Auth: true, Auth: true,
Key: [7.5], Key: "SYS_PASSAWAY",
Role: "retirement", Role: "STAFF",
}, },
}, },
{ {
path: "/deceased/:id", path: "/retirement/deceased/:id",
name: "deceased-detail", name: "deceased-detail",
component: detaildeceased, component: detaildeceased,
meta: { meta: {
Auth: true, Auth: true,
Key: [7.8], Key: "SYS_PASSAWAY",
Role: "retirement", Role: "STAFF",
}, },
}, },
{ {
path: "/deceased/detail/:id", path: "/retirement/deceased/detail/:id",
name: "deceased-detailByid", name: "deceased-detailByid",
component: detaildeceasedByid, component: detaildeceasedByid,
meta: { meta: {
Auth: true, Auth: true,
Key: [7.8], Key: "SYS_PASSAWAY",
Role: "retirement", Role: "STAFF",
}, },
}, },
{ {
path: "/dismiss-order", path: "/retirement/dismiss-order",
name: "dismiss-order", name: "dismiss-order",
component: dismissOrder, component: dismissOrder,
meta: { meta: {
Auth: true, Auth: true,
Key: [7.5], Key: "SYS_DISMISS",
Role: "retirement", Role: "STAFF",
}, },
}, },
{ {
path: "/retirement/out/:id", path: "/retirement/dismiss-order/:id",
name: "outDetail", name: "outDetail",
component: outDetail, component: outDetail,
meta: { meta: {
Auth: true, Auth: true,
Key: [7.5], Key: "SYS_DISMISS",
Role: "retirement", Role: "STAFF",
},
},
{
path: "/discharged",
name: "discharged",
component: dischargedMain,
meta: {
Auth: true,
Key: [7.6],
Role: "retirement",
},
},
{
path: "/retirement/discharged/:id",
name: "dischargedDetails",
component: dischargedDetails,
meta: {
Auth: true,
Key: [7.6],
Role: "retirement",
},
},
{
path: "/expulsion",
name: "expulsion",
component: expulsionMain,
meta: {
Auth: true,
Key: [7.7],
Role: "retirement",
},
},
{
path: "/retirement/expulsion/:id",
name: "expulsionDetails",
component: expulsionDetails,
meta: {
Auth: true,
Key: [7.7],
Role: "retirement",
}, },
}, },
// {
// path: "/retirement/discharged",
// name: "discharged",
// component: dischargedMain,
// meta: {
// Auth: true,
// Key: [7.6],
// Role: "retirement",
// },
// },
// {
// path: "/retirement/discharged/:id",
// name: "dischargedDetails",
// component: dischargedDetails,
// meta: {
// Auth: true,
// Key: [7.6],
// Role: "retirement",
// },
// },
// {
// path: "/retirement/expulsion",
// name: "expulsion",
// component: expulsionMain,
// meta: {
// Auth: true,
// Key: [7.7],
// Role: "retirement",
// },
// },
// {
// path: "/retirement/expulsion/:id",
// name: "expulsionDetails",
// component: expulsionDetails,
// meta: {
// Auth: true,
// Key: [7.7],
// Role: "retirement",
// },
// },
]; ];