Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bims
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙海亮
bims
Commits
bd87deda
Commit
bd87deda
authored
Feb 23, 2022
by
yanglilong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'修改'
parent
75827e7a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
17 deletions
+48
-17
base.js
src/api/apis_moudles/base.js
+1
-0
base.js
src/api/funcs_modules/base.js
+6
-0
request.js
src/api/request.js
+1
-1
forget.vue
src/views/author/forget.vue
+38
-14
companyInfo.vue
src/views/info/components/companyInfo.vue
+2
-2
No files found.
src/api/apis_moudles/base.js
View file @
bd87deda
...
@@ -8,4 +8,5 @@ export default {
...
@@ -8,4 +8,5 @@ export default {
specialtyList
:
"
/backstage/auth/specialtyList
"
,
specialtyList
:
"
/backstage/auth/specialtyList
"
,
coverageCode
:
"
/backstage/auth/coverageMasterList
"
,
coverageCode
:
"
/backstage/auth/coverageMasterList
"
,
getRefcdByRefgrp
:
"
/common/getRefcdByRefgrp
"
,
// 公共获取码表接口
getRefcdByRefgrp
:
"
/common/getRefcdByRefgrp
"
,
// 公共获取码表接口
checkUserEmail
:
"
/backstage/user/checkUserEmail
"
,
// 校验用户邮箱
};
};
src/api/funcs_modules/base.js
View file @
bd87deda
...
@@ -46,6 +46,11 @@ const GETREFCDBYREFGRP = (data) => {
...
@@ -46,6 +46,11 @@ const GETREFCDBYREFGRP = (data) => {
return
req
.
post
(
apis
.
getRefcdByRefgrp
,
data
);
return
req
.
post
(
apis
.
getRefcdByRefgrp
,
data
);
};
};
// 校验用户邮箱
const
CHECKUSEREMAIL
=
(
data
)
=>
{
return
req
.
post
(
apis
.
checkUserEmail
,
data
);
};
// 对象数组
// 对象数组
export
default
{
export
default
{
GETUSERINFO
,
GETUSERINFO
,
...
@@ -56,4 +61,5 @@ export default {
...
@@ -56,4 +61,5 @@ export default {
UPLOADIMG
,
UPLOADIMG
,
GETCOVERAGECODE
,
GETCOVERAGECODE
,
GETREFCDBYREFGRP
,
GETREFCDBYREFGRP
,
CHECKUSEREMAIL
,
};
};
src/api/request.js
View file @
bd87deda
...
@@ -10,7 +10,7 @@ const service = axios.create({
...
@@ -10,7 +10,7 @@ const service = axios.create({
return
status
>=
200
&&
status
<=
504
;
// 合法状态码
return
status
>=
200
&&
status
<=
504
;
// 合法状态码
},
},
baseURL
:
process
.
env
.
VUE_APP_API
,
// 基础请求路径
baseURL
:
process
.
env
.
VUE_APP_API
,
// 基础请求路径
timeout
:
1
0000
,
// 请求超时
timeout
:
6
0000
,
// 请求超时
});
});
// 重复尝试此时
// 重复尝试此时
service
.
defaults
.
retry
=
3
;
service
.
defaults
.
retry
=
3
;
...
...
src/views/author/forget.vue
View file @
bd87deda
...
@@ -111,15 +111,11 @@ export default {
...
@@ -111,15 +111,11 @@ export default {
});
});
},
},
handlerNext
()
{
handlerNext
()
{
this
.
$refs
.
form
.
validateField
(
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
[
"
userName
"
,
"
verificationCode
"
],
(
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
return
false
;
}
this
.
activeStep
=
"
2
"
;
this
.
activeStep
=
"
2
"
;
}
}
);
}
);
},
},
handlerReset
()
{
handlerReset
()
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
...
@@ -130,7 +126,31 @@ export default {
...
@@ -130,7 +126,31 @@ export default {
this
.
_reset
({
userName
,
verificationCode
,
newPwd
});
this
.
_reset
({
userName
,
verificationCode
,
newPwd
});
});
});
},
},
_getVerifyEmail
(
data
)
{
//校验用户邮箱
checkUserEmail
(
data
){
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
$apis
.
CHECKUSEREMAIL
({
userName
:
data
.
userName
})
.
then
((
res
)
=>
{
if
(
res
.
returnCode
===
"
0000
"
)
{
resolve
(
res
.
content
);
}
else
{
this
.
$message
.
error
(
res
.
returnMsg
);
reject
();
}
})
});
},
async
_getVerifyEmail
(
data
)
{
let
email
=
await
this
.
checkUserEmail
(
data
);
if
(
email
){
this
.
$modal
.
confirm
({
title
:
"
发送到邮箱
"
,
content
:
`确认发送至邮箱
${
email
}
?`
,
okText
:
"
确认
"
,
cancelText
:
"
取消
"
,
onOk
:
()
=>
{
this
.
$apis
.
GETVERIFYEMAIL
(
data
).
then
((
res
)
=>
{
this
.
$apis
.
GETVERIFYEMAIL
(
data
).
then
((
res
)
=>
{
if
(
res
.
returnCode
===
"
0000
"
)
{
if
(
res
.
returnCode
===
"
0000
"
)
{
this
.
$message
.
success
(
res
.
returnMsg
||
"
发送成功
"
);
this
.
$message
.
success
(
res
.
returnMsg
||
"
发送成功
"
);
...
@@ -139,6 +159,10 @@ export default {
...
@@ -139,6 +159,10 @@ export default {
}
}
});
});
},
},
onCancel
:
()
=>
{},
});
}
},
_reset
(
data
)
{
_reset
(
data
)
{
this
.
$apis
.
RESETPASSWORD
(
data
).
then
((
res
)
=>
{
this
.
$apis
.
RESETPASSWORD
(
data
).
then
((
res
)
=>
{
if
(
res
.
returnCode
===
"
0000
"
)
{
if
(
res
.
returnCode
===
"
0000
"
)
{
...
...
src/views/info/components/companyInfo.vue
View file @
bd87deda
...
@@ -202,8 +202,8 @@ export default {
...
@@ -202,8 +202,8 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
let
formData
=
{
let
formData
=
{
...
this
.
detailObj
,
...
this
.
detailObj
,
startDate
:
this
.
detailObj
.
startDate
?
moment
(
this
.
detailObj
.
startDate
).
format
(
'
YYYY-MM-DD
'
):
''
,
startDate
:
this
.
detailObj
.
startDate
?
moment
(
this
.
detailObj
.
startDate
).
format
(
'
YYYY-MM-DD
HH:mm:ss
'
):
''
,
endDate
:
this
.
detailObj
.
endDate
?
moment
(
this
.
detailObj
.
endDate
).
format
(
'
YYYY-MM-DD
'
):
''
,
endDate
:
this
.
detailObj
.
endDate
?
moment
(
this
.
detailObj
.
endDate
).
format
(
'
YYYY-MM-DD
HH:mm:ss
'
):
''
,
claimApplicationTemplate
:
this
.
detailObj
.
claimApplicationTemplate
.
length
>
0
?
this
.
detailObj
.
claimApplicationTemplate
[
0
].
url
:
''
,
claimApplicationTemplate
:
this
.
detailObj
.
claimApplicationTemplate
.
length
>
0
?
this
.
detailObj
.
claimApplicationTemplate
[
0
].
url
:
''
,
authApplicationTemplate
:
this
.
detailObj
.
authApplicationTemplate
.
length
>
0
?
this
.
detailObj
.
authApplicationTemplate
[
0
].
url
:
''
,
authApplicationTemplate
:
this
.
detailObj
.
authApplicationTemplate
.
length
>
0
?
this
.
detailObj
.
authApplicationTemplate
[
0
].
url
:
''
,
}
}
...
...
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