Commit af1910e1 by wangshuangqing

修改疫苗公示卫多选

parent 8583be27
......@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: wsq
* @LastEditTime: 2022-04-16 15:27:49
* @LastEditTime: 2022-04-19 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-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 == '其他'"
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;
......
......@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2022-03-17 15:06:50
* @LastEditors: wsq
* @LastEditTime: 2022-04-18 20:14:52
* @LastEditTime: 2022-04-19 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接口,需要配置这个参数
......
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