Commit 08a5c9f7 by wangshuangqing

修改疫苗公司卫多选

parent 95dd8b2a
<!--
* @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>
......@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2022-03-17 15:06:50
* @LastEditors: wsq
* @LastEditTime: 2022-04-16 17:02:05
* @LastEditTime: 2022-04-19 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接口,需要配置这个参数
......
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