125 lines
2.9 KiB
TypeScript
125 lines
2.9 KiB
TypeScript
/**
|
|
* Router ระบบโครงสร้างหน่วยงานและกรอบอัตรากำลัง (Organizational)
|
|
*/
|
|
|
|
const MainMapping = () =>
|
|
import("@/modules/02_organizational/views/MainMapping.vue");
|
|
const MainStructChart = () =>
|
|
import("@/modules/02_organizational/views/MainStructChart.vue");
|
|
const MainOrgChart = () =>
|
|
import("@/modules/02_organizational/views/MainOrgChart.vue");
|
|
const MainTree = () => import("@/modules/02_organizational/views/MainTree.vue");
|
|
const MainTreeEmployee = () =>
|
|
import("@/modules/02_organizational/views/MainTreeEmployee.vue");
|
|
const MainReport = () =>
|
|
import("@/modules/02_organizational/views/MainReport.vue");
|
|
const ManageReport2 = () =>
|
|
import("@/modules/02_organizational/views/ManageReport2.vue");
|
|
const ManageReport2Add = () =>
|
|
import("@/modules/02_organizational/views/ManageReport2Add.vue");
|
|
|
|
const ManageReport2History = () =>
|
|
import("@/modules/02_organizational/views/ManageReport2History.vue");
|
|
|
|
export default [
|
|
{
|
|
path: "/organizational/mapping",
|
|
name: "organizationalMapping",
|
|
component: MainMapping,
|
|
meta: {
|
|
Auth: true,
|
|
Key: [7],
|
|
Role: "organization",
|
|
},
|
|
},
|
|
{
|
|
path: "/organizational/structchart",
|
|
name: "organizationalStructChart",
|
|
component: MainStructChart,
|
|
meta: {
|
|
Auth: true,
|
|
Key: [8],
|
|
Role: "organization",
|
|
},
|
|
},
|
|
{
|
|
path: "/organizational/orgchart",
|
|
name: "organizationalOrgChart",
|
|
component: MainOrgChart,
|
|
meta: {
|
|
Auth: true,
|
|
key: [14],
|
|
Role: "organization",
|
|
},
|
|
},
|
|
{
|
|
path: "/organizational/tree",
|
|
name: "organizationalTree",
|
|
component: MainTree,
|
|
meta: {
|
|
Auth: true,
|
|
Key: [9],
|
|
Role: "organization",
|
|
},
|
|
},
|
|
{
|
|
path: "/organizational/employee",
|
|
name: "organizationalEmployee",
|
|
component: MainTreeEmployee,
|
|
meta: {
|
|
Auth: true,
|
|
Key: [9],
|
|
Role: "organization",
|
|
},
|
|
},
|
|
{
|
|
path: "/organizational/manage/report",
|
|
name: "manageReport2",
|
|
component: ManageReport2,
|
|
meta: {
|
|
Auth: true,
|
|
Key: [11],
|
|
Role: "organization",
|
|
},
|
|
},
|
|
{
|
|
path: "/organizational/manage/report/:id",
|
|
name: "ManageReport2Edit",
|
|
component: ManageReport2Add,
|
|
meta: {
|
|
Auth: true,
|
|
Key: [7],
|
|
Role: "organization",
|
|
},
|
|
},
|
|
{
|
|
path: "/organizational/manage/report/add",
|
|
name: "ManageReport2Add",
|
|
component: ManageReport2Add,
|
|
meta: {
|
|
Auth: true,
|
|
Key: [10],
|
|
Role: "organization",
|
|
},
|
|
},
|
|
{
|
|
path: "/organizational/manage/report/history/:id",
|
|
name: "ManageReport2History",
|
|
component: ManageReport2History,
|
|
meta: {
|
|
Auth: true,
|
|
Key: [15],
|
|
Role: "organization",
|
|
},
|
|
},
|
|
{
|
|
path: "/organizational/report",
|
|
name: "organizationalReport",
|
|
component: MainReport,
|
|
meta: {
|
|
Auth: true,
|
|
Key: [13],
|
|
Role: "organization",
|
|
},
|
|
},
|
|
];
|