mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 11:26:45 +08:00
fix: 运营数据概览bug修复
This commit is contained in:
@@ -452,7 +452,7 @@ export default {
|
|||||||
name: "报表中心",
|
name: "报表中心",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name:'营运数据概览'
|
name:'运营数据概览'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -334,7 +334,7 @@
|
|||||||
circle: selectedKeys[0] === 'sub17-1' ? false : true,
|
circle: selectedKeys[0] === 'sub17-1' ? false : true,
|
||||||
}"
|
}"
|
||||||
></span>
|
></span>
|
||||||
<router-link to="/operational">营运数据概览</router-link>
|
<router-link to="/operational">运营数据概览</router-link>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-sub-menu key="sub17-2" class="treeMenu">
|
<a-sub-menu key="sub17-2" class="treeMenu">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
@@ -747,7 +747,7 @@ export default {
|
|||||||
href: "/operational",
|
href: "/operational",
|
||||||
openKeys: "sub17",
|
openKeys: "sub17",
|
||||||
selectedKeys: "sub17-1",
|
selectedKeys: "sub17-1",
|
||||||
pagename: "营运数据概览",
|
pagename: "运营数据概览",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
href: "/learningpathmap",
|
href: "/learningpathmap",
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
<div class="left">学习情况</div>
|
<div class="left">学习情况</div>
|
||||||
<div class="right" @click="exportTwoData">
|
<div class="right" @click="exportTwoData">
|
||||||
<img src="../../assets/images/coursewareManage/export1.png" alt="" />
|
<img src="../../assets/images/coursewareManage/export1.png" alt="" />
|
||||||
<span>导出活动详情</span>
|
<span>导出学习情况</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
@@ -279,7 +279,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="leftEacharts" ref="surface3Ref"></div>
|
<div class="leftEacharts" ref="surface3Ref" @click="eChartClickRight"></div>
|
||||||
<div class="threeMsg">
|
<div class="threeMsg">
|
||||||
<div class="threeMsgItem">
|
<div class="threeMsgItem">
|
||||||
<div class="classNum" />
|
<div class="classNum" />
|
||||||
@@ -336,6 +336,9 @@ export default {
|
|||||||
|
|
||||||
const datess = ref();
|
const datess = ref();
|
||||||
const hackValues = ref();
|
const hackValues = ref();
|
||||||
|
const eChartClickRight=()=>{
|
||||||
|
console.log('11111')
|
||||||
|
}
|
||||||
const exportTwoData = async () => {
|
const exportTwoData = async () => {
|
||||||
if (state.towParmasn.dateType == 0) {
|
if (state.towParmasn.dateType == 0) {
|
||||||
if (!state.towParmasn.day?.length || state.towParmasn.day?.length < 1) {
|
if (!state.towParmasn.day?.length || state.towParmasn.day?.length < 1) {
|
||||||
@@ -381,7 +384,7 @@ export default {
|
|||||||
.format("YYYY-MM-DD hh:mm:ss");
|
.format("YYYY-MM-DD hh:mm:ss");
|
||||||
axios({
|
axios({
|
||||||
method: "post",
|
method: "post",
|
||||||
url: "/report/data/statistics/export/v2",
|
url: "/report/boeu/studyData/exportDetailAll",
|
||||||
data: {
|
data: {
|
||||||
beginTime: dayjs(state.towParmasn.time[0]).format(
|
beginTime: dayjs(state.towParmasn.time[0]).format(
|
||||||
"YYYY-MM-01 00:00:01"
|
"YYYY-MM-01 00:00:01"
|
||||||
@@ -541,7 +544,7 @@ export default {
|
|||||||
const count = [];
|
const count = [];
|
||||||
const duration = [];
|
const duration = [];
|
||||||
res?.data?.forEach((item) => {
|
res?.data?.forEach((item) => {
|
||||||
xData.push(item.month);
|
xData.push(item.day);
|
||||||
avgDuration.push(item.viewCount);
|
avgDuration.push(item.viewCount);
|
||||||
count.push(item.count);
|
count.push(item.count);
|
||||||
duration.push(item.duration);
|
duration.push(item.duration);
|
||||||
@@ -559,7 +562,7 @@ export default {
|
|||||||
const count = [];
|
const count = [];
|
||||||
const duration = [];
|
const duration = [];
|
||||||
res?.data?.forEach((item) => {
|
res?.data?.forEach((item) => {
|
||||||
xData.push(item.month);
|
xData.push(item.day);
|
||||||
avgDuration.push(item.avgDuration);
|
avgDuration.push(item.avgDuration);
|
||||||
count.push(item.count);
|
count.push(item.count);
|
||||||
duration.push(item.duration);
|
duration.push(item.duration);
|
||||||
@@ -1117,6 +1120,7 @@ export default {
|
|||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
|
eChartClickRight,
|
||||||
rightMonthChange,
|
rightMonthChange,
|
||||||
rightChange,
|
rightChange,
|
||||||
exportThree,
|
exportThree,
|
||||||
|
|||||||
Reference in New Issue
Block a user