|
@@ -208,6 +208,17 @@ nowTime =
|
|
// }
|
|
// }
|
|
// return {};
|
|
// return {};
|
|
// };
|
|
// };
|
|
|
|
+
|
|
|
|
+export const getCurrentMonth = () => {
|
|
|
|
+ return [
|
|
|
|
+ dayjs()
|
|
|
|
+ .startOf("month")
|
|
|
|
+ .format("YYYY-MM-DD"),
|
|
|
|
+ dayjs()
|
|
|
|
+ .endOf("month")
|
|
|
|
+ .format("YYYY-MM-DD")
|
|
|
|
+ ];
|
|
|
|
+};
|
|
export default {
|
|
export default {
|
|
components: { saveform, "ve-histogram": histogram, pagination },
|
|
components: { saveform, "ve-histogram": histogram, pagination },
|
|
name: "helpCategory",
|
|
name: "helpCategory",
|
|
@@ -215,14 +226,7 @@ export default {
|
|
return {
|
|
return {
|
|
nowIndex: dayjs(dayjs().format("YYYY-MM-DD")).valueOf(),
|
|
nowIndex: dayjs(dayjs().format("YYYY-MM-DD")).valueOf(),
|
|
searchForm: {
|
|
searchForm: {
|
|
- dates: [
|
|
|
|
- dayjs()
|
|
|
|
- .subtract(1, "day")
|
|
|
|
- .format("YYYY-MM-DD"),
|
|
|
|
- dayjs()
|
|
|
|
- .subtract(1, "day")
|
|
|
|
- .format("YYYY-MM-DD")
|
|
|
|
- ],
|
|
|
|
|
|
+ dates: getCurrentMonth(),
|
|
organId: "",
|
|
organId: "",
|
|
sort: null,
|
|
sort: null,
|
|
asc: null
|
|
asc: null
|
|
@@ -244,14 +248,7 @@ export default {
|
|
this.searchForm.organId = query.organId ? Number(query.organId) : "";
|
|
this.searchForm.organId = query.organId ? Number(query.organId) : "";
|
|
this.searchForm.dates = query.dates
|
|
this.searchForm.dates = query.dates
|
|
? JSON.parse(query.dates)
|
|
? JSON.parse(query.dates)
|
|
- : [
|
|
|
|
- dayjs()
|
|
|
|
- .subtract(1, "day")
|
|
|
|
- .format("YYYY-MM-DD"),
|
|
|
|
- dayjs()
|
|
|
|
- .subtract(1, "day")
|
|
|
|
- .format("YYYY-MM-DD")
|
|
|
|
- ];
|
|
|
|
|
|
+ : getCurrentMonth();
|
|
await this.$store.dispatch("setBranchs");
|
|
await this.$store.dispatch("setBranchs");
|
|
// const arr = [36, 39, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 52, 54, 56];
|
|
// const arr = [36, 39, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 52, 54, 56];
|
|
// this.specialList = this.selects.branchs.filter(item => {
|
|
// this.specialList = this.selects.branchs.filter(item => {
|
|
@@ -293,13 +290,10 @@ export default {
|
|
fileName: "云练习练习时长.xls",
|
|
fileName: "云练习练习时长.xls",
|
|
method: "post",
|
|
method: "post",
|
|
params: {
|
|
params: {
|
|
- exportEnum: "VIDEO_PLAY_DETAIL_STAT",
|
|
|
|
- queryInfo: {
|
|
|
|
- ...getTimeFormat(dates, ["startTime", "endTime"]),
|
|
|
|
- organizationId: organId,
|
|
|
|
- asc,
|
|
|
|
- sort
|
|
|
|
- }
|
|
|
|
|
|
+ ...getTimeFormat(dates, ["startTime", "endTime"]),
|
|
|
|
+ organizationId: organId,
|
|
|
|
+ asc,
|
|
|
|
+ sort
|
|
}
|
|
}
|
|
},
|
|
},
|
|
"您确定导出云练习练习时长?"
|
|
"您确定导出云练习练习时长?"
|