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
f4250c06
Commit
f4250c06
authored
Sep 12, 2019
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
转发面试官功能
parent
f1880f06
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
623 additions
and
53 deletions
+623
-53
resume.server.js
src/api/resume.server.js
+10
-0
main.js
src/main.js
+2
-0
allResume.vue
src/page/resume/allResume.vue
+277
-35
channel.vue
src/page/resume/channel.vue
+264
-14
actions.js
src/store/actions.js
+8
-2
index.js
src/store/index.js
+3
-1
muationsType.js
src/store/muationsType.js
+5
-0
mutations.js
src/store/mutations.js
+54
-1
No files found.
src/api/resume.server.js
View file @
f4250c06
...
...
@@ -121,3 +121,13 @@ export function sendEmail(parmars) {
// 'Content-Type':'application/json'
}})
}
export
function
findCompanyEmailByKey
(
key
)
{
//公司通讯录
return
axios
.
get
(
`
${
sapi
}
/api/companyEmail/findCompanyEmailByKey?key=
${
key
}
`
)
}
// 转发邮箱通知
export
function
forwardResume
(
params
)
{
return
axios
.
post
(
`
${
sapi
}
/api/resume/forwardResume`
,
params
,
{
headers
:
{
'
Content-Type
'
:
'
application/json
'
}})
}
src/main.js
View file @
f4250c06
...
...
@@ -8,6 +8,7 @@ import router from './router';
import
initRouter
from
'
./service/init.service.js
'
import
'
vue-happy-scroll/docs/happy-scroll.css
'
import
{
Notice
}
from
'
iview
'
import
store
from
'
../src/store
'
Vue
.
use
(
iView
);
Vue
.
use
(
Notice
)
Vue
.
config
.
productionTip
=
false
;
...
...
@@ -16,6 +17,7 @@ initRouter.init(router)
new
Vue
({
el
:
'
#app
'
,
router
,
store
,
components
:
{
App
},
template
:
'
<App/>
'
,
});
src/page/resume/allResume.vue
View file @
f4250c06
This diff is collapsed.
Click to expand it.
src/page/resume/channel.vue
View file @
f4250c06
This diff is collapsed.
Click to expand it.
src/store/actions.js
View file @
f4250c06
...
...
@@ -4,8 +4,14 @@ let action = {
cookieTipsShow
({
commit
},
value
)
{
commit
(
types
.
COOKIE_SHOW
,
value
)
},
cookieTipsHide
({
commit
},
value
)
{
commit
(
types
.
COOKIE_HIDE
,
value
)
addInterviewee
({
commit
},
value
)
{
commit
(
types
.
ADD_INTERVIEWEE
,
value
)
},
removeInterviewee
({
commit
},
value
)
{
commit
(
types
.
REMOVE_INTERVIEWEE
,
value
)
},
clearInterviewee
({
commit
},
value
)
{
commit
(
types
.
CLEAR_INTERVIEWEE
,
value
)
}
}
export
default
action
\ No newline at end of file
src/store/index.js
View file @
f4250c06
...
...
@@ -6,7 +6,9 @@ import actions from './actions.js'
Vue
.
use
(
Vuex
)
const
state
=
{
cookieTips
:
false
cookieTips
:
false
,
interviewee
:
[],
channelInterviewee
:
[],
}
export
default
new
Vuex
.
Store
({
mutations
,
...
...
src/store/muationsType.js
View file @
f4250c06
export
const
COOKIE_SHOW
=
'
COOKIE_SHOW
'
export
const
COOKIE_HIDE
=
'
COOKIE_HIDE
'
export
const
ADD_INTERVIEWEE
=
'
ADD_INTERVIEWEE
'
export
const
REMOVE_INTERVIEWEE
=
'
REMOVE_INTERVIEWEE
'
export
const
CLEAR_INTERVIEWEE
=
'
CLEAR_INTERVIEWEE
'
src/store/mutations.js
View file @
f4250c06
import
{
COOKIE_SHOW
,
COOKIE_HIDE
}
from
'
./muationsType
'
import
{
COOKIE_SHOW
,
COOKIE_HIDE
,
ADD_INTERVIEWEE
,
REMOVE_INTERVIEWEE
,
CLEAR_INTERVIEWEE
}
from
'
./muationsType
'
export
default
{
[
COOKIE_SHOW
]
(
state
,
value
)
{
state
.
cookieTips
=
value
||
true
},
[
COOKIE_HIDE
](
state
,
value
)
{
state
.
cookieTips
=
value
||
false
},
[
ADD_INTERVIEWEE
]
(
state
,
object
)
{
let
flag
=
false
let
data
=
object
.
data
if
(
object
.
type
==
'
channel
'
)
{
console
.
log
(
data
)
state
.
channelInterviewee
.
map
(
item
=>
{
if
(
data
&&
item
.
id
==
data
.
id
)
{
flag
=
true
return
}
})
if
(
!
flag
)
{
state
.
channelInterviewee
.
push
(
data
)
}
}
else
{
state
.
interviewee
.
map
(
item
=>
{
if
(
data
&&
item
.
id
==
data
.
id
)
{
flag
=
true
return
}
})
if
(
!
flag
)
{
state
.
interviewee
.
push
(
data
)
}
}
},
[
REMOVE_INTERVIEWEE
](
state
,
object
)
{
let
data
=
object
.
data
if
(
object
.
type
==
'
channel
'
)
{
state
.
channelInterviewee
.
map
((
item
,
index
)
=>
{
if
(
data
&&
item
.
id
==
data
.
id
)
{
state
.
channelInterviewee
.
splice
(
index
,
1
)
}
})
}
else
{
state
.
interviewee
.
map
((
item
,
index
)
=>
{
if
(
data
&&
item
.
id
==
data
.
id
)
{
state
.
interviewee
.
splice
(
index
,
1
)
}
})
}
},
[
CLEAR_INTERVIEWEE
](
state
,
object
)
{
let
type
=
object
.
type
if
(
type
==
'
channel
'
)
{
state
.
channelInterviewee
=
[]
console
.
log
(
'
===
'
)
}
else
{
state
.
interviewee
=
[]
}
}
}
\ 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