提交 a742c5e2 编写于 作者: zhentian.jia's avatar zhentian.jia

数据保留问题 & 课程时长问题

上级 0fdf80e9
......@@ -14,7 +14,7 @@
<el-table :data="tableData" class="course-table">
<el-table-column prop="courseName" label="课程名" align="center"></el-table-column>
<el-table-column prop="courseTime" label="课程时长" align="center">
<template slot-scope="scope">{{ scope.row.courseTime | getTotalTime }}</template>
<template slot-scope="scope">{{ scope.row.courseTime | getAvgTime }}</template>
</el-table-column>
<el-table-column prop="averageTime" label="人均学习时长" align="center">
<template slot-scope="scope">{{ scope.row.averageTime | getAvgTime }}</template>
......
......@@ -838,7 +838,7 @@ export default {
xAxisData.push(data[i].subName);
seriesJoin.push(data[i].joinCount);
seriesCert.push(data[i].certCount);
seriesRate.push(data[i].certRate);
seriesRate.push(parseFloat((data[i].certRate).toFixed(1)));
}
setTimeout(function(){
let myChart = echarts.init(vm.$refs.certificateChart);
......@@ -859,7 +859,7 @@ export default {
let seriesData = [];
for(let i = 0 ; i<data.length ; i++) {
xAxisData.push(data[i].subName);
seriesData.push(data[i].costTime);
seriesData.push((data[i].costTime).toFixed(1));
}
setTimeout(function(){
let myChart = echarts.init(vm.$refs.durationChart);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册