Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
recruiting-management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
recruiting-management
Commits
2129c0e2
Commit
2129c0e2
authored
Aug 23, 2019
by
zhangderong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复普通账户不跳转问题
parent
e0969182
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
26 deletions
+39
-26
home.vue
src/components/home.vue
+32
-19
allResume.vue
src/page/resume/allResume.vue
+6
-6
upload.vue
src/page/upload/upload.vue
+1
-1
No files found.
src/components/home.vue
View file @
2129c0e2
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<Menu
style=
"width: 100%;"
ref=
'subMenu'
:active-name=
"vSubName"
:open-names=
"vName"
@
on-select=
"go"
>
<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"
>
<Submenu
v-for=
"menu in childMenu"
:name=
"menu.name"
:key=
"menu.name"
>
<template
slot=
"title"
>
<template
slot=
"title"
>
<Icon
type=
"ios-paper"
/>
<Icon
type=
'type'
/>
{{
menu
.
item
}}
{{
menu
.
item
}}
</
template
>
</
template
>
<MenuItem
v-for=
"child in menu.child"
:key=
"child.name"
:name=
"child.name"
@
click=
"go"
>
{{child.item}}
</MenuItem>
<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'
...
@@ -50,11 +50,12 @@ import localstorage from '../service/localstorage.service.js'
condition
:
''
,
condition
:
''
,
xiabiao
:
''
,
xiabiao
:
''
,
itemSelect
:
''
,
itemSelect
:
''
,
type
:
''
,
name
:
'
1
'
,
name
:
'
1
'
,
hName
:
'
1
'
,
hName
:
'
1
'
,
vName
:
[
'
1
'
],
vName
:
[
'
1
'
],
vSubName
:
'
1-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
:
[
menuList
:
[
{
name
:
'
1
'
,
item
:
'
简历管理
'
,
child
:
[{
name
:
'
1
'
,
item
:
'
全部管理
'
,
child
:
[{
name
:
'
1-1
'
,
item
:
'
全部简历
'
,
route
:
'
/allResume
'
}]
},
{
name
:
'
1
'
,
item
:
'
简历管理
'
,
child
:
[{
name
:
'
1
'
,
item
:
'
全部管理
'
,
child
:
[{
name
:
'
1-1
'
,
item
:
'
全部简历
'
,
route
:
'
/allResume
'
}]
},
{
name
:
'
2
'
,
item
:
'
渠道简历
'
,
child
:
[]
}]},
{
name
:
'
2
'
,
item
:
'
渠道简历
'
,
child
:
[]
}]},
...
@@ -80,7 +81,7 @@ import localstorage from '../service/localstorage.service.js'
...
@@ -80,7 +81,7 @@ import localstorage from '../service/localstorage.service.js'
selectMenu
(
name
)
{
selectMenu
(
name
)
{
const
menus
=
this
.
menuList
.
filter
(
v
=>
name
===
v
.
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
'
}]
}]
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
'
this
.
vSubName
=
'
2-1
'
}
else
{
}
else
{
this
.
vSubName
=
'
1-1
'
this
.
vSubName
=
'
1-1
'
...
@@ -120,6 +121,12 @@ import localstorage from '../service/localstorage.service.js'
...
@@ -120,6 +121,12 @@ import localstorage from '../service/localstorage.service.js'
})
})
})
})
},
},
c
(){
this
.
typearr
.
map
((
item
,
index
)
=>
{
this
.
type
=
item
console
.
log
(
item
)
})
},
getActiveName
()
{
getActiveName
()
{
this
.
menuList
.
map
(
parent
=>
{
this
.
menuList
.
map
(
parent
=>
{
parent
.
child
.
map
(
child
=>
{
parent
.
child
.
map
(
child
=>
{
...
@@ -134,28 +141,34 @@ import localstorage from '../service/localstorage.service.js'
...
@@ -134,28 +141,34 @@ import localstorage from '../service/localstorage.service.js'
})
})
this
.
selectMenu
(
this
.
hName
)
this
.
selectMenu
(
this
.
hName
)
},
},
// 普通用户权限
//普通用户权限
getMenu
(){
// getMenu(){
let
condition
=
localstorage
.
get
(
'
isADMIN
'
)
// let condition=localstorage.get('isADMIN')
let
c
=
JSON
.
parse
(
condition
)
// let c=JSON.parse(condition)
this
.
isadmin
=
c
.
isAdmin
// this.isadmin=c.isAdmin
if
(
this
.
isadmin
==
false
){
// 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
)
this
.
menuList
[
3
].
child
.
splice
(
0
,
1
)
}
}
},
})
// 判断是否为超级管理员
}
// judgeadmin(){
// judeAdmin().then(res=>{
// this.isadmin=res.data.body
// // console.log(this.isadmin)
// })
// }
},
},
mounted
()
{
mounted
()
{
this
.
getmassage
()
this
.
getmassage
()
this
.
getMenu
()
//
this.getMenu()
this
.
getActiveName
()
this
.
getActiveName
()
// this.judgeadmin()
this
.
judgeadmin
()
this
.
c
()
}
}
}
}
</
script
>
</
script
>
...
...
src/page/resume/allResume.vue
View file @
2129c0e2
...
@@ -298,13 +298,13 @@ import Router from 'vue-router';
...
@@ -298,13 +298,13 @@ import Router from 'vue-router';
return
{
return
{
ruleInline
:
{
ruleInline
:
{
ower
:
[
ower
:
[
{
required
:
true
,
pattern
:
this
.
UpdateOWER
!
==
''
,
message
:
'
邀约人不能为空
'
,
trigger
:
'
blur
'
}
{
required
:
true
,
pattern
:
this
.
UpdateOWER
==
''
,
message
:
'
邀约人不能为空
'
,
trigger
:
'
blur
'
}
],
],
time
:
[
time
:
[
{
required
:
true
,
pattern
:
this
.
UpdateTIME
!
==
''
,
message
:
'
面试时间不能为空
'
,
trigger
:
'
blur
'
}
{
required
:
true
,
pattern
:
this
.
UpdateTIME
==
''
,
message
:
'
面试时间不能为空
'
,
trigger
:
'
blur
'
}
],
],
view
:
[
view
:
[
{
required
:
true
,
pattern
:
this
.
UpdateVIEW
!
==
''
,
message
:
'
面试官不能为空
'
,
trigger
:
'
blur
'
}
{
required
:
true
,
pattern
:
this
.
UpdateVIEW
==
''
,
message
:
'
面试官不能为空
'
,
trigger
:
'
blur
'
}
],
],
},
},
modal1
:
false
,
modal1
:
false
,
...
@@ -508,7 +508,7 @@ import Router from 'vue-router';
...
@@ -508,7 +508,7 @@ import Router from 'vue-router';
}
}
})
})
},
},
selectFn2
(
e
,
SID
)
{
selectFn2
(
e
,
SID
,
itemsta
)
{
this
.
ITEMSTA
=
itemsta
this
.
ITEMSTA
=
itemsta
this
.
toseeid
=
SID
this
.
toseeid
=
SID
// 准备约面
// 准备约面
...
@@ -548,7 +548,7 @@ import Router from 'vue-router';
...
@@ -548,7 +548,7 @@ import Router from 'vue-router';
this
.
SearchList
(
this
.
pageT
)
this
.
SearchList
(
this
.
pageT
)
}
}
},
},
selectFn3
(
e
,
SID
)
{
selectFn3
(
e
,
SID
,
itemsta
)
{
this
.
ITEMSTA
=
itemsta
this
.
ITEMSTA
=
itemsta
this
.
toseeid
=
SID
this
.
toseeid
=
SID
// 准备约面
// 准备约面
...
@@ -587,7 +587,7 @@ import Router from 'vue-router';
...
@@ -587,7 +587,7 @@ import Router from 'vue-router';
this
.
SearchList
(
this
.
pageT
)
this
.
SearchList
(
this
.
pageT
)
}
}
},
},
selectFn4
(
e
,
SID
)
{
selectFn4
(
e
,
SID
,
itemsta
)
{
this
.
ITEMSTA
=
itemsta
this
.
ITEMSTA
=
itemsta
this
.
toseeid
=
SID
this
.
toseeid
=
SID
// 准备约面
// 准备约面
...
...
src/page/upload/upload.vue
View file @
2129c0e2
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
</div>
</div>
<Button
@
click=
'uploadBtn'
style=
'width:20%;margin-left:40%;'
type=
'primary'
>
上传
</Button>
<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>
<div>
<h4
style=
"font-size:20px;text-align:center;margin-bottom:20px"
>
上传文件
</h4>
<h4
style=
"font-size:20px;text-align:center;margin-bottom:20px"
>
上传文件
</h4>
<div
v-for=
'(item,index) in dataList'
class=
'process'
:key=
'index'
>
<div
v-for=
'(item,index) in dataList'
class=
'process'
:key=
'index'
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment