hrms-mgt/src/modules/11_discipline/router.ts

180 lines
4 KiB
TypeScript

const complaintMain = () =>
import("@/modules/11_discipline/components/1_Complaint/MainPage.vue");
const factsMain = () =>
import("@/modules/11_discipline/components/2_InvestigateFacts/MainPage.vue");
const investigatefactsAdd = () =>
import(
"@/modules/11_discipline/components/2_InvestigateFacts/AddPage.vue"
);
const disciplinaryMain = () =>
import(
"@/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue"
);
const oredrMain = () =>
import("@/modules/11_discipline/components/4_Order/MainPage.vue");
const report = () =>
import("@/modules/11_discipline/components/5_Report/MainPage.vue");
const directorMain = () =>
import(
"@/modules/11_discipline/components/6_BasicInformation/Director/MainPage.vue"
);
const channelMain = () =>
import(
"@/modules/11_discipline/components/6_BasicInformation/Channel/MainPage.vue"
);
const channelAdd = () =>
import(
"@/modules/11_discipline/components/6_BasicInformation/Channel/addChannel.vue"
);
const complaintAdd = () =>
import("@/modules/11_discipline/components/1_Complaint/AddComplaintPage.vue");
const reportType = () =>
import("@/modules/11_discipline/components/5_Report/reportDetail.vue");
const InvestigateDisciplinaryAdd = () =>
import(
"@/modules/11_discipline/components/3_InvestigateDisciplinary/addInvestigate.vue"
);
const orderPage = () => import("@/modules/11_discipline/components/4_Order/OrderPage.vue")
export default [
{
path: "/discipline/complaints",
name: "/discipline-complaints",
component: complaintMain,
meta: {
Auth: true,
Key: [11.1],
Role: "coin",
},
},
{
path: "/discipline/complaints/add",
name: "/discipline-complaints-add",
component: complaintAdd,
meta: {
Auth: true,
Key: [11.1],
Role: "coin",
},
},
{
path: "/discipline/investigatefacts",
name: "/discipline-investigatefacts",
component: factsMain,
meta: {
Auth: true,
Key: [11.2],
Role: "coin",
},
},
{
path: "/discipline/disciplinary",
name: "/discipline-disciplinary",
component: disciplinaryMain,
meta: {
Auth: true,
Key: [11.3],
Role: "coin",
},
},
{
path: "/discipline-order",
name: "/disciplineorder",
component: oredrMain,
meta: {
Auth: true,
Key: [11.4],
Role: "coin",
},
},
{
path: "/discipline/report",
name: "/discipline-report",
component: report,
meta: {
Auth: true,
Key: [11.5],
Role: "coin",
},
},
{
path: "/discipline/report/:type",
name: "/discipline-reportType",
component: reportType,
meta: {
Auth: true,
Key: [11.5],
Role: "coin",
},
},
{
path: "/discipline/director",
name: "/discipline-director",
component: directorMain,
meta: {
Auth: true,
Key: [11.6],
Role: "coin",
},
},
{
path: "/discipline/director",
name: "/discipline-director",
component: directorMain,
meta: {
Auth: true,
Key: [11.6],
Role: "coin",
},
},
{
path: "/discipline/channel",
name: "/discipline-channel",
component: channelMain,
meta: {
Auth: true,
Key: [11.6],
Role: "coin",
},
},
{
path: "/discipline/investigatefacts/add",
name: "/discipline-investigatefactsAdd",
component: investigatefactsAdd,
meta: {
Auth: true,
Key: [11.2],
Role: "coin",
},
},
{
path: "/discipline/InvestigateDisciplinary/add",
name: "/discipline-InvestigateDisciplinaryAdd",
component: InvestigateDisciplinaryAdd,
meta: {
Auth: true,
Key: [11.3],
Role: "coin",
},
},
{
path: "/discipline/channel/add",
name: "/discipline-channelAdd",
component: channelAdd,
meta: {
Auth: true,
Key: [11.2],
Role: "coin",
},
},
{
path: "/discipline-order/add",
name: "/disciplineorder-add",
component: orderPage,
meta: {
Auth: true,
Key: [11.4],
Role: "coin",
},
},
];