import MainLayout from "@/layouts/MainLayout.vue";
const routes = [
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/login/index.vue"),
    meta: { nopermission: true },
  },
  {
    path: "/gzbPage",
    name: "gzbPage",
    title: "数据大屏",
    component: () => import("@/views/homePage/index.vue"),
    meta: { nopermission: true },
  },
  {
    path: "/",
    name: "首页",
    redirect: "/message",
    component: MainLayout,
    children: [
      {
        path: "/message",
        name: "message",
        title: "消息中心",
        component: () => import("@/views/systemManage/message.vue"),
      },
      {
        path: "/homePage",
        name: "dataSummary",
        title: "数据大屏",
        component: () => import("@/views/homePage/index.vue"),
      },

      {
        path: "/projectManage",
        name: "projectManage",
        title: "投前管理",
        redirect: "/projectAllPage",
        children: [
          {
            path: "/projectDraft",
            name: "projectDraft",
            title: "项目遴选",
            component: () => import("@/views/projectManage/projectDraft.vue"),
          },
          {
            path: "/projectSetUp",
            name: "projectSetUp",
            title: "项目立项",
            component: () => import("@/views/projectManage/projectSetUp.vue"),
          },
          {
            path: "/projectArgument",
            name: "projectArgument",
            title: "项目论证",
            component: () =>
              import("@/views/projectManage/projectArgument.vue"),
          },
          {
            path: "/projectDecision",
            name: "projectDecision",
            title: "项目决策",
            component: () =>
              import("@/views/projectManage/projectDecision.vue"),
          },
          {
            path: "/projectAllPage",
            name: "projectAllPage",
            title: "项目档案库",
            component: () => import("@/views/projectManage/projectAllPage.vue"),
          },
          {
            path: "/addProject",
            name: "addProject",
            title: "新增项目",
            component: () => import("@/views/projectManage/addProject.vue"),
          },
        ],
      },
      {
        path: "/investingManage",
        name: "investingManage",
        title: "投中管理",
        redirect: "/targetLiabilityStatement",
        children: [
          {
            path: "/targetLiabilityStatement",
            name: "targetLiabilityStatement",
            title: "投资目标责任书",
            component: () =>
              import("@/views/investingManage/targetLiabilityStatement.vue"),
          },
          {
            path: "/addStatement",
            name: "addStatement",
            title: "新增责任书",
            component: () => import("@/views/investingManage/addStatement.vue"),
          },
          {
            path: "/targetControl",
            name: "targetControl",
            title: "投资控制",
            component: () =>
              import("@/views/investingManage/targetControl.vue"),
          },
          {
            path: "/addControl",
            name: "addControl",
            title: "新增投资控制",
            component: () => import("@/views/investingManage/addControl.vue"),
          },
          {
            path: "/majorRisk",
            name: "majorRisk",
            title: "重大风险防控",
            component: () => import("@/views/investingManage/majorRisk.vue"),
          },
          {
            path: "/constructionTime",
            name: "constructionTime",
            title: "建设期投资回收",
            component: () =>
              import("@/views/investingManage/constructionTime.vue"),
          },
          {
            path: "/constructionTimeAdd",
            name: "constructionTimeAdd",
            title: "建设期投资回收",
            component: () =>
              import("@/views/investingManage/constructionTimeAdd.vue"),
          },
          {
            path: "/addRisk",
            name: "addRisk",
            title: "新增重大风险",
            component: () => import("@/views/investingManage/addRisk.vue"),
          },
          {
            path: "/construction",
            name: "construction",
            title: "建设期投资检查",
            component: () => import("@/views/investingManage/construction.vue"),
          },
          {
            path: "/constructionAdd",
            name: "constructionAdd",
            title: "建设期投资检查",
            component: () =>
              import("@/views/investingManage/constructionAdd.vue"),
          },
          {
            path: "/bigIssues",
            name: "bigIssues",
            title: "重大事项审批",
            component: () => import("@/views/investingManage/bigIssues.vue"),
          },
          {
            path: "/bigIssuesAdd",
            name: "bigIssuesAdd",
            title: "重大事项审批",
            component: () => import("@/views/investingManage/bigIssuesAdd.vue"),
          },
          {
            path: "/quit",
            name: "quit",
            title: "项目退出",
            component: () => import("@/views/investingManage/quit.vue"),
          },
          {
            path: "/quitAdd",
            name: "quitAdd",
            title: "项目退出",
            component: () => import("@/views/investingManage/quitAdd.vue"),
          },
          {
            path: "/decision",
            name: "decision",
            title: "重新决策",
            component: () => import("@/views/investingManage/decision.vue"),
          },
          {
            path: "/decisionAdd",
            name: "decisionAdd",
            title: "重新决策",
            component: () => import("@/views/investingManage/decisionAdd.vue"),
          },
        ],
      },

      {
        path: "/castbehind",
        name: "castbehind",
        title: "投后管理",
        redirect: "/runningPeriod",
        children: [
          {
            path: "/investmentCecovery",
            name: "investmentCecovery",
            title: "运营期投资回收",
            component: () =>
              import("@/views/castbehind/investmentCecovery.vue"),
          },
          {
            path: "/investmentCecoveryAdd",
            name: "investmentCecoveryAdd",
            title: "运营期投资回收",
            component: () =>
              import("@/views/castbehind/investmentCecoveryAdd.vue"),
          },
          {
            path: "/runningPeriod",
            name: "runningPeriod",
            title: "运营期投资检查",
            component: () => import("@/views/castbehind/runningPeriod.vue"),
          },

          {
            path: "/runningPeriodAdd",
            name: "runningPeriodAdd",
            title: "运营期投资检查",
            component: () => import("@/views/castbehind/runningPeriodAdd.vue"),
          },
          {
            path: "/evaluate",
            name: "evaluate",
            title: "投资后评价",
            component: () => import("@/views/castbehind/evaluate.vue"),
          },
          {
            path: "/evaluateAdd",
            name: "evaluateAdd",
            title: "投资后评价",
            component: () => import("@/views/castbehind/evaluateAdd.vue"),
          },
          {
            path: "/turnover",
            name: "turnover",
            title: "移交管理",
            component: () => import("@/views/castbehind/turnover.vue"),
          },
          {
            path: "/turnoverAdd",
            name: "turnoverAdd",
            title: "移交管理",
            component: () => import("@/views/castbehind/turnoverAdd.vue"),
          },
        ],
      },
      {
        path: "/templateManage",
        name: "templateManage",
        title: "模板管理",
        component: () => import("@/views/projectManage/templateManage.vue"),
      },
      {
        path: "/everydayPage",
        name: "everydayPage",
        title: "日常管理",
        redirect: "/share",
        children: [
          {
            path: "/share",
            name: "share",
            title: "参股企业管理",
            component: () => import("@/views/everydayPage/share.vue"),
          },
          {
            path: "/shareAdd",
            name: "shareAdd",
            title: "参股企业管理",
            component: () => import("@/views/everydayPage/shareAdd.vue"),
          },
          {
            path: "/SuperFormExample",
            name: "SuperFormExample",
            title: "测试组件",
            component: () =>
              import("@/views/everydayPage/SuperFormExample.vue"),
          },
          {
            path: "/system",
            name: "system",
            title: "体系建设",
            component: () => import("@/views/everydayPage/system.vue"),
          },
          {
            path: "/systemAdd",
            name: "systemAdd",
            title: "体系建设",
            component: () => import("@/views/everydayPage/systemAdd.vue"),
          },
          {
            path: "/investment",
            name: "investment",
            title: "投资规划",
            component: () => import("@/views/everydayPage/investment.vue"),
          },
          {
            path: "/investmentAdd",
            name: "investmentAdd",
            title: "投资规划",
            component: () => import("@/views/everydayPage/investmentAdd.vue"),
          },
          {
            path: "/everyday",
            name: "everyday",
            title: "日常信息",
            component: () => import("@/views/everydayPage/everyday.vue"),
          },
          {
            path: "/everydayAdd",
            name: "everydayAdd",
            title: "日常信息",
            component: () => import("@/views/everydayPage/everydayAdd.vue"),
          },
          {
            path: "/informationConstruction",
            name: "informationConstruction",
            title: "信息化建设",
            component: () =>
              import("@/views/everydayPage/informationConstruction.vue"),
          },
          {
            path: "/informationConstructionAdd",
            name: "informationConstructionAdd",
            title: "信息化建设",
            component: () =>
              import("@/views/everydayPage/informationConstructionAdd.vue"),
          },
          {
            path: "/vscouncil",
            name: "vscouncil",
            title: "投委会管理",
            component: () => import("@/views/everydayPage/vscouncil.vue"),
          },
          {
            path: "/vscouncilAdd",
            name: "vscouncilAdd",
            title: "投委会管理",
            component: () => import("@/views/everydayPage/vscouncilAdd.vue"),
          },
          {
            path: "/record",
            name: "record",
            title: "投资档案管理",
            component: () => import("@/views/everydayPage/record.vue"),
          },
          {
            path: "/recordAdd",
            name: "recordAdd",
            title: "投资档案管理",
            component: () => import("@/views/everydayPage/recordAdd.vue"),
          },
          {
            path: "/annual",
            name: "annual",
            title: "年度计划",
            component: () => import("@/views/everydayPage/annual.vue"),
          },
          {
            path: "/annualAdd",
            name: "annualAdd",
            title: "年度计划",
            component: () => import("@/views/everydayPage/annualAdd.vue"),
          },
          // {
          //   path: "/bigScreen",
          //   name: "bigScreen",
          //   title: "可视化大屏",
          //   component: () => import("@/views/everydayPage/bigScreen.vue"),
          // },
        ],
      },
      {
        path: "/elseManage",
        name: "elseManage",
        title: "其他管理",
        redirect: "/share",
        children: [
          {
            path: "/cost",
            name: "cost",
            title: "成本管理",
            component: () => import("@/views/elseManage/cost.vue"),
          },
          {
            path: "/costAdd",
            name: "costAdd",
            title: "成本管理",
            component: () => import("@/views/elseManage/costAdd.vue"),
          },

          {
            path: "/property",
            name: "property",
            title: "资产管理情况",
            component: () => import("@/views/elseManage/property.vue"),
          },

          {
            path: "/link",
            name: "link",
            title: "链接管理",
            component: () => import("@/views/elseManage/link.vue"),
          },
        ],
      },
      {
        path: "/systemManage",
        name: "systemManage",
        title: "系统管理",
        meta: { menuName: "系统管理" },
        children: [
          {
            path: "departManage",
            name: "departManage",
            title: "部门管理",
            component: () => import("@/views/systemManage/departManage.vue"),
          },
          {
            path: "userManage",
            name: "userManage",
            title: "用户管理",
            component: () => import("@/views/systemManage/userManage.vue"),
          },
          {
            path: "roleManage",
            name: "roleManage",
            title: "角色管理",
            component: () => import("@/views/systemManage/roleManage.vue"),
          },
          {
            path: "menuManage",
            name: "menuManage",
            title: "菜单管理",
            component: () => import("@/views/systemManage/menuManage.vue"),
          },
          {
            path: "resourceManage",
            name: "resourceManage",
            title: "资源库管理",
            component: () => import("@/views/systemManage/resourceManage.vue"),
          },
        ],
      },
      {
        path: "/building",
        name: "building",
        title: "建设中",
        component: () => import("@/views/homePage/building.vue"),
      },
    ],
  },
];
export { routes };
