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
4dc69e26
Commit
4dc69e26
authored
Oct 25, 2019
by
zhangderong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录账号改造为邮箱登录测试
parent
fb584432
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
132 additions
and
23 deletions
+132
-23
stystem.server.js
src/api/stystem.server.js
+6
-6
login.vue
src/page/login/login.vue
+2
-2
account.vue
src/page/system/account.vue
+112
-11
emailMange.vue
src/page/system/emailMange.vue
+11
-3
http.service.js
src/service/http.service.js
+1
-1
No files found.
src/api/stystem.server.js
View file @
4dc69e26
...
...
@@ -69,9 +69,9 @@ export function getErcode(){
'
Content-Type
'
:
'
application/json
'
,
}})
}
// //下载二维码
// export function downloadErcode(){
// return axios.get(`${sapi}/qrCode/downQrCode`,{headers: {
// 'Content-Type':'application/json',
// }})
// }
\ No newline at end of file
// //修改账户
export
function
updateAccount
(
parmars
){
return
axios
.
post
(
`
${
sapi
}
/api/user/modify/
${
parmars
.
id
}
`
,
parmars
,{
headers
:
{
'
Content-Type
'
:
'
application/json
'
,
}})
}
\ No newline at end of file
src/page/login/login.vue
View file @
4dc69e26
...
...
@@ -14,7 +14,7 @@
<div
class=
"login_content"
>
<Form
ref=
"formInline"
:model=
"formInline"
:rules=
"ruleInline"
style=
"height:161px"
>
<FormItem
prop=
"user"
style=
"height:60px"
>
<Input
type=
"text"
v-model=
"formInline.user"
placeholder=
"请输入账号"
class=
"wordStyle"
size=
"large"
>
<Input
type=
"text"
v-model=
"formInline.user"
placeholder=
"请输入
企业邮箱
账号"
class=
"wordStyle"
size=
"large"
>
<Icon
type=
"ios-person-outline"
slot=
"prepend"
></Icon>
</Input>
</FormItem>
...
...
@@ -53,7 +53,7 @@ export default {
},
ruleInline
:
{
user
:
[
{
required
:
true
,
pattern
:
/
^
[
1
][
3,4,5,7,8,6,9
][
0-9
]{9}
$/
,
message
:
'
请输入正确的手机
号
'
,
trigger
:
'
blur
'
}
{
required
:
true
,
pattern
:
/
\S
+@quantgroup.cn/
,
message
:
'
请输入正确的邮箱账
号
'
,
trigger
:
'
blur
'
}
],
password
:
[
{
required
:
true
,
message
:
'
请输入正确的密码
'
,
trigger
:
'
blur
'
},
...
...
src/page/system/account.vue
View file @
4dc69e26
...
...
@@ -5,11 +5,14 @@
<span
style=
"font-size:18px;color:#2d8cf0;margin-left:18px;"
>
新增账户
</span>
<span
style=
"margin-left:10px;color:Grey"
>
以下内容均为必填项
</span>
</p>
<Form
:label-width=
"130"
:model=
"formInline"
:rules=
"ruleInline"
>
<FormItem
label=
"配置登录账号:"
style=
"margin-top:1%"
prop=
"PhoneNumber"
>
<Form
:label-width=
"100"
:model=
"formInline"
:rules=
"ruleInline"
>
<FormItem
label=
"登录账号"
style=
"margin-top:1%"
prop=
"emailNumber"
>
<Input
placeholder=
"请输入企业邮箱"
style=
"width:300px"
v-model=
"formInline.emailNumber"
/>
</FormItem>
<FormItem
label=
"手机号码"
style=
"margin-top:1%"
prop=
"PhoneNumber"
>
<Input
placeholder=
"请输入正确的手机号"
style=
"width:300px"
v-model=
"formInline.PhoneNumber"
/>
</FormItem>
<FormItem
label=
"
绑定真实姓名:
"
style=
"margin-top:1%"
prop=
"PerName"
>
<FormItem
label=
"
真实姓名
"
style=
"margin-top:1%"
prop=
"PerName"
>
<Input
placeholder=
"请输入真实姓名"
style=
"width:300px"
v-model=
"formInline.PerName"
:maxlength=
"5"
/>
</FormItem>
</Form>
...
...
@@ -38,8 +41,10 @@
<input
type=
'checkbox'
name=
'checkboxinput'
class=
'input-checkbox'
v-model=
'checkboxList'
:value=
"item.id"
style=
"margin-left:25px;cursor:pointer"
@
click=
"delateArr(item.id)"
>
<span
style=
"margin-left:5px"
>
{{
item
.
userName
}}
</span>
<span
style=
"margin-left:35px"
>
{{
item
.
userCode
}}
</span>
<span
style=
"margin-left:35px"
>
{{
item
.
phone
}}
</span>
<span
style=
"margin-left:35px"
>
{{
item
.
createTime
}}
</span>
<span
style=
"margin-left:35px;color:#2d8cf0;cursor:pointer"
@
click=
"recoveryModal(item.id)"
>
恢复初始密码
</span>
<span
style=
"margin-left:35px;color:#2d8cf0;cursor:pointer"
@
click=
"updateModal(item)"
>
修改
</span>
<span
style=
"margin-left:35px;color:#2d8cf0;cursor:pointer"
@
click=
"delateMaodal(item.id)"
>
删除
</span>
</div>
<div
style=
"height:10px;background:white;width:100%;"
></div>
...
...
@@ -61,6 +66,27 @@
<Button
type=
'primary'
@
click=
'modal1=false'
>
取消
</Button>
<Button
type=
'primary'
@
click=
"recovery()"
>
确定
</Button>
</div>
</Modal>
<Modal
v-model=
"modal6"
:closable=
"false"
width=
'450px'
>
<h3
style=
"text-align:center;font-size:14px"
>
修改信息
</h3>
<Form
:label-width=
"100"
:model=
"formInline"
:rules=
"ruleInline"
class=
"updateClassModal"
>
<FormItem
label=
"登录账号"
style=
"margin-top:1%"
prop=
"emailNumber"
>
<Input
placeholder=
"请输入企业邮箱"
style=
"width:300px;"
v-model=
"formInline.updateemailNumber"
disabled
/>
</FormItem>
<FormItem
label=
"手机号码"
style=
"margin-top:1%"
prop=
"updatePhoneNumber"
>
<Input
placeholder=
"请输入正确的手机号"
style=
"width:300px;"
v-model=
"formInline.updatePhoneNumber"
/>
</FormItem>
<FormItem
label=
"真实姓名"
style=
"margin-top:1%"
prop=
"updatePerName"
>
<Input
placeholder=
"请输入真实姓名"
style=
"width:300px;"
v-model=
"formInline.updatePerName"
:maxlength=
"5"
/>
</FormItem>
</Form>
<div
slot=
'footer'
style=
"text-align:center"
>
<Button
type=
'primary'
@
click=
'modal6=false'
>
取消
</Button>
<Button
type=
'primary'
@
click=
"confireUpdate"
>
确定
</Button>
</div>
</Modal>
<!-- 删除当前的账户 -->
<Modal
...
...
@@ -98,7 +124,7 @@
</div>
</
template
>
<
script
>
import
{
queryaccountList
,
addAccount
,
Delateaccount
,
delateAllAccount
,
recoveryPassword
}
from
'
../../api/stystem.server.js
'
import
{
queryaccountList
,
addAccount
,
Delateaccount
,
delateAllAccount
,
recoveryPassword
,
updateAccount
}
from
'
../../api/stystem.server.js
'
export
default
{
data
(){
return
{
...
...
@@ -106,8 +132,10 @@ export default {
modal2
:
false
,
modal3
:
false
,
modal4
:
false
,
modal6
:
false
,
checkboxList
:[],
checked
:
false
,
updateAccountId
:
''
,
pageT
:
''
,
userName
:
''
,
userCode
:
''
,
...
...
@@ -126,7 +154,11 @@ export default {
},
formInline
:
{
PhoneNumber
:
''
,
PerName
:
''
PerName
:
''
,
emailNumber
:
''
,
updatePhoneNumber
:
''
,
updatePerName
:
''
,
updateemailNumber
:
''
},
ruleInline
:
{
PhoneNumber
:
[
...
...
@@ -135,7 +167,17 @@ export default {
PerName
:
[
{
required
:
true
,
message
:
'
请输入真实的姓名
'
,
trigger
:
'
blur
'
},
{
type
:
'
string
'
,
message
:
''
,
trigger
:
'
blur
'
}
]
],
updateemailNumber
:
[
{
required
:
true
,
pattern
:
/^
[
1
][
3,4,5,7,8,6,9
][
0-9
]{9}
$/
,
message
:
'
请输入正确的手机号
'
,
trigger
:
'
blur
'
}
],
updatePerName
:
[
{
required
:
true
,
message
:
'
请输入真实的姓名
'
,
trigger
:
'
blur
'
},
{
type
:
'
string
'
,
message
:
''
,
trigger
:
'
blur
'
}
],
emailNumber
:
[
{
required
:
true
,
pattern
:
/
\S
+@quantgroup.cn/
,
message
:
'
请输入正确的邮箱账号
'
,
trigger
:
'
blur
'
}
],
},
ajaxData
:[],
checkData
:
[]
,
// 双向数据绑定的数组
...
...
@@ -169,16 +211,60 @@ export default {
});
}
},
// 修改
updateModal
(
item
){
this
.
modal6
=
true
this
.
updateAccountId
=
item
.
id
this
.
formInline
.
updateemailNumber
=
item
.
email
this
.
formInline
.
updatePhoneNumber
=
item
.
userCode
this
.
formInline
.
updatePerName
=
item
.
userName
},
// 确认修改
confireUpdate
(){
let
parmars
=
{
id
:
this
.
updateAccountId
,
userCode
:
this
.
formInline
.
updateemailNumber
,
userName
:
this
.
formInline
.
updatePerName
,
phone
:
this
.
formInline
.
updatePhoneNumber
}
if
(
this
.
formInline
.
updatePhoneNumber
==
''
||
this
.
formInline
.
updatePerName
==
''
){
this
.
$Notice
.
error
({
title
:
'
提示
'
,
desc
:
'
请您填写正确的手机号码或姓名
'
,
duration
:
2
});
return
}
if
(
!
(
/^
[
1
][
3,4,5,7,8,6,9
][
0-9
]{9}
$/
.
test
(
this
.
formInline
.
updatePhoneNumber
))){
this
.
$Notice
.
error
({
title
:
'
提示
'
,
desc
:
'
请您填写正确的手机号
'
,
duration
:
2
});
return
}
updateAccount
(
parmars
).
then
(
res
=>
{
if
(
res
.
data
.
success
==
true
){
this
.
$Notice
.
success
({
title
:
'
提示
'
,
desc
:
'
修改成功
'
,
duration
:
2
});
}
this
.
modal6
=
false
})
},
//添加账户
addacount
(){
let
parmars
=
{
userCode
:
this
.
formInline
.
PhoneNumber
,
userName
:
this
.
formInline
.
PerName
userCode
:
this
.
formInline
.
emailNumber
,
userName
:
this
.
formInline
.
PerName
,
phone
:
this
.
formInline
.
PhoneNumber
}
if
(
this
.
formInline
.
PhoneNumber
==
''
||
this
.
formInline
.
PerName
==
''
){
if
(
this
.
formInline
.
PhoneNumber
==
''
||
this
.
formInline
.
PerName
==
''
||
this
.
formInline
.
emailNumber
==
''
){
this
.
$Notice
.
error
({
title
:
'
提示
'
,
desc
:
'
请您填写正确的
手机
号或姓名
'
,
desc
:
'
请您填写正确的
账
号或姓名
'
,
duration
:
2
});
return
...
...
@@ -192,6 +278,14 @@ export default {
});
return
}
if
(
!
(
/
\S
+@quantgroup.cn/
.
test
(
this
.
formInline
.
emailNumber
))){
this
.
$Notice
.
error
({
title
:
'
提示
'
,
desc
:
'
请您填写正确邮箱账号
'
,
duration
:
2
});
return
}
addAccount
(
parmars
).
then
(
res
=>
{
if
(
res
.
data
.
success
==
true
){
this
.
$Notice
.
success
({
...
...
@@ -202,6 +296,7 @@ export default {
this
.
SearchList
()
this
.
formInline
.
PhoneNumber
=
''
this
.
formInline
.
PerName
=
''
this
.
formInline
.
emailNumber
=
''
}
if
(
res
.
data
.
body
.
code
==
0
){
this
.
Massage
=
res
.
data
.
body
.
message
...
...
@@ -212,6 +307,7 @@ export default {
});
this
.
formInline
.
PhoneNumber
=
''
this
.
formInline
.
PerName
=
''
this
.
formInline
.
emailNumber
=
''
return
}
})
...
...
@@ -347,7 +443,7 @@ export default {
overflow
:
hidden
;
}
.addAcount
{
height
:
2
1
0px
;
height
:
2
4
0px
;
width
:
100%
;
}
.pageBottom
{
...
...
@@ -384,3 +480,8 @@ export default {
display
:
inline-block
;
}
</
style
>
<
style
>
.updateClassModal
.ivu-input
{
color
:
grey
!important
}
</
style
>
src/page/system/emailMange.vue
View file @
4dc69e26
...
...
@@ -3,7 +3,7 @@
<div
class=
"addEmail"
>
<p
style=
"margin-top:10px"
>
<span
style=
"font-size:18px;color:#2d8cf0;margin-left:18px"
>
新增接收邮箱
</span>
<span
style=
"margin-left:10px;color:Grey"
>
绑定邮箱以接收简历
</span>
<span
style=
"margin-left:10px;color:Grey"
>
绑定邮箱以接收简历
,仅可绑定一个邮箱
</span>
</p>
<Form
:label-width=
"100"
:model=
"formInline"
:rules=
"ruleInline"
>
<FormItem
label=
"邮箱账号"
style=
"margin-top:20px"
prop=
"emailNumber"
>
...
...
@@ -20,7 +20,7 @@
<FormItem
label=
"所属人"
style=
"margin-top:20px; position: absolute;top:110px;left: 410px"
prop=
"UserName"
:label-width=
"180"
>
<Input
placeholder=
"请输入所属者正确姓名"
style=
"width:300px"
v-model=
"formInline.UserName"
:maxlength=
"5"
/>
</FormItem>
<
span
type=
"primary"
style=
"line-height:30px;text-align:center; width:110px;height:30px;position: absolute;top:130px;left: 910px;border-radius: 5px;background:rgb(0, 146, 255);color:rgb(255,255,255);cursor:pointer"
@
click=
"bindingSynchronizat"
>
绑定并开始同步
</spa
n>
<
Button
type=
"primary"
style=
"position: absolute;top:130px;left: 910px;"
:disabled=
'disabled'
@
click=
"bindingSynchronizat"
>
绑定并开始同步
</Butto
n>
</Form>
</div>
<div
class=
"Emailmange"
>
...
...
@@ -69,7 +69,7 @@
<h3
style=
"text-align:center"
>
提示
</h3>
<p
style=
"height:30px;line-height:30px"
>
同步完成,如密码发生改变,请及时点击
<br><span>
修改
</span>
来重置密码
</p>
<!--
<h2
style=
"text-align:center;font-size:18px;color:#2d8cf0;height:40px;line-height:40px;margin-top:30px"
@
click=
"pushlist"
>
我已知晓
</h2>
-->
<Button
type=
"primary"
style=
"margin:40px 0 0 80px"
@
click=
"
modal2=false
"
>
我已知晓
</Button>
<Button
type=
"primary"
style=
"margin:40px 0 0 80px"
@
click=
"
iKnow
"
>
我已知晓
</Button>
</Modal>
<!-- 同步绑定 -->
<Modal
...
...
@@ -165,6 +165,7 @@ export default {
Tblengs
:
''
,
checkboxList
:[],
checked
:
false
,
disabled
:
false
,
pageIndex
:
1
,
pageSize
:
30
,
totalSize
:
null
,
...
...
@@ -217,6 +218,7 @@ export default {
});
return
}
this
.
disabled
=
true
this
.
modal3
=
true
let
parmars
=
{
emailName
:
this
.
formInline
.
emailNumber
,
...
...
@@ -233,9 +235,11 @@ export default {
this
.
formInline
.
UserName
=
''
this
.
DATA
=
''
this
.
SearchList
()
// this.disabled=false
}
if
(
res
.
data
.
success
==
false
){
this
.
modal3
=
false
this
.
disabled
=
false
this
.
Massage
=
res
.
data
.
body
.
message
this
.
$Notice
.
error
({
title
:
'
提示
'
,
...
...
@@ -249,6 +253,10 @@ export default {
this
.
formInline
.
emailPsd
=
''
})
},
iKnow
(){
this
.
modal2
=
false
,
this
.
disabled
=
false
},
//选择同步的时间
selectTime
(
b
){
this
.
DATA
=
b
...
...
src/service/http.service.js
View file @
4dc69e26
...
...
@@ -33,7 +33,7 @@ function tryHideFullScreenLoading() {
},
200
)
}
}
let
needLoading
=
[
'
resume/findListByQueryVO
'
,
'
sendMail/sendEmailTemplate
'
,
'
resume/forwardResume
'
,
'
interview/findListByQueryVO
'
]
let
needLoading
=
[
'
resume/findListByQueryVO
'
,
'
sendMail/sendEmailTemplate
'
,
'
resume/forwardResume
'
,
'
interview/findListByQueryVO
'
,
'
resume/delete
'
]
instance
.
interceptors
.
request
.
use
(
function
(
config
)
{
// 在发送请求之前做些什么
if
(
!
config
.
headers
[
'
Content-Type
'
])
{
...
...
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