Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
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
ui
mongo-ui
Commits
73842e4d
Commit
73842e4d
authored
Feb 01, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/info_back' into 'master'
Fix/info back See merge request
!252
parents
20135407
0d2712fa
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
13 deletions
+43
-13
main.js
src/main.js
+1
-0
user.js
src/store/modules/user.js
+1
-1
InsurePersonForm.vue
src/views/Goods/Detail/modules/InsurePersonForm.vue
+20
-3
index.vue
src/views/Goods/index.vue
+1
-1
index.vue
src/views/Policy/Add/index.vue
+20
-3
yarn.lock
yarn.lock
+0
-5
No files found.
src/main.js
View file @
73842e4d
...
...
@@ -60,6 +60,7 @@ window.addEventListener(
);
if
(
process
.
env
.
VUE_APP_ENVIRONMENT
!==
"
production
"
)
{
Vue
.
config
.
devtools
=
true
;
// ! 上线后务必取掉
new
vConsole
();
}
src/store/modules/user.js
View file @
73842e4d
...
...
@@ -53,7 +53,7 @@ export default {
},
actions
:
{
async
setFamilyList
({
commit
},
policyList
)
{
let
familyList
=
await
getFamilyList
()
;
let
familyList
=
(
await
getFamilyList
())
||
[]
;
if
(
!
policyList
)
{
policyList
=
await
getPolicyList
();
}
...
...
src/views/Goods/Detail/modules/InsurePersonForm.vue
View file @
73842e4d
...
...
@@ -454,7 +454,26 @@ export default {
this
.
familyList
=
res
;
if
(
this
.
hasAutoSaveData
(
this
.
autoSaveKey
)
&&
!
reset
)
{
this
.
getSaveInfoHandler
(
this
.
autoSaveKey
,
AUTO_SAVE_TARGET
);
const
{
idNo
,
userInfoSecId
,
relation
}
=
this
.
formData
;
const
{
idNo
,
userInfoSecId
,
relation
,
selfIdNo
}
=
this
.
formData
;
const
selfUserInfo
=
this
.
familyList
.
find
(
item
=>
item
.
relation
===
1
);
if
(
selfUserInfo
&&
selfUserInfo
.
idNo
&&
selfIdNo
)
{
const
{
idNoMask
,
nameMask
,
socialSecurity
,
userInfoSecId
}
=
selfUserInfo
;
this
.
formData
=
{
...
this
.
formData
,
...{
selfIdNo
:
idNoMask
,
selfName
:
nameMask
,
selfSecId
:
userInfoSecId
,
selfSocialSecurity
:
typeof
socialSecurity
===
undefined
||
socialSecurity
===
""
?
""
:
socialSecurity
?
"
1
"
:
"
0
"
}
};
this
.
selfInfoReadonly
=
true
;
}
if
(
relation
)
{
const
userArray
=
this
.
familyList
.
filter
(
item
=>
item
.
relation
===
+
relation
);
this
.
relationList
=
userArray
.
length
>
1
?
userArray
:
[];
...
...
@@ -505,8 +524,6 @@ export default {
}
};
}
}
else
{
this
.
selfInfoReadonly
=
true
;
}
}
else
{
let
relation
=
this
.
formData
.
relation
||
"
1
"
;
...
...
src/views/Goods/index.vue
View file @
73842e4d
...
...
@@ -56,7 +56,7 @@ export default {
GoodList
,
Tabbar
,
copyright
,
InstructionModal
,
InstructionModal
},
data
()
{
return
{
...
...
src/views/Policy/Add/index.vue
View file @
73842e4d
...
...
@@ -1005,7 +1005,26 @@ export default {
this
.
familyList
=
res
;
if
(
this
.
hasAutoSaveData
(
AUTO_SAVE_KEY
))
{
this
.
getSaveInfoHandler
(
AUTO_SAVE_KEY
,
AUTO_SAVE_TARGET
);
const
{
relation
,
idNo
,
userInfoSecId
}
=
this
.
formData
.
insuredUserInfo
;
const
{
relation
,
idNo
,
userInfoSecId
,
selfIdNo
}
=
this
.
formData
.
insuredUserInfo
;
const
selfUserInfo
=
this
.
familyList
.
find
(
item
=>
item
.
relation
===
1
);
if
(
selfUserInfo
&&
selfUserInfo
.
idNo
&&
selfIdNo
)
{
const
{
idNoMask
,
nameMask
,
socialSecurity
,
userInfoSecId
}
=
selfUserInfo
;
this
.
formData
=
{
...
this
.
formData
,
...{
selfIdNo
:
idNoMask
,
selfName
:
nameMask
,
selfSecId
:
userInfoSecId
,
selfSocialSecurity
:
typeof
socialSecurity
===
undefined
||
socialSecurity
===
""
?
""
:
socialSecurity
?
"
1
"
:
"
0
"
}
};
this
.
selfInfoReadonly
=
true
;
}
if
(
relation
)
{
const
userArray
=
this
.
familyList
.
filter
(
item
=>
item
.
relation
===
+
relation
);
this
.
relationList
=
userArray
.
length
>
1
?
userArray
:
[];
...
...
@@ -1045,8 +1064,6 @@ export default {
}
};
}
}
else
{
this
.
selfInfoReadonly
=
true
;
}
}
else
{
let
relation
=
this
.
formData
.
insuredUserInfo
.
relation
;
...
...
yarn.lock
View file @
73842e4d
...
...
@@ -900,11 +900,6 @@
dependencies:
mkdirp "^1.0.4"
"@qg/cherry-ui@^1.2.6":
version "1.2.6"
resolved "http://npmprivate.quantgroups.com/@qg%2fcherry-ui/-/cherry-ui-1.2.6.tgz#c8fcff71d35f0cb59c49019132e1bb5426648da6"
integrity sha512-vXpCUPAlPhcn9hnsTJS7qGgg9KcfTgZIWINaiiahRZQA6pEH4qmLihQp7HYeYvih/ENgDgDcVRRc4OSd7zibcg==
"@qg/qg-scroll@^1.4.2":
version "1.4.2"
resolved "http://npmprivate.quantgroups.com/@qg%2fqg-scroll/-/qg-scroll-1.4.2.tgz#df834f9f372ffa6e4c4233c8a3e6e74ccca971a7"
...
...
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