Commit 2129c0e2 authored by zhangderong's avatar zhangderong

修复普通账户不跳转问题

parent e0969182
......@@ -5,7 +5,7 @@
<Menu style="width: 100%;" ref='subMenu' :active-name="vSubName" :open-names="vName" @on-select="go">
<Submenu v-for="menu in childMenu" :name="menu.name" :key="menu.name">
<template slot="title">
<Icon type="ios-paper"/>
<Icon type='type'/>
{{menu.item}}
</template>
<MenuItem v-for="child in menu.child" :key="child.name" :name="child.name" @click="go">{{child.item}}</MenuItem>
......@@ -50,11 +50,12 @@ import localstorage from '../service/localstorage.service.js'
condition:'',
xiabiao:'',
itemSelect:'',
type:'',
name: '1',
hName: '1',
vName: ['1'],
vSubName: '1-1',
typearr:["ios-apps-outline","ios-list","ios-paper-outline","ios-cloud-upload-outline","ios-contact-outline","ios-mail-outline","ios-qr-scanner"],
typearr:['"ios-apps-outline"','"ios-list"','"ios-paper-outline"','"ios-cloud-upload-outline"','"ios-contact-outline"','"ios-mail-outline"','"ios-qr-scanner"'],
menuList: [
{ name: '1', item: '简历管理', child: [{ name: '1', item: '全部管理', child: [{ name: '1-1', item:'全部简历', route: '/allResume' }] },
{ name: '2', item: '渠道简历', child: [] }]},
......@@ -80,7 +81,7 @@ import localstorage from '../service/localstorage.service.js'
selectMenu(name) {
const menus = this.menuList.filter(v => name === v.name)
this.childMenu = menus.length > 0 ? menus[0].child : [{ name: '1', item: '全部简历', child: [{ name: '1-1', item:'全部简历', route: '/user/login' }] }]
if(name=='4' &&this.isadmin=='false'){
if(name=='4' &&this.isadmin==false){
this.vSubName='2-1'
}else{
this.vSubName='1-1'
......@@ -120,6 +121,12 @@ import localstorage from '../service/localstorage.service.js'
})
})
},
c(){
this.typearr.map((item,index)=>{
this.type=item
console.log(item)
})
},
getActiveName () {
this.menuList.map(parent => {
parent.child.map(child => {
......@@ -134,28 +141,34 @@ import localstorage from '../service/localstorage.service.js'
})
this.selectMenu(this.hName)
},
// 普通用户权限
getMenu(){
let condition=localstorage.get('isADMIN')
let c=JSON.parse(condition)
this.isadmin=c.isAdmin
//普通用户权限
// getMenu(){
// let condition=localstorage.get('isADMIN')
// let c=JSON.parse(condition)
// this.isadmin=c.isAdmin
// console.log(typeof(this.isadmin),33333333333)
// console.log(this.isadmin,999999999)
// if(this.isadmin == false){
// this.menuList[3].child.splice(0,1)
// }
// },
// 判断是否为超级管理员
judgeadmin(){
judeAdmin().then(res=>{
this.isadmin=res.data.body
console.log(this.isadmin,67575,typeof(this.isadmin))
if(this.isadmin == false){
this.menuList[3].child.splice(0,1)
}
},
// 判断是否为超级管理员
// judgeadmin(){
// judeAdmin().then(res=>{
// this.isadmin=res.data.body
// // console.log(this.isadmin)
// })
// }
})
}
},
mounted() {
this.getmassage()
this.getMenu()
// this.getMenu()
this.getActiveName()
// this.judgeadmin()
this.judgeadmin()
this.c()
}
}
</script>
......
......@@ -298,13 +298,13 @@ import Router from 'vue-router';
return {
ruleInline: {
ower: [
{ required: true, pattern:this.UpdateOWER!=='', message: '邀约人不能为空', trigger: 'blur' }
{ required: true, pattern:this.UpdateOWER=='', message: '邀约人不能为空', trigger: 'blur' }
],
time: [
{ required: true, pattern:this.UpdateTIME!=='', message: '面试时间不能为空', trigger: 'blur' }
{ required: true, pattern:this.UpdateTIME=='', message: '面试时间不能为空', trigger: 'blur' }
],
view: [
{ required: true, pattern:this.UpdateVIEW!=='',message: '面试官不能为空', trigger: 'blur' }
{ required: true, pattern:this.UpdateVIEW=='',message: '面试官不能为空', trigger: 'blur' }
],
},
modal1:false,
......@@ -508,7 +508,7 @@ import Router from 'vue-router';
}
})
},
selectFn2(e,SID) {
selectFn2(e,SID,itemsta) {
this.ITEMSTA=itemsta
this.toseeid=SID
// 准备约面
......@@ -548,7 +548,7 @@ import Router from 'vue-router';
this.SearchList(this.pageT)
}
},
selectFn3(e,SID) {
selectFn3(e,SID,itemsta) {
this.ITEMSTA=itemsta
this.toseeid=SID
// 准备约面
......@@ -587,7 +587,7 @@ import Router from 'vue-router';
this.SearchList(this.pageT)
}
},
selectFn4(e,SID) {
selectFn4(e,SID,itemsta) {
this.ITEMSTA=itemsta
this.toseeid=SID
// 准备约面
......
......@@ -22,7 +22,7 @@
</div>
<Button @click='uploadBtn' style='width:20%;margin-left:40%;' type='primary'>上传</Button>
<!-- 上传文件 -->
<Modal v-model='uploadModal' :closable='false'>
<Modal v-model='uploadModal' :closable='false' :mask-closable='false'>
<div>
<h4 style="font-size:20px;text-align:center;margin-bottom:20px">上传文件</h4>
<div v-for='(item,index) in dataList' class='process' :key='index'>
......
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