yys 14 시간 전
부모
커밋
f4165a9b64
1개의 변경된 파일13개의 추가작업 그리고 13개의 파일을 삭제
  1. 13 13
      src/views/course/courseRedPacketLog/index.vue

+ 13 - 13
src/views/course/courseRedPacketLog/index.vue

@@ -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;
       });
     },