import Layout from "@/page/index/";

export default [
  {
    path: "/wel",
    component: Layout,
    redirect: "/wel/index",
    children: [
      {
        path: "/certificate/list",
        name: "电签列表",
        meta: {
          i18n: "ElectricSignaturelist",
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/certificate/list"),
      },
      {
        path: "/certificate/list/addList",
        name: "新增电签",
        meta: {
          i18n: "AddATelegram",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/certificate/lists/addList"
          ),
      },
      {
        path: "/certificate/management/see",
        name: "查看证书",
        meta: {
          i18n: "ViewCertificate",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/certificate/managements/see"
          ),
      },
      {
        path: "/certificate/management",
        name: "电签管理",
        meta: {
          i18n: "ElectricitySignManagement",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/certificate/management"
          ),
      },
      {
        path: "/AssessmentArea",
        name: "考核区",
        meta: {
          i18n: "AssessmentArea",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/AssessmentArea/index"
          ),
      },
      {
        path: "index",
        name: "首页",
        meta: {
          i18n: "dashboard",
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/wel/index"),
      },
      {
        path: "dashboard",
        name: "控制台",
        meta: {
          i18n: "dashboard",
          menu: false,
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/wel/dashboard"),
      },
      {
        path: "/manager/projectinfo/detail",
        name: "项目详情",
        meta: {
          i18n: "projectinfodetail",
          menu: false,
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/manager/projectinfo/detail.vue"
          ),
      },
      {
        path: "/manager/projectinfo/ledger",
        name: "同步台账",
        meta: {
          i18n: "projectinfoledger",
          menu: false,
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/manager/projectinfo/ledger.vue"
          ),
      },

      //归档树配置规则
      {
        path: "/manager/projectinfo/archivetreeRule",
        name: "归档树配置",
        meta: {
          i18n: "archivetreeRule",
          menu: false,
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/manager/projectinfo/archivetreeRule.vue"
          ),
      },

      //电签角色库
      {
        path: "/digital/signer",
        name: "电签角色库",
        meta: {
          i18n: "signer",
          menu: false,
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/digital/signer.vue"),
      },
      //电签角色库
      {
        path: "/rule/manager",
        name: "规范参数管理",
        meta: {
          i18n: "ruleManager",
          menu: false,
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/codeRule/ruleManage.vue"
          ),
      },
    ],
  },
  {
    path: "/test",
    component: Layout,
    redirect: "/test/index",
    children: [
      {
        path: "index",
        name: "测试页",
        meta: {
          i18n: "test",
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/util/test"),
      },
    ],
  },

  {
    path: "/dict-horizontal",
    component: Layout,
    redirect: "/dict-horizontal/index",
    children: [
      {
        path: "index",
        name: "字典管理",
        meta: {
          i18n: "dict",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/util/demo/dict-horizontal"
          ),
      },
    ],
  },
  {
    path: "/dict-vertical",
    component: Layout,
    redirect: "/dict-vertical/index",
    children: [
      {
        path: "index",
        name: "字典管理",
        meta: {
          i18n: "dict",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/util/demo/dict-vertical"
          ),
      },
    ],
  },
  {
    path: "/info",
    component: Layout,
    redirect: "/info/index",
    children: [
      {
        path: "index",
        name: "个人信息",
        meta: {
          i18n: "info",
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/system/userinfo"),
      },
    ],
  },
  {
    path: "/work/process/leave",
    component: Layout,
    redirect: "/work/process/leave/form",
    children: [
      {
        path: "form/:processDefinitionId",
        name: "请假流程",
        meta: {
          i18n: "work",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/work/process/leave/form"
          ),
      },
      {
        path: "handle/:taskId/:processInstanceId/:businessId",
        name: "处理请假流程",
        meta: {
          i18n: "work",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/work/process/leave/handle"
          ),
      },
      {
        path: "detail/:processInstanceId/:businessId",
        name: "请假流程详情",
        meta: {
          i18n: "work",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/work/process/leave/detail"
          ),
      },
    ],
  },
  {
    path: "/wbs",
    component: Layout,
    redirect: "/wbs/edit",
    children: [
      {
        path: "edit/:id",
        name: "编辑WBS树",
        meta: {
          i18n: "edit",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/manager/wbsinfo/edit"
          ),
      },
      {
        path: "/wbs/edit",
        name: "编辑WBS树",
        meta: {
          i18n: "edit",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/manager/wbsinfo/edit"
          ),
      },
      {
        path: "/wbs/element",
        name: "元素库",
        meta: {
          i18n: "element",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/manager/wbsinfo/element"
          ),
      },
      {
        path: "/wbs/parameter",
        name: "参数库",
        meta: {
          i18n: "parameter",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/manager/wbsinfo/parameter"
          ),
      },
    ],
  },
  {
    path: "/contract",
    component: Layout,
    redirect: "/contract/detail",
    children: [
      {
        path: "detail",
        name: "创建合同段",
        meta: {
          i18n: "edit",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/manager/contractinfo/detail"
          ),
      },
    ],
  },
  {
    path: "/contract",
    component: Layout,
    redirect: "/contract/detail1",
    children: [
      {
        path: "detail1",
        name: "编辑合同段",
        meta: {
          i18n: "edit",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/manager/contractinfo/detail"
          ),
      },
    ],
  },
  {
    path: "/excel",
    component: Layout,
    redirect: "/excel/excelmodel",
    children: [
      {
        path: "excelmodel/:id",
        name: "清表模板",
        meta: {
          i18n: "excelmodel",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/exctab/excelmodel/excelmodel"
          ),
      },
    ],
  },
  {
    path: "/excels",
    component: Layout,
    redirect: "/excels/ElementIdentification",
    children: [
      {
        path: "ElementIdentification/:id",
        name: "元素识别",
        meta: {
          i18n: "ElementIdentification",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/exctab/ElementIdentification/index"
          ),
      },
    ],
  },
  {
    path: "/project",
    component: Layout,
    redirect: "/project/tree",
    children: [
      {
        path: "tree",
        name: "私有WBS",
        meta: {
          i18n: "privateTree",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/manager/projectinfo/tree"
          ),
      },
      {
        path: "editElement",
        name: "编辑元素",
        meta: {
          i18n: "editElement",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/manager/projectinfo/editElement/editElement"
          ),
      },
      {
        path: "independent",
        name: "独立表单库",
        meta: {
          i18n: "independent",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/manager/projectinfo/independent"
          ),
      },
      {
        path: "archiveTime",
        name: "归档文件时间设置",
        meta: {
          i18n: "archiveTime",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/manager/projectinfo/archiveTime"
          ),
      },
    ],
  },
  {
    path: "/formula",
    component: Layout,
    redirect: "/formula/edit",
    children: [
      {
        path: "edit",
        name: "编辑公式",
        meta: {
          i18n: "formula",
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/formula/edit"),
      },
      // {
      //     path: 'edit2',
      //     name: '编辑公式',
      //     meta: {
      //         i18n: 'formula'
      //     },
      //     component: () =>
      //         import ( /* webpackChunkName: "views" */ '@/views/formula2/edit')
      // }
    ],
  },
  {
    path: "/tentative",
    component: Layout,
    redirect: "/tentative/testclassify",
    children: [
      {
        path: "/tentative/testclassify",
        name: "试验外委/第三方试验分类配置",
        meta: {
          i18n: "testclassify",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/tentative/testclassify"
          ),
      },
      {
        path: "/tentative/testcollect",
        name: "试验汇总分类配置",
        meta: {
          i18n: "testcollect",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/tentative/testclassifyset"
          ),
      },
      // {
      //     path: '/tentative/testclassifyset',
      //     name: '试验汇总分类配置',
      //     meta: {
      //       i18n: 'testclassifyset'
      //     },
      //     component: () =>
      //       import ( /* webpackChunkName: "views" */ '@/views/tentative/testclassifyset')
      // },
      {
        path: "/tentative/dataMap",
        name: "数据映射配置",
        meta: {
          i18n: "dataMap",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/tentative/components/dataMap"
          ),
      },
      {
        path: "/tentative/parameter",
        name: "试验参数配置",
        meta: {
          i18n: "parameter",
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/tentative/parameter"),
      },
      {
        path: "/tentative/metadata",
        name: "元数据管理",
        meta: {
          i18n: "metadata",
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/tentative/metadata"),
      },
    ],
  },
  {
    path: "/measure",
    component: Layout,
    redirect: "/measure/systemUnit",
    children: [
      {
        path: "systemUnit",
        name: "系统计量单元",
        meta: {
          i18n: "systemUnit",
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/measure/template"),
      },
      {
        path: "template",
        name: "系统计量单元",
        meta: {
          i18n: "template",
        },
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/measure/systemUnit.vue"
          ),
      },

      {
        path: "interimPay",
        name: "系统中期支付项",
        meta: {
          i18n: "interimPay",
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/measure/interimPay"),
      },
    ],
  },
];
