|
@@ -61,6 +61,7 @@
|
|
|
import { listCourseWatchLog, getCourseWatchLog, delCourseWatchLog, addCourseWatchLog, updateCourseWatchLog, exportCourseWatchLog,watchLogStatistics,watchLogStatisticsExport } from "@/api/course/courseWatchLog";
|
|
|
import {allList}from "@/api/company/company";
|
|
|
import { courseList,videoList } from '@/api/course/courseRedPacketLog'
|
|
|
+import {getDateRange} from "@/utils/common";
|
|
|
export default {
|
|
|
name: "CourseWatchLog",
|
|
|
data() {
|
|
@@ -122,6 +123,12 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ // 设置默认时间范围为最近7天
|
|
|
+ this.createTime = getDateRange(7);
|
|
|
+ // 设置查询参数的时间
|
|
|
+ this.queryParams.sTime = this.createTime[0];
|
|
|
+ this.queryParams.eTime = this.createTime[1];
|
|
|
+
|
|
|
courseList().then(response => {
|
|
|
this.courseLists = response.list;
|
|
|
});
|
|
@@ -171,6 +178,11 @@ export default {
|
|
|
},
|
|
|
/** 查询短链课程看课记录列表 */
|
|
|
getList() {
|
|
|
+ if (!this.queryParams.sTime || !this.queryParams.eTime) {
|
|
|
+ this.$message.warning("请选择创建时间");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
this.loading = true;
|
|
|
if(this.queryParams.logType == "10"){
|
|
|
this.queryParams.logType = null;
|