捐款记录-筛选-清空选择

This commit is contained in:
WindowBird 2025-09-18 09:22:45 +08:00
parent e408fad84d
commit 17940d484e

View File

@ -57,7 +57,7 @@
'custom-radio-button', 'custom-radio-button',
filter.orderAmount === 'desc' ? 'checked' : '', filter.orderAmount === 'desc' ? 'checked' : '',
]" ]"
@click="changeorderAmount('desc')" @click="changeOrderAmount('desc')"
> >
由高到低 由高到低
</view> </view>
@ -66,7 +66,7 @@
'custom-radio-button', 'custom-radio-button',
filter.orderAmount === 'asc' ? 'checked' : '', filter.orderAmount === 'asc' ? 'checked' : '',
]" ]"
@click="changeorderAmount('asc')" @click="changeOrderAmount('asc')"
> >
由低到高 由低到高
</view> </view>
@ -78,7 +78,7 @@
'custom-radio-button', 'custom-radio-button',
filter.orderTime === 'asc' ? 'checked' : '', filter.orderTime === 'asc' ? 'checked' : '',
]" ]"
@click="changeorderTime('asc')" @click="changeOrderTime('asc')"
> >
由远及近 由远及近
</view> </view>
@ -87,7 +87,7 @@
'custom-radio-button', 'custom-radio-button',
filter.orderTime === 'desc' ? 'checked' : '', filter.orderTime === 'desc' ? 'checked' : '',
]" ]"
@click="changeorderTime('desc')" @click="changeOrderTime('desc')"
> >
由近及远 由近及远
</view> </view>
@ -135,7 +135,7 @@
</view> </view>
<view class="optionColumn"> <view class="optionColumn">
<view class="reset"> <view class="reset" @click="resetFilter">
<text>清空选择</text> <text>清空选择</text>
</view> </view>
<view class="confirm" @click="filterSearch(filter)"> <view class="confirm" @click="filterSearch(filter)">
@ -212,7 +212,7 @@ export default {
this.loadMoreDonationRecords(); this.loadMoreDonationRecords();
}, },
methods: { methods: {
changeorderAmount(order) { changeOrderAmount(order) {
this.filter.orderAmount = order; this.filter.orderAmount = order;
this.filter.orderTime = ""; this.filter.orderTime = "";
@ -221,7 +221,7 @@ export default {
console.log("当前选择的排序方式:", order); console.log("当前选择的排序方式:", order);
// //
}, },
changeorderTime(order) { changeOrderTime(order) {
this.filter.orderTime = order; this.filter.orderTime = order;
this.filter.orderAmount = ""; this.filter.orderAmount = "";
this.filter.sortAmount = ""; this.filter.sortAmount = "";
@ -229,6 +229,15 @@ export default {
console.log("当前选择的排序方式:", order); console.log("当前选择的排序方式:", order);
// //
}, },
resetFilter() {
this.filter.orderTime = "";
this.filter.orderAmount = "";
this.filter.sortAmount = "";
this.filter.sortTime = "";
this.filter.minAmount = "";
this.filter.maxAmount = "";
},
// //
selectRange(item) { selectRange(item) {
this.selectedRange = { ...item }; this.selectedRange = { ...item };