🐛 交易记录查询问题修复
This commit is contained in:
parent
f9c9fd0b03
commit
b45ea4e8db
@ -108,6 +108,11 @@ export default {
|
|||||||
type: Object
|
type: Object
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
bankAccount() {
|
||||||
|
this.resetSearchDate()
|
||||||
|
}
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
pickerOptions: {
|
pickerOptions: {
|
||||||
@ -169,14 +174,17 @@ export default {
|
|||||||
},
|
},
|
||||||
searchTransactionRecord(dates) {
|
searchTransactionRecord(dates) {
|
||||||
this.$emit('searchTransactionRecord', dates);
|
this.$emit('searchTransactionRecord', dates);
|
||||||
|
},
|
||||||
|
resetSearchDate() {
|
||||||
|
const end = new Date();
|
||||||
|
const start = new Date();
|
||||||
|
start.setMonth(start.getMonth() - 1);
|
||||||
|
let searchDate = [start, end]
|
||||||
|
this.searchDate = searchDate
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const end = new Date();
|
this.resetSearchDate()
|
||||||
const start = new Date();
|
|
||||||
start.setMonth(start.getMonth() - 1);
|
|
||||||
let searchDate = [start, end]
|
|
||||||
this.searchDate = searchDate
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -140,7 +140,7 @@ export default {
|
|||||||
let _ts = this
|
let _ts = this
|
||||||
let startDate = dates[0]
|
let startDate = dates[0]
|
||||||
let endDate = dates[1]
|
let endDate = dates[1]
|
||||||
_ts.$store.dispatch('wallet/fetchTransactionRecordList', {
|
_ts.$store.dispatch('bank-account/fetchTransactionRecordList', {
|
||||||
bankAccount: _ts.bankAccount,
|
bankAccount: _ts.bankAccount,
|
||||||
startDate: startDate,
|
startDate: startDate,
|
||||||
endDate: endDate
|
endDate: endDate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user