story#6462,筛选项问题
This commit is contained in:
@ -160,7 +160,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</van-popup>
|
</van-popup>
|
||||||
<van-calendar v-model="showDatePicker" type="range" @confirm="onConfirm" />
|
<van-calendar v-model="showDatePicker" :min-date="minDate"
|
||||||
|
:max-date="maxDate" type="range" @confirm="onConfirm" />
|
||||||
<van-popup
|
<van-popup
|
||||||
v-model="areaShow"
|
v-model="areaShow"
|
||||||
position="bottom"
|
position="bottom"
|
||||||
@ -222,6 +223,8 @@ export default {
|
|||||||
showDatePicker: false,
|
showDatePicker: false,
|
||||||
areaShow:false,
|
areaShow:false,
|
||||||
isClearing:false,
|
isClearing:false,
|
||||||
|
minDate: new Date(1970, 0, 1), // 设置最小可选日期(1970年1月1日)
|
||||||
|
maxDate: new Date(2099, 11, 31) // 设置最大可选日期(2099年12月31日)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
@ -246,6 +249,9 @@ export default {
|
|||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
areaName() {
|
areaName() {
|
||||||
|
if (!this.areaName){
|
||||||
|
this.areaCode=''
|
||||||
|
}
|
||||||
this.setSearchVal();
|
this.setSearchVal();
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user