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
9be19128
Commit
9be19128
authored
Apr 13, 2022
by
nlp97
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
7293288b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
39 deletions
+49
-39
src/components/page3.vue
+1
-1
src/components/page4.vue
+24
-23
src/components/page5.vue
+24
-15
No files found.
src/components/page3.vue
View file @
9be19128
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditors: ninglupeng
* @LastEditTime: 2022-0
3-23 13:20:12
* @LastEditTime: 2022-0
4-06 09:55:44
* @Description:
* @Description:
-->
-->
<
template
>
<
template
>
...
...
src/components/page4.vue
View file @
9be19128
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditors: ninglupeng
* @LastEditTime: 2022-0
3-27 19:43:01
* @LastEditTime: 2022-0
4-02 10:04:49
* @Description:
* @Description:
-->
-->
<
template
>
<
template
>
...
@@ -92,6 +92,29 @@
...
@@ -92,6 +92,29 @@
]"
]"
></van-field>
></van-field>
<van-field
colon
clearable
name=
"gender"
label=
"性别"
>
<
template
#
input
>
<van-radio-group
@
change=
"
() =>
{
setLocalStorge('gender');
if (gender == '男') {
isConceive = '未孕';
gestationalWeeks = '';
setValue('isConceive', '未孕');
setValue('gestationalWeeks', '');
}
}
"
v-model="gender"
direction="horizontal"
>
<van-radio
name=
"男"
>
男
</van-radio>
<van-radio
name=
"女"
>
女
</van-radio>
</van-radio-group>
</
template
>
</van-field>
<van-field
<van-field
colon
colon
clearable
clearable
...
@@ -127,28 +150,6 @@
...
@@ -127,28 +150,6 @@
@
blur=
"setLocalStorge('age')"
@
blur=
"setLocalStorge('age')"
:rules=
"[{ required: true, message: '请填写年龄' }]"
:rules=
"[{ required: true, message: '请填写年龄' }]"
></van-field>
></van-field>
<van-field
colon
clearable
name=
"gender"
label=
"性别"
>
<
template
#
input
>
<van-radio-group
@
change=
"
() =>
{
setLocalStorge('gender');
if (gender == '男') {
isConceive = '未孕';
gestationalWeeks = '';
setValue('isConceive', '未孕');
setValue('gestationalWeeks', '');
}
}
"
v-model="gender"
direction="horizontal"
>
<van-radio
name=
"男"
>
男
</van-radio>
<van-radio
name=
"女"
>
女
</van-radio>
</van-radio-group>
</
template
>
</van-field>
<van-field
<van-field
colon
colon
...
...
src/components/page5.vue
View file @
9be19128
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditors: ninglupeng
* @LastEditTime: 2022-0
3-30 09:16:00
* @LastEditTime: 2022-0
4-08 16:46:34
* @Description:
* @Description:
-->
-->
<
template
>
<
template
>
...
@@ -147,10 +147,10 @@
...
@@ -147,10 +147,10 @@
label-width=
"130px"
label-width=
"130px"
name=
"inHospitalDate"
name=
"inHospitalDate"
:value=
"inHospitalDate"
:value=
"inHospitalDate"
label=
"120转运时间"
label=
"120转运时间
或者入院时间
"
placeholder=
"点击选择120转运时间"
placeholder=
"点击选择120转运时间
或者入院时间
"
@
click=
"showInHospitalDate = true"
@
click=
"showInHospitalDate = true"
:rules=
"[{ required: true, message: '请选择120转运时间' }]"
:rules=
"[{ required: true, message: '请选择120转运时间
或者入院时间
' }]"
/>
/>
<van-popup
v-model=
"showInHospitalDate"
position=
"bottom"
>
<van-popup
v-model=
"showInHospitalDate"
position=
"bottom"
>
...
@@ -228,14 +228,16 @@
...
@@ -228,14 +228,16 @@
}
}
"
"
v-model="symptom"
v-model="symptom"
direction="horizontal"
class="symptom"
>
>
<
van-cell-group
>
<
!--
<van-cell-group>
--
>
<van-cell
:key=
"index"
v-for=
"(item, index) in symptomList"
>
<template
v-for=
"(item, index) in symptomList"
>
<van-checkbox
:name=
"item.element"
shape=
"square"
>
<van-checkbox
:key=
"index"
:name=
"item.element"
shape=
"square"
>
{{
item
.
element
}}
</van-checkbox
{{
item
.
element
}}
</van-checkbox
>
>
</van-cell
>
</
template
>
<
/van-cell-group
>
<
!-- </van-cell-group> --
>
</van-checkbox-group>
</van-checkbox-group>
</template>
</template>
</van-field>
</van-field>
...
@@ -388,7 +390,7 @@ export default {
...
@@ -388,7 +390,7 @@ export default {
HasSymptom
:
"否"
,
//有无症状
HasSymptom
:
"否"
,
//有无症状
symptom
:
[],
//患者症状
symptom
:
[],
//患者症状
HasCOVIDVaccine
:
"是"
,
HasCOVIDVaccine
:
"是"
,
covidVaccine
:
0
,
//接种针数
covidVaccine
:
""
,
//接种针数
vaccineType
:
""
,
//疫苗公司
vaccineType
:
""
,
//疫苗公司
othervaccines
:
""
,
//其他疫苗
othervaccines
:
""
,
//其他疫苗
vaccineDate
:
""
,
//最后一次接种日期
vaccineDate
:
""
,
//最后一次接种日期
...
@@ -466,9 +468,9 @@ export default {
...
@@ -466,9 +468,9 @@ export default {
},
},
setDefDate
()
{
setDefDate
()
{
this
.
unusualDate
=
formatDate
(
new
Date
(),
"yyyy-MM-dd"
);
//核酸检测异常时间
//
this.unusualDate = formatDate(new Date(), "yyyy-MM-dd"); //核酸检测异常时间
this
.
normalDate
=
formatDate
(
new
Date
(),
"yyyy-MM-dd"
);
//未发生异常时间
//
this.normalDate = formatDate(new Date(), "yyyy-MM-dd"); //未发生异常时间
this
.
inHospitalDate
=
formatDate
(
new
Date
(),
"yyyy-MM-dd"
);
//120转运时间
//
this.inHospitalDate = formatDate(new Date(), "yyyy-MM-dd"); //120转运时间
this
.
vaccineDate
=
formatDate
(
new
Date
(),
"yyyy-MM-dd"
);
//最后一次接种日期
this
.
vaccineDate
=
formatDate
(
new
Date
(),
"yyyy-MM-dd"
);
//最后一次接种日期
},
},
...
@@ -542,5 +544,12 @@ export default {
...
@@ -542,5 +544,12 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.page5
{
.page5
{
.symptom
{
.van-checkbox--horizontal
{
margin-right
:
0.32rem
;
min-width
:
35%
;
margin-bottom
:
5%
;
}
}
}
}
</
style
>
</
style
>
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