Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
pingan-life-index-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
1c1dc6cf
authored
2019-12-27 15:31:53 +0800
by
joe
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
19b1e147
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
src/pages/custom-service/components/policy-change-information.js
src/pages/infomation-improve/infomation-improve.js
src/pages/custom-service/components/policy-change-information.js
View file @
1c1dc6c
import
{
mapState
}
from
"vuex"
;
import
api
from
'@/api/api'
import
{
formdata
,
...
...
@@ -50,6 +52,9 @@ export default {
modalComp
},
computed
:
{
...
mapState
({
userInfo
:
state
=>
state
.
userInfo
}),
locale
()
{
return
this
.
$i18n
.
locale
||
'tc'
;
},
...
...
@@ -190,6 +195,11 @@ export default {
param
.
policies
=
policies
;
httpPost
({
url
:
api
.
updatePolicyInfo
,
data
:
param
,
sid
:
true
}).
then
(
res
=>
{
if
(
this
.
isOwner
&&
param
.
name
)
{
let
userInfo
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
userInfo
));
userInfo
.
name
=
param
.
name
;
this
.
$store
.
commit
(
"SET_USER_INFO"
,
userInfo
);
}
this
.
loading
=
false
;
this
.
showModal
(
this
.
i18n
.
policyChangeInformation
.
success
);
}).
catch
(
err
=>
{
...
...
src/pages/infomation-improve/infomation-improve.js
View file @
1c1dc6c
...
...
@@ -223,9 +223,11 @@ export default {
message
=
this
.
i18n
.
infomationImprove
.
successMsg
;
let
path
=
this
.
$route
.
query
.
c
||
"/"
;
this
.
targetPath
=
path
;
this
.
userInfo
.
hadFullInfo
=
1
;
this
.
userInfo
.
name
=
this
.
information
.
lastName
+
this
.
information
.
firstName
;
this
.
$store
.
commit
(
"SET_USER_INFO"
,
this
.
userInfo
);
let
userInfo
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
userInfo
));
userInfo
.
hadFullInfo
=
1
;
userInfo
.
name
=
this
.
information
.
lastName
+
this
.
information
.
firstName
;
this
.
$store
.
commit
(
"SET_USER_INFO"
,
userInfo
);
// this.showModal(message, "succ");
this
.
modalCallback
();
break
;
...
...
Please
register
or
sign in
to post a comment