|
@@ -2,7 +2,7 @@
|
|
|
<portal to="notification-outlet">
|
|
|
<div class="pickerBox" @touchmove.prevent>
|
|
|
<div class="picker">
|
|
|
- <van-picker :columns="columns"
|
|
|
+ <van-picker :columns="columnsp"
|
|
|
:visible-item-count = "5"
|
|
|
:swipe-duration = "time"
|
|
|
:item-height ="36"
|
|
@@ -35,33 +35,47 @@ export default {
|
|
|
'40.8°C', '40.9°C', '41.0°C', '41.1°C', '41.2°C', '41.3°C', '41.4°C', '41.5°C', '41.6°C',
|
|
|
'41.7°C', '41.8°C', '41.9°C', '42.0°C'];
|
|
|
}
|
|
|
+ },
|
|
|
+ columnsp:{
|
|
|
+ default:function() {
|
|
|
+ return ['37.0°C', '37.1°C', '37.2°C','37.3°C', '37.4°C', '37.5°C', '37.6°C', '37.7°C', '37.8°C', '37.9°C', '38.0°C',
|
|
|
+ '38.1°C', '38.2°C', '38.3°C', '38.4°C', '38.5°C', '38.6C', '38.7°C', '38.8°C', '38.9°C',
|
|
|
+ '39.0°C', '39.1°C', '39.2°C', '39.3°C', '39.4°C', '39.5°C', '39.6°C', '39.7°C', '39.8°C',
|
|
|
+ '39.9°C', '40.0°C', '40.1°C', '40.2°C', '40.3°C', '40.4°C', '40.5°C', '40.6°C', '40.7°C',
|
|
|
+ '40.8°C', '40.9°C', '41.0°C', '41.1°C', '41.2°C', '41.3°C', '41.4°C', '41.5°C', '41.6°C',
|
|
|
+ '41.7°C', '41.8°C', '41.9°C', '42.0°C'];
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
time: 100,
|
|
|
selectIndex: 0,
|
|
|
- selectValue: ''
|
|
|
+ selectValue: '',
|
|
|
+ selectValuep: '',
|
|
|
}
|
|
|
},
|
|
|
mounted(){
|
|
|
this.selectValue=this.defaultVal||this.columns[0];
|
|
|
+ this.selectValuep=this.defaultVal||this.columnsp[0];
|
|
|
},
|
|
|
methods: {
|
|
|
changeTemp(picker, value, index) {
|
|
|
this.selectIndex = index;
|
|
|
this.selectValue = typeof(value)==="string"?value:value.join("");
|
|
|
+ this.selectValuep = typeof(value)==="string"?this.columnsp[index]:value.join("");
|
|
|
},
|
|
|
onConfirm() {
|
|
|
let number = this.num;
|
|
|
const value = this.selectValue;
|
|
|
+ const valuep = this.selectValuep;
|
|
|
if(+this.symptomResult.flag===1){ //为时间控件
|
|
|
const orgChoose = this.$store.state.symptom.choose;
|
|
|
orgChoose[0].special = value;
|
|
|
- orgChoose[0].specialP = value;
|
|
|
+ orgChoose[0].specialP = valuep;
|
|
|
this.$store.commit('setChoose', { choose: orgChoose, type: 1 });
|
|
|
}
|
|
|
- this.$emit('confirm','', {val:value,valp:value,flag:this.symptomResult.flag}, ++number)
|
|
|
+ this.$emit('confirm','', {val:value,valp:valuep,flag:this.symptomResult.flag}, ++number)
|
|
|
|
|
|
},
|
|
|
|