Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
ShanghaiGongwei
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
宁路鹏
ShanghaiGongwei
Commits
078591ea
Commit
078591ea
authored
Mar 21, 2022
by
nlp97
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/单位、上一步' into develop
parents
923a45b4
3f66f7a3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69 additions
and
12 deletions
+69
-12
src/components/index.vue
+20
-7
src/components/page5.vue
+9
-2
src/components/page6.vue
+39
-2
src/store/modules/user.js
+1
-1
No files found.
src/components/index.vue
View file @
078591ea
...
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditTime: 2022-03-2
0 17:30:58
* @LastEditTime: 2022-03-2
1 12:59:01
* @Description:
-->
<
template
>
...
...
@@ -29,6 +29,16 @@
block
type=
"info"
native-type=
"button"
v-if=
"page != 1 && page != 2 && page != 8"
@
click=
"back()"
>
上一步
</van-button
>
<van-button
class=
"index_form_footer_next"
round
block
type=
"info"
native-type=
"button"
v-if=
"page != 1 && page != 2 && page != 7 && page != 8"
@
click=
"next()"
>
下一步
</van-button
...
...
@@ -68,6 +78,10 @@ export default {
},
mounted
()
{},
methods
:
{
back
()
{
let
pageS
=
this
.
page
;
this
.
$store
.
dispatch
(
"user/setpage"
,
pageS
-
1
);
},
next
()
{
// let pageS = this.page + 1;
...
...
@@ -181,7 +195,7 @@ export default {
this
.
$refs
.
vantform
.
validate
([
"hasHistoryAllergies"
,
//过敏史
"historyAllergies"
,
//过敏原
//
"historyAllergies", //过敏原
"hasHistorySurgery"
,
//手术史
"historySurgery"
,
//具体内容
"HasPreviousHistory"
,
//有无既往史
...
...
@@ -258,19 +272,18 @@ export default {
height
:
100%
;
&_footer
{
/* position: absolute; */
/* bottom: 20px; */
width
:
100%
;
padding-top
:
30px
;
padding-bottom
:
30px
;
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-around
;
&_next
{
width
:
319px
;
width
:
25%
;
height
:
48px
;
background
:
#0091ff
;
border-radius
:
24px
;
margin
:
0
auto
;
}
}
}
...
...
src/components/page5.vue
View file @
078591ea
...
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditTime: 2022-03-2
0 17:27:50
* @LastEditTime: 2022-03-2
1 13:36:08
* @Description:
-->
<
template
>
...
...
@@ -73,6 +73,7 @@
required: thirtyDays == '是' ? true : false,
message: '请填写回上海天数',
},
{ validator, message: '天数不能大于三十天' },
]"
>
<
template
#
extra
>
天
</
template
></van-field
...
...
@@ -224,7 +225,9 @@
label-width=
"130px"
type=
"number"
:rules=
"[{ required: true, message: '请填写接种针数' }]"
></van-field>
>
<
template
#
extra
>
针
</
template
></van-field
>
<van-field
v-if=
"covidVaccine > 0"
...
...
@@ -362,6 +365,10 @@ export default {
this
.
showPurpose
=
false
;
},
validator
(
val
)
{
return
val
<
30
||
val
==
30
;
},
getResource
()
{
this
.
setLoading
(
true
);
this
.
$http
.
get
(
`/Research/Resource`
,
{}).
then
((
data
)
=>
{
...
...
src/components/page6.vue
View file @
078591ea
...
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditTime: 2022-03-2
0 17:33:24
* @LastEditTime: 2022-03-2
1 13:10:20
* @Description:
-->
<
template
>
...
...
@@ -22,7 +22,7 @@
</
template
>
</van-field>
<van-field
<
!-- <
van-field
v-if="hasHistoryAllergies == '有'"
colon
clearable
...
...
@@ -37,8 +37,40 @@
message: '请填写过敏原',
},
]"
></van-field> -->
<van-field
v-if=
"hasHistoryAllergies == '有'"
colon
clearable
label-width=
"125px"
v-model=
"foodAllergy"
name=
"foodAllergy"
label=
"食物过敏原"
placeholder=
"食物过敏原"
></van-field>
<van-field
v-if=
"hasHistoryAllergies == '有'"
colon
clearable
label-width=
"125px"
v-model=
"drugAllergy"
name=
"drugAllergy "
label=
"药物过敏原"
placeholder=
"食物过敏原"
></van-field>
<van-field
v-if=
"hasHistoryAllergies == '有'"
colon
clearable
label-width=
"125px"
v-model=
"otherAllergy"
name=
"otherAllergy"
label=
"其他过敏原"
placeholder=
"其他过敏原"
></van-field>
<van-field
colon
clearable
name=
"hasHistorySurgery"
...
...
@@ -238,6 +270,11 @@ export default {
return
{
hasHistoryAllergies
:
"无"
,
//过敏史
historyAllergies
:
""
,
//过敏原
foodAllergy
:
""
,
//食物过敏
drugAllergy
:
""
,
//药物过敏
otherAllergy
:
""
,
//其他过敏
hasHistorySurgery
:
"无"
,
//手术史
historySurgery
:
""
,
//具体内容
...
...
src/store/modules/user.js
View file @
078591ea
...
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2022-03-17 15:06:50
* @LastEditors: ninglupeng
* @LastEditTime: 2022-03-2
0 15:38:30
* @LastEditTime: 2022-03-2
1 13:40:05
* @Description:
*/
import
http
from
'@/http/index'
...
...
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