updated route placement

This commit is contained in:
Warunee Tamkoo 2024-08-01 14:29:33 +07:00
parent 15d3ac574d
commit 242f82806b
14 changed files with 137 additions and 142 deletions

View file

@ -177,7 +177,7 @@ onMounted(async () => {
flat
color="primary"
class="q-mr-sm"
@click="router.push(`/appoint-employee`)"
@click="router.push(`/placement/appoint-employee`)"
/>
รายละเอยดการปรบระดบชนงานลกจาง {{ title.fullname }}
</div>

View file

@ -154,7 +154,7 @@ onMounted(async () => {
flat
color="primary"
class="q-mr-sm"
@click="router.push(`/appoint-promote`)"
@click="router.push(`/placement/appoint-promote`)"
/>
รายละเอยดการแตงต-เลอน-าย {{ title.fullname }}
</div>

View file

@ -149,7 +149,7 @@ onMounted(async () => {
flat
color="primary"
class="q-mr-sm"
@click="router.push(`/other`)"
@click="router.push(`/placement/other`)"
/>
รายละเอยดรายการอนๆ {{ fullName }}
</div>

View file

@ -216,7 +216,7 @@ const clickDelete = (id: string) => {
//----()------//
const nextPage = (id: string) => {
router.push({
path: `/other/detail/${id}`,
path: `/placement/other/detail/${id}`,
});
};
@ -345,8 +345,6 @@ onMounted(() => {
{{ col.value ? col.value : "-" }}
</div>
</q-td>
</q-tr>
</template>
</d-table>

View file

@ -344,7 +344,7 @@ const onSubmit = async () => {
// back
const clickBack = () => {
router.push("/receive");
router.push("/placement/receive");
};
function calculateAge(birthDate: Date | null) {
@ -651,7 +651,7 @@ onMounted(async () => {
color="primary"
icon="mdi-chevron-left"
dense
@click="router.push(`/receive`)"
@click="router.push(`/placement/receive`)"
>
</q-btn>
<q-avatar size="65px" rounded class="containerimage">

View file

@ -480,7 +480,7 @@ onMounted(async () => {
flat
color="primary"
class="q-mr-sm"
@click="router.push(`/receive`)"
@click="router.push(`/placement/receive`)"
/>
รายละเอยดการรบโอนของ {{ title.fullname }}
</div>

View file

@ -10,7 +10,7 @@ import config from "@/app.config";
import { useRouter } from "vue-router";
import DialogHeader from "@/modules/05_placement/components/Receive/DialogHeader.vue";
import DialogOrgTree from "@/modules/05_placement/components/Receive/receiveModal.vue";
// import DialogOrgTree from "@/modules/05_placement/components/Receive/receiveModal.vue";
import type { QTableProps } from "quasar";
import type {
@ -252,7 +252,7 @@ const resetFilter = () => {
};
//
const add = () => {
router.push(`/receive/add`);
router.push(`/placement/receive/add`);
};
//
const clickClose = () => {
@ -314,7 +314,7 @@ const closeModalTree = async () => {
//
const nextPage = (id: string) => {
router.push({
path: `/receive/${id}`,
path: `/placement/receive/${id}`,
});
};
@ -594,7 +594,6 @@ onMounted(() => {
{{ col.value ? col.value : "-" }}
</div>
</q-td>
</q-tr>
<!-- <q-tr :props="props" class="cursor-pointer">
<q-td

View file

@ -147,7 +147,7 @@ const resetFilter = () => {
//
const openDetail = (id: string) => {
router.push(`/repatriate/detail/${id}`);
router.push(`/placement/repatriate/detail/${id}`);
};
// modal
const openModal = () => (modal.value = true);
@ -333,7 +333,6 @@ onMounted(async () => {
{{ col.value == null ? "" : col.value }}
</div>
</q-td>
</q-tr>
</template>
</d-table>

View file

@ -143,7 +143,7 @@ onMounted(() => {
flat
color="primary"
class="q-mr-sm"
@click="router.push(`/repatriate`)"
@click="router.push(`/placement/repatriate`)"
/>
รายละเอยดการสงตวกล {{ fullname }}
</div>

View file

@ -254,7 +254,7 @@ onMounted(async () => {
v-for="col in props.cols"
:key="col.id"
class="cursor-pointer"
@click="router.push(`/transfer/${props.row.id}`)"
@click="router.push(`/placement/transfer/${props.row.id}`)"
>
<div v-if="col.name === 'no'">
{{ props.rowIndex + 1 }}

View file

@ -319,7 +319,7 @@ onMounted(async () => {
flat
color="primary"
class="q-mr-sm"
@click="router.push(`/transfer`)"
@click="router.push(`/placement/transfer`)"
/>
รายละเอยดการขอโอนของ {{ responseData.fullname }}
</div>

View file

@ -136,7 +136,7 @@ onMounted(() => {
flat
color="primary"
class="q-mr-sm"
@click="router.push(`/help-government`)"
@click="router.push(`/placement/help-government`)"
/>
รายละเอยดการชวยราชการ {{ fullname }}
</div>

View file

@ -181,7 +181,7 @@ const resetFilter = () => {
};
const openDetail = (id: string) => {
router.push(`/help-government/detail/${id}`);
router.push(`/placement/help-government/detail/${id}`);
};
const openModal = () => (modal.value = true);
const closeModal = () => {
@ -357,7 +357,6 @@ onMounted(async () => {
}}
</div>
</q-td>
</q-tr>
</template>
</d-table>

View file

@ -99,8 +99,8 @@ export default [
component: PlacementMain,
meta: {
Auth: true,
Key: [6.1],
Role: "placement",
Key: "SYS_PLACEMENT_PASS",
Role: "STAFF",
},
},
{
@ -109,8 +109,8 @@ export default [
component: PlacementDetail,
meta: {
Auth: true,
Key: [6.1],
Role: "placement",
Key: "SYS_PLACEMENT_PASS",
Role: "STAFF",
},
},
{
@ -119,8 +119,8 @@ export default [
component: PlacementPersonalDetail,
meta: {
Auth: true,
Key: [6.1],
Role: "placement",
Key: "SYS_PLACEMENT_PASS",
Role: "STAFF",
},
},
{
@ -129,8 +129,8 @@ export default [
component: mainProbation,
meta: {
Auth: true,
Key: [6.3],
Role: "probation",
Key: "SYS_PROBATION",
Role: "STAFF",
},
},
{
@ -139,8 +139,8 @@ export default [
component: probationDetail,
meta: {
Auth: true,
Key: [6.3],
Role: "probation",
Key: "SYS_PROBATION",
Role: "STAFF",
},
},
{
@ -149,8 +149,8 @@ export default [
component: probationFormEvaluation,
meta: {
Auth: true,
Key: [6.3],
Role: "probation",
Key: "SYS_PROBATION",
Role: "STAFF",
},
},
{
@ -159,8 +159,8 @@ export default [
component: FormSaveResultAdd,
meta: {
Auth: true,
Key: [6.3],
Role: "probation",
Key: "SYS_PROBATION",
Role: "STAFF",
},
},
{
@ -169,8 +169,8 @@ export default [
component: FormEvaluateAdd,
meta: {
Auth: true,
Key: [6.3],
Role: "probation",
Key: "SYS_PROBATION",
Role: "STAFF",
},
},
{
@ -179,8 +179,8 @@ export default [
component: FormSaveResultAddCommander,
meta: {
Auth: true,
Key: [6.3],
Role: "probation",
Key: "SYS_PROBATION",
Role: "STAFF",
},
},
{
@ -189,8 +189,8 @@ export default [
component: FormEvaluateScoreAdd,
meta: {
Auth: true,
Key: [6.3],
Role: "probation",
Key: "SYS_PROBATION",
Role: "STAFF",
},
},
{
@ -199,8 +199,8 @@ export default [
component: probationWorkAdd,
meta: {
Auth: true,
Key: [6.3],
Role: "probation",
Key: "SYS_PROBATION",
Role: "STAFF",
},
},
{
@ -209,8 +209,8 @@ export default [
component: probationWorkAdd,
meta: {
Auth: true,
Key: [6.3],
Role: "probation",
Key: "SYS_PROBATION",
Role: "STAFF",
},
},
{
@ -219,208 +219,208 @@ export default [
component: probationFormAssign,
meta: {
Auth: true,
Key: [6.3],
Role: "probation",
Key: "SYS_PROBATION",
Role: "STAFF",
},
},
{
path: "/transfer",
path: "/placement/transfer",
name: "transfer",
component: transfer,
meta: {
Auth: true,
Key: [6.4],
Role: "placement",
Key: "SYS_TRANSFER_REQ",
Role: "STAFF",
},
},
{
path: "/transfer/:id",
path: "/placement/transfer/:id",
name: "transfer-id",
component: transferbyId,
meta: {
Auth: true,
Key: [6.4],
Role: "placement",
Key: "SYS_TRANSFER_REQ",
Role: "STAFF",
},
},
{
path: "/receive",
path: "/placement/receive",
name: "receive",
component: receiveMain,
meta: {
Auth: true,
Key: [6.3],
Role: "placement",
Key: "SYS_TRANSFER_RECEIVE",
Role: "STAFF",
},
},
{
path: "/receive/add",
path: "/placement/receive/add",
name: "receiveAdd",
component: ReceiveAdd,
meta: {
Auth: true,
Key: [6.3],
Role: "registryEmployee",
Key: "SYS_TRANSFER_RECEIVE",
Role: "STAFF",
},
},
{
path: "/receive/:id",
path: "/placement/receive/:id",
name: "receiveDetail",
component: receiveDetail2,
meta: {
Auth: true,
Key: [6.3],
Role: "placement",
Key: "SYS_TRANSFER_RECEIVE",
Role: "STAFF",
},
},
{
path: "/help-government",
path: "/placement/help-government",
name: "help-government",
component: helpgovernment,
meta: {
Auth: true,
Key: [6.6],
Role: "placement",
Key: "SYS_TEMPDUTY",
Role: "STAFF",
},
},
{
path: "/help-government/detail/:id",
path: "/placement/help-government/detail/:id",
name: "help-governmentbyId",
component: helpgovernmentbyId,
meta: {
Auth: true,
Key: [6.6],
Role: "placement",
Key: "SYS_TEMPDUTY",
Role: "STAFF",
},
},
{
path: "/repatriate",
path: "/placement/repatriate",
name: "repatriate",
component: repatriate,
meta: {
Auth: true,
Key: [6.7],
Role: "placement",
Key: "SYS_TEMPDUTY2",
Role: "STAFF",
},
},
{
path: "/repatriate/detail/:id",
path: "/placement/repatriate/detail/:id",
name: "repatriatebyId",
component: repatriatebyId,
meta: {
Auth: true,
Key: [6.7],
Role: "placement",
Key: "SYS_TEMPDUTY2",
Role: "STAFF",
},
},
{
path: "appoint-promote",
path: "/placement/appoint-promote",
name: "appoint-promote",
component: AppointmentMain,
meta: {
Auth: true,
Key: [6.8],
Role: "placement",
Key: "SYS_PROMOTION_OFFICER",
Role: "STAFF",
},
},
{
path: "appoint-promote/detail/:id",
path: "/placement/appoint-promote/detail/:id",
name: "appoint-promote-detail",
component: AppointmentDetail,
meta: {
Auth: true,
Key: [6.8],
Role: "placement",
Key: "SYS_PROMOTION_OFFICER",
Role: "STAFF",
},
},
{
path: "appoint-employee",
path: "/placement/appoint-employee",
name: "appoint-employee",
component: AppointEmployeeMain,
meta: {
Auth: true,
Key: [6.9],
Role: "placement",
Key: "SYS_PROMOTION_EMP",
Role: "STAFF",
},
},
{
path: "appoint-employee/detail/:id",
path: "/placement/appoint-employee/detail/:id",
name: "appoint-employee-detail",
component: AppointEmployeeDetail,
meta: {
Auth: true,
Key: [6.9],
Role: "placement",
Key: "SYS_PROMOTION_EMP",
Role: "STAFF",
},
},
{
path: "other",
path: "/placement/other",
name: "other",
component: OtherMain,
meta: {
Auth: true,
Key: [6.1],
Role: "placement",
Key: "SYS_PLACEMENT_OTHER",
Role: "STAFF",
},
},
{
path: "/relocation",
name: "relocation",
component: relocation,
meta: {
Auth: true,
Key: [6.1],
Role: "placement",
},
},
{
path: "other/detail/:id",
path: "/placement/other/detail/:id",
name: "other-detail",
component: OthertDetail,
meta: {
Auth: true,
Key: [6.9],
Role: "placement",
},
},
{
path: "/relocation/detail/:id",
name: "relocationId",
component: relocationbyId,
meta: {
Auth: true,
Key: [6.9],
Role: "placement",
},
},
{
path: "/change-positions",
name: "changePositions",
component: ChangePositionMain,
meta: {
Auth: true,
Key: [6.4],
Role: "placement",
},
},
{
path: "/change-positions/:id",
name: "changePersonalList",
component: ChangePersonalList,
meta: {
Auth: true,
Key: [6.4],
Role: "placement",
},
},
{
path: "/change-positions/personal/:id",
name: "changePersonalId",
component: ChangePersonalDetail,
meta: {
Auth: true,
Key: [6.4],
Role: "placement",
Key: "SYS_PLACEMENT_OTHER",
Role: "STAFF",
},
},
// {
// path: "/relocation",
// name: "relocation",
// component: relocation,
// meta: {
// Auth: true,
// Key: [6.1],
// Role: "placement",
// },
// },
// {
// path: "/relocation/detail/:id",
// name: "relocationId",
// component: relocationbyId,
// meta: {
// Auth: true,
// Key: [6.9],
// Role: "placement",
// },
// },
// {
// path: "/change-positions",
// name: "changePositions",
// component: ChangePositionMain,
// meta: {
// Auth: true,
// Key: "",
// Role: "STAFF",
// },
// },
// {
// path: "/change-positions/:id",
// name: "changePersonalList",
// component: ChangePersonalList,
// meta: {
// Auth: true,
// Key: "",
// Role: "placement",
// },
// },
// {
// path: "/change-positions/personal/:id",
// name: "changePersonalId",
// component: ChangePersonalDetail,
// meta: {
// Auth: true,
// Key: "",
// Role: "placement",
// },
// },
];