运营数据概览默认学习人数和总学习时长,月份到本月

This commit is contained in:
weixiaobo@boe.com.cn
2023-08-28 13:44:30 +08:00
parent 687ed835bb
commit 1644672c97

View File

@@ -342,7 +342,7 @@ export default {
day: [], day: [],
}, },
modalFlag: false, modalFlag: false,
checkedList: [], checkedList: ['学习人数', '总学习时长'],
limitCheckedList: [], limitCheckedList: [],
plainOptions: ['学习人数', '总学习时长', '人均学习时长'], plainOptions: ['学习人数', '总学习时长', '人均学习时长'],
}); });
@@ -1159,7 +1159,7 @@ export default {
}, },
}, },
{ {
name: "人均学习时长111", name: "人均学习时长",
type: "line", type: "line",
data: [], data: [],
yAxisIndex: 1, yAxisIndex: 1,
@@ -1493,7 +1493,9 @@ export default {
}); });
}; };
const initTime = () => { const initTime = () => {
const monthEnd = dayjs(new Date()).endOf("year").format("YYYY-MM"); console.log("initTime:",dayjs(new Date()).year()+"-"+(dayjs(new Date()).month()));
// const monthEnd = dayjs(new Date()).endOf("year").format("YYYY-MM");
const monthEnd = dayjs(new Date()).year()+"-"+(dayjs(new Date()).month()+1);
const start = dayjs(new Date()).startOf("year").format("YYYY-MM"); const start = dayjs(new Date()).startOf("year").format("YYYY-MM");
state.threeTime = [dayjs(start), dayjs(monthEnd)]; state.threeTime = [dayjs(start), dayjs(monthEnd)];
state.forTime = [dayjs(start), dayjs(monthEnd)]; state.forTime = [dayjs(start), dayjs(monthEnd)];