|
|
@@ -243,12 +243,13 @@ export default {
|
|
|
methods: {
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
+ // 处理日期范围参数
|
|
|
const params = { ...this.queryParams };
|
|
|
if (this.dateRange && this.dateRange.length === 2) {
|
|
|
params.startDate = this.dateRange[0];
|
|
|
params.endDate = this.dateRange[1];
|
|
|
}
|
|
|
- listCollection(this.queryParams).then(response => {
|
|
|
+ listCollection(params).then(response => {
|
|
|
this.collectionList = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|