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
af1910e1
Commit
af1910e1
authored
Apr 19, 2022
by
wangshuangqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改疫苗公示卫多选
parent
8583be27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
29 deletions
+43
-29
src/components/page5.vue
+40
-26
vue.config.js
+3
-3
No files found.
src/components/page5.vue
View file @
af1910e1
...
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: wsq
* @LastEditTime: 2022-04-1
6 15:27:49
* @LastEditTime: 2022-04-1
9 14:25:11
* @Description:
-->
<
template
>
...
...
@@ -192,7 +192,7 @@
() =>
{
if (HasSymptom == '否') {
symptom = [];
otherSymptom
=
'';
otherSymptom
=
'';
setValue('symptom', '');
setValue('otherSymptom', '');
...
...
@@ -245,9 +245,7 @@
</template>
</van-field>
<van-field
<van-field
colon
v-if=
"symptom.includes('其他')"
clearable
...
...
@@ -266,8 +264,6 @@
@
blur=
"setLocalStorge('otherSymptom')"
></van-field>
<van-field
colon
clearable
...
...
@@ -282,10 +278,10 @@
setLocalStorge('HasCOVIDVaccine');
if (HasCOVIDVaccine == '否') {
covidVaccine =
0
;
vaccineType =
''
;
covidVaccine =
''
;
vaccineType =
[]
;
othervaccines = '';
setValue('covidVaccine',
0
);
setValue('covidVaccine',
''
);
setValue('vaccineType', '');
setValue('othervaccines', '');
}
...
...
@@ -317,31 +313,41 @@
>
<van-field
v-if=
"HasCOVIDVaccine == '是'"
colon
clearable
name=
"vaccineType"
label-width=
"130px"
label=
"疫苗公司"
v-if=
"HasCOVIDVaccine == '是'"
:rules=
"[
{
required: HasCOVIDVaccine == '是' ? true : false,
message: '请选择疫苗公司',
},
]"
>
<
template
#
input
>
<van-radio-group
@
change=
"setLocalStorge('vaccineType')"
<van-checkbox-group
v-model=
"vaccineType"
direction=
"horizontal"
class=
"vaccineType"
@
change=
"
() =>
{
setLocalStorge('vaccineType');
}
"
>
<
van-cell-group
>
<van-c
ell
:key=
"index"
v-for=
"(item, index) in vaccineTypeList"
>
<van-radio
:name=
"item.element"
>
{{
item
.
element
}}
</van-radio>
</van-cell
>
</
van-cell-group
>
</van-
radio
-group>
<
template
v-for=
"(item, index) in vaccineTypeList"
>
<van-c
heckbox
:key=
"index"
:name=
"item.element"
shape=
"square"
>
{{
item
.
element
}}
</van-checkbox
>
</
template
>
</van-
checkbox
-group>
</template>
</van-field>
<van-field
colon
v-if=
"vaccineType
== '其他'
"
v-if=
"vaccineType
.includes('其他')
"
clearable
autosize
type=
"textarea"
...
...
@@ -351,7 +357,7 @@
placeholder=
"其他疫苗"
:rules=
"[
{
required: vaccineType
== '其他'
? true : false,
required: vaccineType
.includes('其他')
? true : false,
message: '请填写其他疫苗',
},
]"
...
...
@@ -412,10 +418,10 @@ export default {
HasSymptom
:
"否"
,
//有无症状
symptom
:
[],
//患者症状
otherSymptom
:
''
,
//其他症状
otherSymptom
:
""
,
//其他症状
HasCOVIDVaccine
:
"是"
,
covidVaccine
:
""
,
//接种针数
vaccineType
:
""
,
//疫苗公司
vaccineType
:
[]
,
//疫苗公司
othervaccines
:
""
,
//其他疫苗
vaccineDate
:
""
,
//最后一次接种日期
...
...
@@ -462,13 +468,12 @@ export default {
"unusualDate"
,
//核酸检测异常时间
"normalDate"
,
//未发生异常时间
"inHospitalDate"
,
//120转运时间
"otherSymptom"
,
//其他症状
"otherSymptom"
,
//其他症状
"beforeIsolationPoint"
,
//之前隔离点
"HasSymptom"
,
//有无症状
"HasCOVIDVaccine"
,
"covidVaccine"
,
//接种针数
"vaccineType"
,
//疫苗公司
"othervaccines"
,
//其他疫苗
"vaccineDate"
,
//最后一次接种日期
];
...
...
@@ -478,6 +483,9 @@ export default {
this
[
`
${
arr
[
i
]}
`
]
=
this
.
getLocalStorge
(
arr
[
i
]);
}
}
if
(
this
.
getLocalStorge
(
"vaccineType"
))
{
this
.
symptom
=
this
.
getLocalStorge
(
"vaccineType"
).
split
(
","
);
}
},
getLocalStorge
(
key
)
{
...
...
@@ -569,6 +577,12 @@ export default {
<
style
lang=
"scss"
scoped
>
.page5
{
.vaccineType
{
.van-checkbox
{
width
:
43%
;
margin-bottom
:
5%
;
}
}
.symptom
{
.van-checkbox--horizontal
{
margin-right
:
0.32rem
;
...
...
vue.config.js
View file @
af1910e1
...
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2022-03-17 15:06:50
* @LastEditors: wsq
* @LastEditTime: 2022-04-1
8 20:14:52
* @LastEditTime: 2022-04-1
9 14:03:14
* @Description:
*/
const
path
=
require
(
'path'
);
...
...
@@ -62,7 +62,7 @@ module.exports = {
'/api'
:
{
// 移动端
//
target: 'http://flowtone_fdpd.suvalue.com',//方舱
target
:
'http://flowtone_fdpd.suvalue.com'
,
//方舱
//target: 'http://flowtone_lgfc.suvalue.com',//方舱
//target: 'http://flowtone_rjny.suvalue.com',//方舱
//target: 'http://flowtone_syzy.sualvue.com',//方舱
...
...
@@ -74,7 +74,7 @@ module.exports = {
//target: 'http://flowtone7.suvalue.com',//方舱
//target: 'http://flowtone8.suvalue.com',//方舱
//target: 'http://flowtone9.suvalue.com',//方舱
target
:
'http://flowtone10.suvalue.com'
,
//方舱
//
target: 'http://flowtone10.suvalue.com',//方舱
ws
:
true
,
//如果要代理 websockets,配置这个参数
// secure: false, // 如果是https接口,需要配置这个参数
...
...
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