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
08a5c9f7
Commit
08a5c9f7
authored
Apr 19, 2022
by
wangshuangqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改疫苗公司卫多选
parent
95dd8b2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
22 deletions
+50
-22
src/components/page5.vue
+47
-19
vue.config.js
+3
-3
No files found.
src/components/page5.vue
View file @
08a5c9f7
<!--
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors:
ninglupeng
* @LastEditTime: 2022-04-
08 16:46:34
* @LastEditors:
wsq
* @LastEditTime: 2022-04-
19 14:31:00
* @Description:
-->
<
template
>
...
...
@@ -259,10 +259,10 @@
setLocalStorge('HasCOVIDVaccine');
if (HasCOVIDVaccine == '否') {
covidVaccine =
0
;
vaccineType =
''
;
covidVaccine =
''
;
vaccineType =
[]
;
othervaccines = '';
setValue('covidVaccine',
0
);
setValue('covidVaccine',
''
);
setValue('vaccineType', '');
setValue('othervaccines', '');
}
...
...
@@ -293,29 +293,47 @@
<
template
#
extra
>
针
</
template
></van-field
>
<van-field
<van-field
v-if=
"HasCOVIDVaccine == '是'"
colon
clearable
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-cell
: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-checkbox
:key=
"index"
:name=
"item.element"
shape=
"square"
>
{{
item
.
element
}}
</van-checkbox>
</
template
>
</van-checkbox-group>
</template>
</van-field>
<van-field
colon
v-if=
"vaccineType == '其他'"
...
...
@@ -391,7 +409,7 @@ export default {
symptom
:
[],
//患者症状
HasCOVIDVaccine
:
"是"
,
covidVaccine
:
""
,
//接种针数
vaccineType
:
""
,
//疫苗公司
vaccineType
:
[]
,
//疫苗公司
othervaccines
:
""
,
//其他疫苗
vaccineDate
:
""
,
//最后一次接种日期
...
...
@@ -443,7 +461,7 @@ export default {
"HasSymptom"
,
//有无症状
"HasCOVIDVaccine"
,
"covidVaccine"
,
//接种针数
"vaccineType"
,
//疫苗公司
//
"vaccineType", //疫苗公司
"othervaccines"
,
//其他疫苗
"vaccineDate"
,
//最后一次接种日期
];
...
...
@@ -453,6 +471,10 @@ export default {
this
[
`
${
arr
[
i
]}
`
]
=
this
.
getLocalStorge
(
arr
[
i
]);
}
}
if
(
this
.
getLocalStorge
(
"vaccineType"
))
{
this
.
symptom
=
this
.
getLocalStorge
(
"vaccineType"
).
split
(
","
);
}
},
getLocalStorge
(
key
)
{
...
...
@@ -551,5 +573,11 @@ export default {
margin-bottom
:
5%
;
}
}
.vaccineType
{
.van-checkbox{
width
:
43%
;
margin-bottom
:
5%
;
}
}
}
</
style
>
vue.config.js
View file @
08a5c9f7
...
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2022-03-17 15:06:50
* @LastEditors: wsq
* @LastEditTime: 2022-04-1
6 17:02:05
* @LastEditTime: 2022-04-1
9 14:26:21
* @Description:
*/
const
path
=
require
(
'path'
);
...
...
@@ -61,9 +61,9 @@ module.exports = {
proxy
:
{
'/api'
:
{
//
target: 'http://flowtone.suvalue.com/',
target
:
'http://flowtone.suvalue.com/'
,
//target: 'http://flowtone2.suvalue.com/',
target
:
'http://flowtone6.suvalue.com/'
,
//
target: 'http://flowtone6.suvalue.com/',
//target:'http://192.168.18.166:8048/',//测试
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