|
|
@@ -302,17 +302,17 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- // 默认查询最近30天的数据
|
|
|
- const now = new Date();
|
|
|
- const thirtyDaysAgo = new Date();
|
|
|
- thirtyDaysAgo.setDate(thirtyDaysAgo.getDate() - 30);
|
|
|
- const pad = (n) => String(n).padStart(2, '0');
|
|
|
- this.createTime = [
|
|
|
- `${thirtyDaysAgo.getFullYear()}-${pad(thirtyDaysAgo.getMonth() + 1)}-${pad(thirtyDaysAgo.getDate())} 00:00:00`,
|
|
|
- `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())} 23:59:59`
|
|
|
- ];
|
|
|
- this.queryParams.sTime = this.createTime[0];
|
|
|
- this.queryParams.eTime = this.createTime[1];
|
|
|
+ // // 默认查询最近30天的数据
|
|
|
+ // const now = new Date();
|
|
|
+ // const thirtyDaysAgo = new Date();
|
|
|
+ // thirtyDaysAgo.setDate(thirtyDaysAgo.getDate() - 30);
|
|
|
+ // const pad = (n) => String(n).padStart(2, '0');
|
|
|
+ // this.createTime = [
|
|
|
+ // `${thirtyDaysAgo.getFullYear()}-${pad(thirtyDaysAgo.getMonth() + 1)}-${pad(thirtyDaysAgo.getDate())} 00:00:00`,
|
|
|
+ // `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())} 23:59:59`
|
|
|
+ // ];
|
|
|
+ // this.queryParams.sTime = this.createTime[0];
|
|
|
+ // this.queryParams.eTime = this.createTime[1];
|
|
|
|
|
|
this.getList();
|
|
|
getCompanyList().then(response => {
|
|
|
@@ -382,8 +382,8 @@ export default {
|
|
|
}
|
|
|
this.loading = true;
|
|
|
listCourseRedPacketLog(this.queryParams).then(response => {
|
|
|
- this.courseRedPacketLogList = response.rows;
|
|
|
- this.total = response.total;
|
|
|
+ this.courseRedPacketLogList = response.data.list;
|
|
|
+ this.total = response.data.total;
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|