|
@@ -191,6 +191,7 @@ import dayjs from "dayjs";
|
|
|
import histogram from "v-charts/lib/histogram.common";
|
|
|
import { getNowDateAndMonday, getNowDateAndSunday } from "@/utils/utils";
|
|
|
import { api_studentCoursewarePlayRecordDetail } from "../api";
|
|
|
+import { getTimeFormat } from "@/utils";
|
|
|
let nowTime = new Date();
|
|
|
nowTime =
|
|
|
nowTime.getFullYear() +
|
|
@@ -198,15 +199,15 @@ nowTime =
|
|
|
(nowTime.getMonth() + 1) +
|
|
|
"-" +
|
|
|
nowTime.getDate();
|
|
|
-export const getTimes = (times, keys = []) => {
|
|
|
- if (times && times.length) {
|
|
|
- return {
|
|
|
- [keys[0] || "start"]: dayjs(times[0]).format("YYYY-MM-DD"),
|
|
|
- [keys[1] || "start"]: dayjs(times[1]).format("YYYY-MM-DD")
|
|
|
- };
|
|
|
- }
|
|
|
- return {};
|
|
|
-};
|
|
|
+// export const getTimes = (times, keys = []) => {
|
|
|
+// if (times && times.length) {
|
|
|
+// return {
|
|
|
+// [keys[0] || "start"]: dayjs(times[0]).format("YYYY-MM-DD"),
|
|
|
+// [keys[1] || "start"]: dayjs(times[1]).format("YYYY-MM-DD")
|
|
|
+// };
|
|
|
+// }
|
|
|
+// return {};
|
|
|
+// };
|
|
|
export default {
|
|
|
components: { saveform, "ve-histogram": histogram, pagination },
|
|
|
name: "helpCategory",
|
|
@@ -292,8 +293,9 @@ export default {
|
|
|
fileName: "云练习练习时长.xls",
|
|
|
method: "post",
|
|
|
params: {
|
|
|
+ exportEnum: "VIDEO_PLAY_DETAIL_STAT",
|
|
|
queryInfo: {
|
|
|
- ...getTimes(dates, ["startDate", "endDate"]),
|
|
|
+ ...getTimeFormat(dates, ["startTime", "endTime"]),
|
|
|
organizationId: organId,
|
|
|
asc,
|
|
|
sort
|
|
@@ -354,7 +356,7 @@ export default {
|
|
|
let params = {
|
|
|
sort,
|
|
|
asc,
|
|
|
- ...getTimes(dates, ["startDate", "endDate"]),
|
|
|
+ ...getTimeFormat(dates, ["startTime", "endTime"]),
|
|
|
organId
|
|
|
};
|
|
|
const res = await api_studentCoursewarePlayRecordDetail({
|