mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 10:56:46 +08:00
运营数据概览默认学习人数和总学习时长,月份到本月
This commit is contained in:
@@ -342,7 +342,7 @@ export default {
|
||||
day: [],
|
||||
},
|
||||
modalFlag: false,
|
||||
checkedList: [],
|
||||
checkedList: ['学习人数', '总学习时长'],
|
||||
limitCheckedList: [],
|
||||
plainOptions: ['学习人数', '总学习时长', '人均学习时长'],
|
||||
});
|
||||
@@ -1159,7 +1159,7 @@ export default {
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "人均学习时长111",
|
||||
name: "人均学习时长",
|
||||
type: "line",
|
||||
data: [],
|
||||
yAxisIndex: 1,
|
||||
@@ -1493,7 +1493,9 @@ export default {
|
||||
});
|
||||
};
|
||||
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");
|
||||
state.threeTime = [dayjs(start), dayjs(monthEnd)];
|
||||
state.forTime = [dayjs(start), dayjs(monthEnd)];
|
||||
|
||||
Reference in New Issue
Block a user