Commit 08a5c9f7 by wangshuangqing

修改疫苗公司卫多选

parent 95dd8b2a
<!-- <!--
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2020-11-24 16:18:58 * @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng * @LastEditors: wsq
* @LastEditTime: 2022-04-08 16:46:34 * @LastEditTime: 2022-04-19 14:31:00
* @Description: * @Description:
--> -->
<template> <template>
...@@ -259,10 +259,10 @@ ...@@ -259,10 +259,10 @@
setLocalStorge('HasCOVIDVaccine'); setLocalStorge('HasCOVIDVaccine');
if (HasCOVIDVaccine == '否') { if (HasCOVIDVaccine == '否') {
covidVaccine = 0; covidVaccine = '';
vaccineType = ''; vaccineType = [];
othervaccines = ''; othervaccines = '';
setValue('covidVaccine', 0); setValue('covidVaccine', '');
setValue('vaccineType', ''); setValue('vaccineType', '');
setValue('othervaccines', ''); setValue('othervaccines', '');
} }
...@@ -293,29 +293,47 @@ ...@@ -293,29 +293,47 @@
<template #extra></template></van-field <template #extra></template></van-field
> >
<van-field <van-field
v-if="HasCOVIDVaccine == '是'"
colon colon
clearable clearable
name="vaccineType" name="vaccineType"
label-width="130px"
label="疫苗公司" label="疫苗公司"
v-if="HasCOVIDVaccine == '是'" :rules="[
{
required: HasCOVIDVaccine == '是' ? true : false,
message: '请选择疫苗公司',
},
]"
> >
<template #input> <template #input>
<van-radio-group <van-checkbox-group
@change="setLocalStorge('vaccineType')"
v-model="vaccineType" v-model="vaccineType"
direction="horizontal" direction="horizontal"
class="vaccineType"
@change="
() => {
setLocalStorge('vaccineType');
}
"
> >
<van-cell-group>
<van-cell :key="index" v-for="(item, index) in vaccineTypeList"> <template v-for="(item, index) in vaccineTypeList">
<van-radio :name="item.element">{{ item.element }}</van-radio> <van-checkbox :key="index" :name="item.element" shape="square">{{
</van-cell> item.element
</van-cell-group> }}</van-checkbox>
</van-radio-group> </template>
</van-checkbox-group>
</template> </template>
</van-field> </van-field>
<van-field <van-field
colon colon
v-if="vaccineType == '其他'" v-if="vaccineType == '其他'"
...@@ -391,7 +409,7 @@ export default { ...@@ -391,7 +409,7 @@ export default {
symptom: [], //患者症状 symptom: [], //患者症状
HasCOVIDVaccine: "是", HasCOVIDVaccine: "是",
covidVaccine: "", //接种针数 covidVaccine: "", //接种针数
vaccineType: "", //疫苗公司 vaccineType: [], //疫苗公司
othervaccines: "", //其他疫苗 othervaccines: "", //其他疫苗
vaccineDate: "", //最后一次接种日期 vaccineDate: "", //最后一次接种日期
...@@ -443,7 +461,7 @@ export default { ...@@ -443,7 +461,7 @@ export default {
"HasSymptom", //有无症状 "HasSymptom", //有无症状
"HasCOVIDVaccine", "HasCOVIDVaccine",
"covidVaccine", //接种针数 "covidVaccine", //接种针数
"vaccineType", //疫苗公司 // "vaccineType", //疫苗公司
"othervaccines", //其他疫苗 "othervaccines", //其他疫苗
"vaccineDate", //最后一次接种日期 "vaccineDate", //最后一次接种日期
]; ];
...@@ -453,6 +471,10 @@ export default { ...@@ -453,6 +471,10 @@ export default {
this[`${arr[i]}`] = this.getLocalStorge(arr[i]); this[`${arr[i]}`] = this.getLocalStorge(arr[i]);
} }
} }
if (this.getLocalStorge("vaccineType")) {
this.symptom = this.getLocalStorge("vaccineType").split(",");
}
}, },
getLocalStorge(key) { getLocalStorge(key) {
...@@ -551,5 +573,11 @@ export default { ...@@ -551,5 +573,11 @@ export default {
margin-bottom: 5%; margin-bottom: 5%;
} }
} }
.vaccineType{
.van-checkbox{
width: 43%;
margin-bottom: 5%;
}
}
} }
</style> </style>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2022-03-17 15:06:50 * @Date: 2022-03-17 15:06:50
* @LastEditors: wsq * @LastEditors: wsq
* @LastEditTime: 2022-04-16 17:02:05 * @LastEditTime: 2022-04-19 14:26:21
* @Description: * @Description:
*/ */
const path = require('path'); const path = require('path');
...@@ -61,9 +61,9 @@ module.exports = { ...@@ -61,9 +61,9 @@ module.exports = {
proxy: { proxy: {
'/api': { '/api': {
//target: 'http://flowtone.suvalue.com/', target: 'http://flowtone.suvalue.com/',
//target: 'http://flowtone2.suvalue.com/', //target: 'http://flowtone2.suvalue.com/',
target: 'http://flowtone6.suvalue.com/', //target: 'http://flowtone6.suvalue.com/',
//target:'http://192.168.18.166:8048/',//测试 //target:'http://192.168.18.166:8048/',//测试
ws: true, //如果要代理 websockets,配置这个参数 ws: true, //如果要代理 websockets,配置这个参数
// secure: false, // 如果是https接口,需要配置这个参数 // secure: false, // 如果是https接口,需要配置这个参数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment