Commit 6c7cb2bd authored by wangxl's avatar wangxl

11

parent 3fe6b884
...@@ -154,6 +154,7 @@ export const routes = [ ...@@ -154,6 +154,7 @@ export const routes = [
{ path: '/talent/preliminary', name: '人才预审', component: () => import('@/views/audit/talent/Index.vue'), meta: { title: '人才预审', icon: '', noCache: true } }, { path: '/talent/preliminary', name: '人才预审', component: () => import('@/views/audit/talent/Index.vue'), meta: { title: '人才预审', icon: '', noCache: true } },
{ path: '/talent/assign', name: '人才分配', component: () => import('@/views/talentAssign/index.vue'), meta: { title: '人才分配', icon: '', noCache: true } }, { path: '/talent/assign', name: '人才分配', component: () => import('@/views/talentAssign/index.vue'), meta: { title: '人才分配', icon: '', noCache: true } },
{ path: '/talent/final', name: '人才终审', component: () => import('@/views/audit/talent/final.vue'), meta: { title: '人才终审', icon: '', noCache: true } }, { path: '/talent/final', name: '人才终审', component: () => import('@/views/audit/talent/final.vue'), meta: { title: '人才终审', icon: '', noCache: true } },
{ path: '/talent/evaluation', name: '人才评分', component: () => import('@/views/evaluation/talent/index.vue'), meta: { title: '人才评分', icon: '', noCache: true } },
] ]
}, },
{ {
...@@ -350,6 +351,12 @@ router.beforeEach(async (to, from, next) => { ...@@ -350,6 +351,12 @@ router.beforeEach(async (to, from, next) => {
NProgress.done() NProgress.done()
} }
} else { } else {
const hasMenu = JSON.parse(window.sessionStorage.getItem('menuList'))
if (hasUser.roles == '4' && !!!hasMenu) {
setType('1')
await store.dispatch('user/getMenuList')
await store.commit('app/setSystemType', 1)
}
await store.dispatch('app/auth', to.path) await store.dispatch('app/auth', to.path)
next() next()
NProgress.done() NProgress.done()
......
...@@ -62,7 +62,7 @@ import projectView from '@/views/evaluation/project/components/projectView' ...@@ -62,7 +62,7 @@ import projectView from '@/views/evaluation/project/components/projectView'
import pdfView from '@/views/components/common/pdfView' import pdfView from '@/views/components/common/pdfView'
export default { export default {
name: "expertEvaluation", name: "talentEvaluation",
components: { components: {
projectView, score, scoreView, pdfView projectView, score, scoreView, pdfView
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment