From c4c8e7e74b784c1d5a719b60e8d0adefc005ae3e Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期四, 28 八月 2025 10:16:57 +0800
Subject: [PATCH] 修改
---
src/router/index.js | 205 ++++++++-------------------------------------------
1 files changed, 32 insertions(+), 173 deletions(-)
diff --git a/src/router/index.js b/src/router/index.js
index c5f551d..e929a04 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'
@@ -58,197 +58,42 @@
hidden: true
},
{
- path: '/expertUser',
- component: () => import('@/views/safetyReview/userManage/expertUsers/index.vue'),
+ path: '/certPdf',
+ component: () => import('@/views/certificatePdf'),
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: '/index',
+ component: () => import('@/views/index'),
+ name: 'Index',
+ meta: { title: '首页', icon: 'dashboard', 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: '/project',
- component: Layout,
- redirect: '/project',
- children: [
- {
- path: '/project',
- component: () => import('@/views/safetyReview/projectManage/index.vue'),
- name: 'Project',
- meta: { title: '项目管理',icon: 'form', affix: true }
- }
- ]
- },
- {
- path: '/process',
- component: Layout,
- redirect: '/process',
- children: [
- {
- path: '/process',
- component: () => import('@/views/safetyReview/projectManage/process.vue'),
- name: 'Process',
- meta: { title: '项目信息管理'}
- }
- ]
- },
-
- {
- 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/experts',
- meta: { title: '厅专家库管理'},
- children: [
- {
- path: 'experts',
- component: () => import('@/views/safetyReview/expertManage/experts/index.vue'),
- name: 'expert',
- meta: { title: '厅专家库',icon: 'form'}
- },
- {
- path: 'applyRecords',
- component: () => import('@/views/safetyReview/expertManage/applyRecords/index.vue'),
- name: 'applyRecords',
- meta: { title: '专家申请记录',icon: 'form'}
- },
- {
- path: 'expertUser',
- component: () => import('@/views/safetyReview/userManage/expertUsers/index.vue'),
- name: 'expertUser',
- meta: { title: '专家用户管理',icon: 'form'}
- },
- ]
- },
- {
- 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: 'expertsType',
- component: () => import('@/views/safetyReview/baseSet/expertsType/index.vue'),
- name: 'expertsType',
- 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: 'major',
- component: () => import('@/views/safetyReview/baseSet/major/index.vue'),
- name: 'major',
- meta: { title: '专业方向',icon: 'form'}
- },
- ]
- },
-
-
-
{
path: '/user',
component: Layout,
@@ -262,7 +107,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