捐款记录-筛选-清空选择
This commit is contained in:
parent
e408fad84d
commit
17940d484e
|
|
@ -57,7 +57,7 @@
|
|||
'custom-radio-button',
|
||||
filter.orderAmount === 'desc' ? 'checked' : '',
|
||||
]"
|
||||
@click="changeorderAmount('desc')"
|
||||
@click="changeOrderAmount('desc')"
|
||||
>
|
||||
由高到低
|
||||
</view>
|
||||
|
|
@ -66,7 +66,7 @@
|
|||
'custom-radio-button',
|
||||
filter.orderAmount === 'asc' ? 'checked' : '',
|
||||
]"
|
||||
@click="changeorderAmount('asc')"
|
||||
@click="changeOrderAmount('asc')"
|
||||
>
|
||||
由低到高
|
||||
</view>
|
||||
|
|
@ -78,7 +78,7 @@
|
|||
'custom-radio-button',
|
||||
filter.orderTime === 'asc' ? 'checked' : '',
|
||||
]"
|
||||
@click="changeorderTime('asc')"
|
||||
@click="changeOrderTime('asc')"
|
||||
>
|
||||
由远及近
|
||||
</view>
|
||||
|
|
@ -87,7 +87,7 @@
|
|||
'custom-radio-button',
|
||||
filter.orderTime === 'desc' ? 'checked' : '',
|
||||
]"
|
||||
@click="changeorderTime('desc')"
|
||||
@click="changeOrderTime('desc')"
|
||||
>
|
||||
由近及远
|
||||
</view>
|
||||
|
|
@ -135,7 +135,7 @@
|
|||
</view>
|
||||
|
||||
<view class="optionColumn">
|
||||
<view class="reset">
|
||||
<view class="reset" @click="resetFilter">
|
||||
<text>清空选择</text>
|
||||
</view>
|
||||
<view class="confirm" @click="filterSearch(filter)">
|
||||
|
|
@ -212,7 +212,7 @@ export default {
|
|||
this.loadMoreDonationRecords();
|
||||
},
|
||||
methods: {
|
||||
changeorderAmount(order) {
|
||||
changeOrderAmount(order) {
|
||||
this.filter.orderAmount = order;
|
||||
|
||||
this.filter.orderTime = "";
|
||||
|
|
@ -221,7 +221,7 @@ export default {
|
|||
console.log("当前选择的排序方式:", order);
|
||||
// 触发排序操作
|
||||
},
|
||||
changeorderTime(order) {
|
||||
changeOrderTime(order) {
|
||||
this.filter.orderTime = order;
|
||||
this.filter.orderAmount = "";
|
||||
this.filter.sortAmount = "";
|
||||
|
|
@ -229,6 +229,15 @@ export default {
|
|||
console.log("当前选择的排序方式:", order);
|
||||
// 触发排序操作
|
||||
},
|
||||
resetFilter() {
|
||||
this.filter.orderTime = "";
|
||||
this.filter.orderAmount = "";
|
||||
this.filter.sortAmount = "";
|
||||
this.filter.sortTime = "";
|
||||
this.filter.minAmount = "";
|
||||
this.filter.maxAmount = "";
|
||||
},
|
||||
|
||||
// 选择金额区间
|
||||
selectRange(item) {
|
||||
this.selectedRange = { ...item };
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user