Refactoring code module 07_insignia

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-09-25 16:44:07 +07:00
parent 208d867dfd
commit 6fb6024f53
31 changed files with 1158 additions and 2444 deletions

View file

@ -1,29 +1,32 @@
/**
* Router (insignia)
*/
const ReportView = () =>
import("../07_insignia/components/report/ReportView.vue");
const report_01 = () =>
import("../07_insignia/components/report/Report_01.vue");
const report_02 = () =>
import("../07_insignia/components/report/Report_02.vue");
const RecordInsignia = () =>
import("@/modules/07_insignia/views/ResultPage.vue");
//รายการรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์
const insigniaProposals = () =>
import("@/modules/07_insignia/components/1_Proposals/listProposals.vue");
const roundAdd = () =>
import("@/modules/07_insignia/components/1_Proposals/addProposals.vue");
const listMange = () =>
import("@/modules/07_insignia/components/2_Manage/listManage.vue");
import("@/modules/07_insignia/views/01_RoundMain.vue");
//รายชื่อข้าราชการสามัญฯ ที่มีสิทธิ์ยื่นขอพระราชทานเครื่องราชอิสริยาภรณ์
const listMange = () => import("@/modules/07_insignia/views/02_ManageMain.vue");
// บันทึกผลการได้รับพระราชทานเครื่องราชอิสริยาภรณ์/การจ่ายใบกำกับ
const RecordInsignia = () =>
import("@/modules/07_insignia/views/03_ResultMain.vue");
// จัดสรรเครื่องราชอิสริยาภรณ์
const listAllocate = () =>
import("@/modules/07_insignia/components/4_Allocate/Main.vue");
import("@/modules/07_insignia/views/04_AllocateMain.vue");
const allocateOrdList = () =>
import("@/modules/07_insignia/components/4_Allocate/OrgList.vue");
import("@/modules/07_insignia/components/4_Allocate/OrgAllocatePageList.vue");
// ยืม - คืนเครื่องราช
const insigniaBorrow = () =>
import("@/modules/07_insignia/components/5_Borrow/Main.vue");
import("@/modules/07_insignia/views/05_BorrowMain.vue");
const ReportView = () => import("./views/06_ReportMain.vue");
const report_02 = () =>
import("./components/report/ReportDetail.vue");
export default [
{
path: "/insignia/round",
@ -35,26 +38,16 @@ export default [
Role: "STAFF",
},
},
// {
// path: "/insignia/round/:id",
// name: "roundAddEdit",
// component: roundAdd,
// meta: {
// Auth: true,
// Key: "SYS_INSIGNIA_ROUND",
// Role: "STAFF",
// },
// },
// {
// path: "/insignia/round/add",
// name: "roundAdd",
// component: roundAdd,
// meta: {
// Auth: true,
// Key: "SYS_INSIGNIA_ROUND",
// Role: "STAFF",
// },
// },
{
path: "/insignia/manage/list-manage",
name: "insigniaManage",
component: listMange,
meta: {
Auth: true,
Key: "SYS_INSIGNIA_MANAGE",
Role: "STAFF",
},
},
{
path: "/insignia/record",
@ -77,17 +70,7 @@ export default [
},
},
{
path: "/insignia/report/report-01",
name: "report-report-01",
component: report_01,
meta: {
Auth: true,
Key: "SYS_INSIGNIA_REPORT",
Role: "STAFF",
},
},
{
path: "/insignia/report/report/:type",
path: "/insignia/report/:type",
name: "report-report",
component: report_02,
meta: {
@ -96,16 +79,7 @@ export default [
Role: "STAFF",
},
},
{
path: "/insignia/manage/list-manage",
name: "insigniaManage",
component: listMange,
meta: {
Auth: true,
Key: "SYS_INSIGNIA_MANAGE",
Role: "STAFF",
},
},
{
path: "/insignia/allocate",
name: "insigniaAllocate",