Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
a742c5e2
提交
a742c5e2
编写于
12月 09, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
数据保留问题 & 课程时长问题
上级
0fdf80e9
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
3 行增加
和
3 行删除
+3
-3
item-course-analysis.vue
src/views/learning/item-course-analysis.vue
+1
-1
item-data-all.vue
src/views/learning/item-data-all.vue
+2
-2
未找到文件。
src/views/learning/item-course-analysis.vue
浏览文件 @
a742c5e2
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<el-table
:data=
"tableData"
class=
"course-table"
>
<el-table
:data=
"tableData"
class=
"course-table"
>
<el-table-column
prop=
"courseName"
label=
"课程名"
align=
"center"
></el-table-column>
<el-table-column
prop=
"courseName"
label=
"课程名"
align=
"center"
></el-table-column>
<el-table-column
prop=
"courseTime"
label=
"课程时长"
align=
"center"
>
<el-table-column
prop=
"courseTime"
label=
"课程时长"
align=
"center"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
courseTime
|
get
Total
Time
}}
</
template
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
courseTime
|
get
Avg
Time
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"averageTime"
label=
"人均学习时长"
align=
"center"
>
<el-table-column
prop=
"averageTime"
label=
"人均学习时长"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
averageTime
|
getAvgTime
}}
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
averageTime
|
getAvgTime
}}
</
template
>
...
...
src/views/learning/item-data-all.vue
浏览文件 @
a742c5e2
...
@@ -838,7 +838,7 @@ export default {
...
@@ -838,7 +838,7 @@ export default {
xAxisData
.
push
(
data
[
i
].
subName
);
xAxisData
.
push
(
data
[
i
].
subName
);
seriesJoin
.
push
(
data
[
i
].
joinCount
);
seriesJoin
.
push
(
data
[
i
].
joinCount
);
seriesCert
.
push
(
data
[
i
].
certCount
);
seriesCert
.
push
(
data
[
i
].
certCount
);
seriesRate
.
push
(
data
[
i
].
certRate
);
seriesRate
.
push
(
parseFloat
((
data
[
i
].
certRate
).
toFixed
(
1
))
);
}
}
setTimeout
(
function
(){
setTimeout
(
function
(){
let
myChart
=
echarts
.
init
(
vm
.
$refs
.
certificateChart
);
let
myChart
=
echarts
.
init
(
vm
.
$refs
.
certificateChart
);
...
@@ -859,7 +859,7 @@ export default {
...
@@ -859,7 +859,7 @@ export default {
let
seriesData
=
[];
let
seriesData
=
[];
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
xAxisData
.
push
(
data
[
i
].
subName
);
xAxisData
.
push
(
data
[
i
].
subName
);
seriesData
.
push
(
data
[
i
].
costTime
);
seriesData
.
push
(
(
data
[
i
].
costTime
).
toFixed
(
1
)
);
}
}
setTimeout
(
function
(){
setTimeout
(
function
(){
let
myChart
=
echarts
.
init
(
vm
.
$refs
.
durationChart
);
let
myChart
=
echarts
.
init
(
vm
.
$refs
.
durationChart
);
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录