From a6a8e49af8c8172f4209dd94e65f53f17825cc44 Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期四, 21 十一月 2024 17:30:12 +0800 Subject: [PATCH] 项目管理 --- src/router/index.js | 167 ++++++++++--------------------------------------------- 1 files changed, 32 insertions(+), 135 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 9a2c07b..ebac8ec 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,4 +1,4 @@ -import { createWebHistory, createRouter } from 'vue-router' +import { createWebHistory, createWebHashHistory, createRouter } from 'vue-router' /* Layout */ import Layout from '@/layout' @@ -52,160 +52,43 @@ component: () => import('@/views/error/401'), hidden: true }, - { - path: '/expertUser', - component: () => import('@/views/safetyReview/userManage/expertUsers/index.vue'), + path: '/fillForm', + component: () => import('@/views/safetyReview/expertManage/fillForm/index.vue'), hidden: true }, { - path: '/evaluate', - component: () => import('@/views/safetyReview/baseSet/evaluateType/index.vue'), - hidden: true - }, - { - path: '/business', - component: () => import('@/views/safetyReview/baseSet/business/index.vue'), - hidden: true - }, - { - path: '/area', - component: () => import('@/views/safetyReview/baseSet/area/index.vue'), + path: '/checkProgress', + component: () => import('@/views/safetyReview/expertManage/checkProgress/index.vue'), hidden: true }, // { - // path: '', + // path: '/noMenu', // component: Layout, - // redirect: '/index', + // redirect: '/noMenu', // children: [ // { - // path: '/index', - // component: () => import('@/views/index'), - // name: 'Index', - // meta: { title: '首页',icon: 'form', affix: true } + // path: '/noMenu', + // component: () => import('@/views/error/noMenu.vue'), + // name: 'noMenu', + // meta: { title: '提示',icon: 'form', affix: true } // } // ] // }, { path: '', component: Layout, - redirect: '/institution', + redirect: '/index', + hidden: true, children: [ { - path: '/institution', - component: () => import('@/views/safetyReview/institution/institution.vue'), - name: 'Institution', - meta: { title: '机构公示', icon: 'form', affix: true } - } - ] - }, - { - path: '/notice', - component: Layout, - redirect: '/notice', - children: [ - { - path: '/notice', - component: () => import('@/views/safetyReview/notice/notice.vue'), - name: 'Notice', - meta: { title: '公告发布',icon: 'form', affix: true } - } - ] - }, - { - path: '/law', - component: Layout, - redirect: '/law', - children: [ - { - path: '/law', - component: () => import('@/views/safetyReview/law/law.vue'), - name: 'Law', - meta: { title: '法律法规',icon: 'form', affix: true } - } - ] - }, - { - path: '/userManage', - component: Layout, - redirect: '/userManage/supervise', - meta: { title: '用户管理'}, - children: [ - { - path: 'supervise', - component: () => import('@/views/safetyReview/userManage/superviseUsers/index.vue'), - name: 'supervise', - meta: { title: '监管用户管理',icon: 'form'} - }, - { - path: 'institutionUser', - component: () => import('@/views/safetyReview/userManage/institutionUsers/index.vue'), - name: 'institutionUser', - meta: { title: '机构用户管理',icon: 'form'} - }, - { - path: 'expertUsers', - component: () => import('@/views/safetyReview/userManage/expertUsers/index.vue'), - name: 'expertUsers', - meta: { title: '专家用户管理',icon: 'form'} - }, - ] - }, - { - path: '/expertManage', - component: Layout, - redirect: '/expertManage/expert', - meta: { title: '厅专家库管理'}, - children: [ - { - path: 'expert', + path: '/index', component: () => import('@/views/index'), - name: 'expert', - meta: { title: '厅专家库',icon: 'form'} - }, - { - path: 'record', - component: () => import('@/views/index'), - name: 'record', - meta: { title: '专家申请记录',icon: 'form'} - }, - { - path: 'expertUser', - component: () => import('@/views/safetyReview/userManage/expertUsers/index.vue'), - name: 'expertUser', - meta: { title: '专家用户管理',icon: 'form'} - }, + name: 'Index', + meta: { title: '首页', icon: 'dashboard', affix: true } + } ] }, - { - path: '/baseSet', - component: Layout, - redirect: '/baseSet/evaluate', - meta: { title: '基础设置'}, - children: [ - { - path: 'evaluate', - component: () => import('@/views/safetyReview/baseSet/evaluateType/index.vue'), - name: 'evaluate', - meta: { title: '评价类型管理',icon: 'form'} - }, - { - path: 'business', - component: () => import('@/views/safetyReview/baseSet/business/index.vue'), - name: 'business', - meta: { title: '业务范围',icon: 'form'} - }, - { - path: 'area', - component: () => import('@/views/safetyReview/baseSet/area/index.vue'), - name: 'area', - meta: { title: '地区维护',icon: 'form'} - }, - ] - }, - - - { path: '/user', component: Layout, @@ -219,7 +102,21 @@ meta: { title: '个人中心', icon: 'user' } } ] - } + }, + { + path: '', + component: Layout, + redirect: '/process', + hidden: true, + children: [ + { + path: '/process', + component: () => import('@/views/safetyReview/projectManage/process.vue'), + name: 'Process', + meta: { title: '项目管理', icon: 'dashboard', affix: true } + } + ] + }, ] // 动态路由,基于用户权限动态去加载 -- Gitblit v1.9.2