Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
ln-medicalAppointment-pc
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
孙海亮
ln-medicalAppointment-pc
Commits
a5d0122b
Commit
a5d0122b
authored
3 years ago
by
huangyecong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加个人信息弹窗显示条件
parent
ab6fc434
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
form.vue
src/views/index/components/form.vue
+2
-4
index.vue
src/views/index/index.vue
+4
-6
No files found.
src/views/index/components/form.vue
View file @
a5d0122b
...
@@ -151,17 +151,16 @@ export default {
...
@@ -151,17 +151,16 @@ export default {
onSubmit
()
{
onSubmit
()
{
this
.
$refs
.
ruleForm
.
validate
((
valid
)
=>
{
this
.
$refs
.
ruleForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
console
.
log
(
'
立即预约submit
'
,
this
.
form
)
const
query
=
{
const
query
=
{
...
this
.
form
,
...
this
.
form
,
}
}
api
.
improveInformation
(
query
).
then
((
res
)
=>
{
api
.
improveInformation
(
query
).
then
((
res
)
=>
{
console
.
log
(
'
提交用户信息res
'
,
res
)
if
(
res
.
returnCode
==
'
0000
'
)
{
if
(
res
.
returnCode
==
'
0000
'
)
{
// 提交成功之后,提示成功信息,关闭"个人信息填写弹窗",并刷新当前页面
this
.
$message
.
success
(
'
个人信息提交成功
'
)
this
.
$message
.
success
(
'
个人信息提交成功
'
)
// 提交成功之后,关闭"个人信息填写弹窗",并刷新当前页面
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$emit
(
'
hideModal
'
)
this
.
$emit
(
'
hideModal
'
)
// 刷新列表
},
1500
)
},
1500
)
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
returnMsg
)
this
.
$message
.
error
(
res
.
returnMsg
)
...
@@ -180,7 +179,6 @@ export default {
...
@@ -180,7 +179,6 @@ export default {
// 选择生日
// 选择生日
onChange
(
date
,
dateString
)
{
onChange
(
date
,
dateString
)
{
this
.
form
.
birthDate
=
dateString
this
.
form
.
birthDate
=
dateString
console
.
log
(
date
,
dateString
)
},
},
},
},
}
}
...
...
This diff is collapsed.
Click to expand it.
src/views/index/index.vue
View file @
a5d0122b
...
@@ -33,7 +33,7 @@ export default {
...
@@ -33,7 +33,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
id
:
''
,
id
:
''
,
visible
:
tru
e
,
//是否显示"个人基本信息填写"弹窗
visible
:
fals
e
,
//是否显示"个人基本信息填写"弹窗
items
:
[
items
:
[
{
{
name
:
'
体检套餐名称-某某单位-某某套餐
'
,
name
:
'
体检套餐名称-某某单位-某某套餐
'
,
...
@@ -103,14 +103,12 @@ export default {
...
@@ -103,14 +103,12 @@ export default {
},
},
// 获取客户详情
// 获取客户详情
getCustomerDetail
()
{
getCustomerDetail
()
{
console
.
log
(
'
this.id=
'
,
this
.
id
,
typeof
(
this
.
id
),
typeof
(
parseInt
(
this
.
id
)));
api
.
getCustomerDetail
({
id
:
parseInt
(
this
.
id
)
}).
then
((
res
)
=>
{
api
.
getCustomerDetail
({
id
:
parseInt
(
this
.
id
)
}).
then
((
res
)
=>
{
if
(
res
.
returnCode
==
'
0000
'
)
{
if
(
res
.
returnCode
==
'
0000
'
)
{
// 根据information是否显示'个人基本信息填写'弹窗(01:完善 02:不完善)
// 根据information是否显示'个人基本信息填写'弹窗(01:完善 02:不完善)
console
.
log
(
'
获取客户详情information
'
,
res
.
content
.
information
)
res
.
content
.
information
==
'
02
'
// res.content.information == '02'
?
(
this
.
visible
=
true
)
// ? (this.visible = true)
:
(
this
.
visible
=
false
)
// : (this.visible = false)
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
returnMsg
)
this
.
$message
.
error
(
res
.
returnMsg
)
}
}
...
...
This diff is collapsed.
Click to expand it.
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