story#6462,筛选项问题

This commit is contained in:
2025-05-22 11:55:08 +08:00
parent 851a0e7260
commit 56e56c7839

View File

@ -160,7 +160,8 @@
</div>
</div>
</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
v-model="areaShow"
position="bottom"
@ -222,6 +223,8 @@ export default {
showDatePicker: false,
areaShow:false,
isClearing:false,
minDate: new Date(1970, 0, 1), // 设置最小可选日期1970年1月1日
maxDate: new Date(2099, 11, 31) // 设置最大可选日期2099年12月31日
}
},
watch:{
@ -246,6 +249,9 @@ export default {
this.getList()
},
areaName() {
if (!this.areaName){
this.areaCode=''
}
this.setSearchVal();
this.getList()
},