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
3847ca83
Commit
3847ca83
authored
Aug 21, 2019
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改路由跳转问题
parent
f4f653d2
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
41 additions
and
43 deletions
+41
-43
home.server.js
src/api/home.server.js
+4
-8
login.server.js
src/api/login.server.js
+1
-2
resume.server.js
src/api/resume.server.js
+5
-10
home.vue
src/components/home.vue
+4
-1
login.vue
src/page/login/login.vue
+3
-1
resumeDetail.vue
src/page/resume/resumeDetail.vue
+14
-14
index.js
src/router/index.js
+1
-5
init.service.js
src/service/init.service.js
+2
-2
localstorage.service.js
src/service/localstorage.service.js
+7
-0
No files found.
src/api/home.server.js
View file @
3847ca83
...
...
@@ -7,29 +7,25 @@ import qs from 'qs'
export
function
getpersonMassage
(
params
)
{
// params=qs.stringify(params)
return
axios
.
get
(
`
${
sapi
}
/api/login/me`
,
params
,{
headers
:
{
'
Content-Type
'
:
'
application/json
'
,
'
X-Requested-With
'
:
'
XMLHttpRequest
'
'
Content-Type
'
:
'
application/json
'
}})
}
// 用户退出
export
function
loginOUT
()
{
// params=qs.stringify(params)
return
axios
.
get
(
`
${
sapi
}
/api/login/logout`
,{
headers
:
{
'
Content-Type
'
:
'
application/json
'
,
'
X-Requested-With
'
:
'
XMLHttpRequest
'
'
Content-Type
'
:
'
application/json
'
}})
}
//通过某一来源查询简历信息
export
function
adoptOneSeeResumeList
(
parmars
)
{
return
axios
.
post
(
`
${
sapi
}
/api/resume/findListBySource`
,
parmars
,{
headers
:
{
'
Content-Type
'
:
'
application/json
'
,
'
X-Requested-With
'
:
'
XMLHttpRequest
'
'
Content-Type
'
:
'
application/json
'
}})
}
//通过渠道机简历信息
export
function
getChannelMassage
()
{
return
axios
.
get
(
`
${
sapi
}
/api/resume/getSourceList`
,{
headers
:
{
'
Content-Type
'
:
'
application/json
'
,
'
X-Requested-With
'
:
'
XMLHttpRequest
'
'
Content-Type
'
:
'
application/json
'
}})
}
\ No newline at end of file
src/api/login.server.js
View file @
3847ca83
...
...
@@ -7,8 +7,7 @@ import qs from 'qs'
export
function
login
(
params
)
{
// params=qs.stringify(params)
return
axios
.
post
(
`
${
sapi
}
/api/login/doLogin`
,
params
,{
headers
:
{
'
Content-Type
'
:
'
application/json
'
,
'
X-Requested-With
'
:
'
XMLHttpRequest
'
'
Content-Type
'
:
'
application/json
'
}})
}
//修改密码
...
...
src/api/resume.server.js
View file @
3847ca83
...
...
@@ -19,8 +19,7 @@ export function downloadone (parmars) {
// 搜索
export
function
sousuoList
(
parmars
)
{
return
axios
.
post
(
`
${
sapi
}
/api/resume/findListByQueryVO`
,
parmars
,{
headers
:
{
'
Content-Type
'
:
'
application/json
'
,
'
X-Requested-With
'
:
'
XMLHttpRequest
'
'
Content-Type
'
:
'
application/json
'
}})
}
//查看简历详情页
...
...
@@ -51,8 +50,7 @@ export function OPTION (parmars) {
// 删除简历
export
function
deleteREsume
(
deleteallArr
)
{
return
axios
.
post
(
`
${
sapi
}
/api/resume/delete`
,
JSON
.
stringify
(
deleteallArr
),{
headers
:
{
'
Content-Type
'
:
'
application/json
'
,
'
X-Requested-With
'
:
'
XMLHttpRequest
'
'
Content-Type
'
:
'
application/json
'
}})
}
// 单条下载简历
...
...
@@ -84,21 +82,18 @@ export function recodeLIST (parmars) {
//通过某一来源查询简历信息
export
function
adoptOneSeeResumeList
(
parmars
)
{
return
axios
.
post
(
`
${
sapi
}
/api/resume/findListBySource`
,
parmars
,{
headers
:
{
'
Content-Type
'
:
'
application/json
'
,
'
X-Requested-With
'
:
'
XMLHttpRequest
'
'
Content-Type
'
:
'
application/json
'
}})
}
// 新增约面信息
export
function
addinterview
(
parmars
)
{
return
axios
.
post
(
`
${
sapi
}
/api/resumeInterview/add`
,
parmars
,{
headers
:
{
'
Content-Type
'
:
'
application/json
'
,
'
X-Requested-With
'
:
'
XMLHttpRequest
'
'
Content-Type
'
:
'
application/json
'
}})
}
// 修改流程状态
export
function
updatastatus
(
parmars
)
{
return
axios
.
post
(
`
${
sapi
}
/api/resumeFlow/uploadStatus/
${
parmars
.
id
}
/
${
parmars
.
status
}
`
,{
headers
:
{
'
Content-Type
'
:
'
application/json
'
,
'
X-Requested-With
'
:
'
XMLHttpRequest
'
'
Content-Type
'
:
'
application/json
'
}})
}
\ No newline at end of file
src/components/home.vue
View file @
3847ca83
...
...
@@ -36,6 +36,7 @@
</template>
<
script
>
import
{
getpersonMassage
,
loginOUT
,
adoptOneSeeResumeList
,
getChannelMassage
}
from
'
../api/home.server.js
'
import
localstorage
from
'
../service/localstorage.service.js
'
export
default
{
data
()
{
return
{
...
...
@@ -99,6 +100,8 @@ import {getpersonMassage,loginOUT,adoptOneSeeResumeList,getChannelMassage} from
loginOut
(){
loginOUT
().
then
(
res
=>
{
if
(
res
.
data
.
success
==
true
){
localstorage
.
remove
(
'
token
'
)
localstorage
.
remove
(
'
isADMIN
'
)
this
.
$router
.
push
(
'
/login
'
)
}
})
...
...
@@ -132,7 +135,7 @@ import {getpersonMassage,loginOUT,adoptOneSeeResumeList,getChannelMassage} from
},
// 普通用户权限
getMenu
(){
let
condition
=
local
Storage
.
getItem
(
'
isADMIN
'
)
let
condition
=
local
storage
.
get
(
'
isADMIN
'
)
this
.
isadmin
=
condition
if
(
condition
==
'
false
'
){
this
.
menuList
[
3
].
child
.
splice
(
0
,
1
)
...
...
src/page/login/login.vue
View file @
3847ca83
...
...
@@ -39,6 +39,7 @@
<
script
>
import
{
login
}
from
'
../../api/login.server.js
'
import
localstorage
from
'
../../service/localstorage.service.js
'
export
default
{
data
()
{
return
{
...
...
@@ -85,8 +86,9 @@ export default {
}
if
(
res
.
data
.
success
==
true
){
this
.
ISIDMIN
=
res
.
data
.
body
localstorage
.
set
(
'
token
'
,
res
.
data
.
body
.
token
)
this
.
$router
.
push
({
name
:
"
allResume
"
})
local
Storage
.
setItem
(
'
isADMIN
'
,
JSON
.
stringify
(
this
.
ISIDMIN
))
local
storage
.
set
(
'
isADMIN
'
,
JSON
.
stringify
(
this
.
ISIDMIN
))
return
}
if
(
res
.
data
.
success
==
false
){
...
...
src/page/resume/resumeDetail.vue
View file @
3847ca83
...
...
@@ -7,30 +7,30 @@
<span
style=
"border-radius:5px;width:80px;height:30px;background:rgba(0,146,255,1); position: absolute;left:75%;line-height:30px;text-align:center;font-size:20px;color:#FFFFFF"
@
click=
"downloadONE(downresume)"
>
下载
</span>
</p>
<div
style=
"width:40%;height:250px;float:left;margin-left:60px"
>
<span
class=
"userD"
>
姓名:
{{
resume
.
ownerName
}}
</span><br>
<span
class=
"userD"
>
联系电话:
{{
resume
.
ownerMobile
}}
</span><br>
<span
class=
"userD"
>
电子邮箱:
{{
resume
.
email
}}
</span><br>
<span
class=
"userD"
>
所在地:
{{
resume
.
locationCity
}}
</span><br>
<span
class=
"userD"
>
姓名:
{{
resume
&&
resume
.
ownerName
}}
</span><br>
<span
class=
"userD"
>
联系电话:
{{
resume
&&
resume
.
ownerMobile
}}
</span><br>
<span
class=
"userD"
>
电子邮箱:
{{
resume
&&
resume
.
email
}}
</span><br>
<span
class=
"userD"
>
所在地:
{{
resume
&&
resume
.
locationCity
}}
</span><br>
</div>
<div
style=
"float:left;height:250px;width:40%"
>
<span
class=
"ageD"
>
年龄:
{{
resume
.
ownerAge
}}
岁
</span><br>
<span
class=
"ageD"
>
职位:
{{
resume
.
ownerExpectTitles
}}
</span><br>
<span
class=
"ageD"
>
学历:
{{
resume
.
ownerHighestDegree
}}
</span><br>
<span
class=
"ageD"
>
经验:
{{
resume
.
workYearsOriginal
}}
年
</span><br>
<span
class=
"ageD"
>
年龄:
{{
resume
&&
resume
.
ownerAge
}}
岁
</span><br>
<span
class=
"ageD"
>
职位:
{{
resume
&&
resume
.
ownerExpectTitles
}}
</span><br>
<span
class=
"ageD"
>
学历:
{{
resume
&&
resume
.
ownerHighestDegree
}}
</span><br>
<span
class=
"ageD"
>
经验:
{{
resume
&&
resume
.
workYearsOriginal
}}
年
</span><br>
</div>
</div>
<div
style=
"float:left;width:100%"
>
<p
style=
"width:90%;height:30px;line-height30px;background:rgba(0,146,255,1);"
>
<img
src=
"https://o7oe0d6qz.qnssl.com/image/qiuzhi.png"
alt=
""
style=
"width:29px;height:20px;margin-left:20px;vertical-align:middle;margin-top:-7px"
>
<span
style=
"font-size:18px;margin:5px 0 0 5px;color:#FFFFFF"
>
求职状态:
{{
resume
.
statusMessage
}}
</span>
<span
style=
"font-size:18px;margin:5px 0 0 5px;color:#FFFFFF"
>
求职状态:
{{
resume
&&
resume
.
statusMessage
}}
</span>
</p>
<div
style=
"width:40%;height:150px;float:left;margin-left:60px"
>
<span
class=
"qiwangzhiye"
>
期望行业:
{{
resume
.
industries
}}
</span><br>
<span
class=
"qiwangzhiye"
>
期望职位:
{{
resume
.
expectTitles
}}
</span>
<span
class=
"qiwangzhiye"
>
期望行业:
{{
resume
&&
resume
.
industries
}}
</span><br>
<span
class=
"qiwangzhiye"
>
期望职位:
{{
resume
&&
resume
.
expectTitles
}}
</span>
</div>
<div
style=
"width:40%;height:150px;float:left;"
>
<span
class=
"noneyD"
>
期望薪资:
{{
resume
.
expectSalary
}}
</span><br>
<span
class=
"noneyD"
>
期望地点:
{{
resume
.
city
}}
</span>
<span
class=
"noneyD"
>
期望薪资:
{{
resume
&&
resume
.
expectSalary
}}
</span><br>
<span
class=
"noneyD"
>
期望地点:
{{
resume
&&
resume
.
city
}}
</span>
</div>
</div>
<div
class=
"workExperience"
style=
"float:left;width:100%"
>
...
...
@@ -101,7 +101,7 @@
</p>
<div>
<p
style=
"margin-top:30px;margin-left:60px;font-size:15px;width:80%;line-height:30px"
>
{{
resume
.
selfEvaluate
}}
{{
resume
&&
resume
.
selfEvaluate
}}
</p>
</div>
</div>
...
...
src/router/index.js
View file @
3847ca83
...
...
@@ -83,11 +83,7 @@ export default new Router({
path
:
'
/upload
'
,
name
:
'
upload
'
,
component
:
upload
},{
path
:
'
/resumeDetail
'
,
name
:
'
resumeDetail
'
,
component
:
resumeDetail
},
}
]
},
],
...
...
src/service/init.service.js
View file @
3847ca83
import
Cookie
from
'
./cooki
e.service.js
'
import
localstorage
from
'
./localstorag
e.service.js
'
export
default
{
init
:
function
(
router
)
{
router
.
beforeEach
((
to
,
form
,
next
)
=>
{
let
token
=
Cookie
.
get
(
'
quantgroup_
token
'
)
let
token
=
localstorage
.
get
(
'
token
'
)
if
(
!
token
&&
to
.
name
!==
'
login
'
&&
to
.
name
!==
'
text
'
)
{
window
.
location
.
href
=
`
${
window
.
location
.
origin
}
/login`
return
...
...
src/service/localstorage.service.js
0 → 100644
View file @
3847ca83
export
default
{
set
:
function
(
name
,
value
)
{
window
.
localStorage
.
setItem
(
name
,
value
)},
get
:
function
(
name
)
{
return
window
.
localStorage
.
getItem
(
name
)
},
remove
:
function
(
name
)
{
window
.
localStorage
.
removeItem
(
name
)}
}
\ No newline at end of file
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