提交 92ab409a 编写于 作者: 张敬贤's avatar 张敬贤

Merge branch 'feature/zjx' into 'release'

Feature/zjx

See merge request !193
...@@ -76,6 +76,7 @@ ...@@ -76,6 +76,7 @@
right-icon="arrow" right-icon="arrow"
placeholder="请选择检测机构" placeholder="请选择检测机构"
:rules="[{ required: true, message: '请选择检测机构' }]" :rules="[{ required: true, message: '请选择检测机构' }]"
@click="showPicker=true"
> >
<template #input> <template #input>
<div <div
...@@ -136,6 +137,19 @@ ...@@ -136,6 +137,19 @@
@change="selectTimes" @change="selectTimes"
@close="closePopup" @close="closePopup"
/> />
<van-popup
v-model="showPicker"
round
position="bottom"
>
<van-picker
show-toolbar
:columns="hospitalNameList"
value-key="hospitalName"
@cancel="showPicker = false"
@confirm="onConfirm"
/>
</van-popup>
</div> </div>
</template> </template>
...@@ -163,6 +177,7 @@ export default { ...@@ -163,6 +177,7 @@ export default {
style: 'backgroundColor:#ffffff;zIndex:100;', style: 'backgroundColor:#ffffff;zIndex:100;',
background: '', background: '',
}, },
showPicker:false,
dectionData:{}, dectionData:{},
dectionForm: { dectionForm: {
detectName: '', detectName: '',
...@@ -173,6 +188,17 @@ export default { ...@@ -173,6 +188,17 @@ export default {
hospitalName:'人民医院和平社区健康服务中心', hospitalName:'人民医院和平社区健康服务中心',
location: '深圳市坪山区', location: '深圳市坪山区',
}, },
hospitalNameList: [
{
hospitalName: '人民医院和平社区健康服务中心',
value:1139136
},
{
hospitalName: '深圳市罗湖区新围社区健康服务中心',
value:539629
},
],
showAreaLabel:'', showAreaLabel:'',
showArea:false, showArea:false,
reportShow: false, reportShow: false,
...@@ -226,6 +252,12 @@ export default { ...@@ -226,6 +252,12 @@ export default {
this.$loading.hide(); this.$loading.hide();
}); });
}, },
onConfirm(item) {
console.log(item);
this.dectionForm.hospitalName = item.hospitalName;
this.hospitalId = item.value;
this.showPicker = false;
},
selectTimes(times) { selectTimes(times) {
console.log(times); console.log(times);
const {value, currentItemChoosed} = times; const {value, currentItemChoosed} = times;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册