|
@@ -733,10 +733,13 @@ export default {
|
|
|
this.scourseJson.toolNum = res.data[17][0].count; //使用工具
|
|
|
this.scourseJson.gcourseNum = res.data[18][0].count; //协同
|
|
|
|
|
|
+ let loginUser = res.data[20].length; //登录
|
|
|
+ let worksEva = res.data[21][0].count; //评价
|
|
|
+
|
|
|
this.courseArray = [
|
|
|
{
|
|
|
- value: ((this.studentCount / this.studentCount) * 100).toFixed(0),
|
|
|
- name: "学生总数",
|
|
|
+ value: loginUser ? ((loginUser / this.studentCount) * 100).toFixed(0) : 0,
|
|
|
+ name: "登录",//登录
|
|
|
},
|
|
|
{
|
|
|
value: this.courseJson.courseNum
|
|
@@ -753,21 +756,21 @@ export default {
|
|
|
0
|
|
|
)
|
|
|
: 0,
|
|
|
- name: "使用工具",
|
|
|
+ name: "提交作业",//使用工具
|
|
|
},
|
|
|
{
|
|
|
- value: this.courseJson.exchangeNum
|
|
|
+ value: worksEva
|
|
|
? (
|
|
|
- (this.courseJson.exchangeNum / this.studentCount) *
|
|
|
+ (worksEva / this.studentCount) *
|
|
|
100
|
|
|
).toFixed(0)
|
|
|
: 0,
|
|
|
- name: "互动交流",
|
|
|
+ name: "评价",//互动交流
|
|
|
},
|
|
|
];
|
|
|
this.scourseArray = [
|
|
|
{
|
|
|
- value: ((this.studentCount / this.studentCount) * 100).toFixed(0),
|
|
|
+ value: loginUser ? ((loginUser / this.studentCount) * 100).toFixed(0) : 0,
|
|
|
name: "学生总数",
|
|
|
},
|
|
|
{
|
|
@@ -786,7 +789,7 @@ export default {
|
|
|
100
|
|
|
).toFixed(0)
|
|
|
: 0,
|
|
|
- name: "使用工具",
|
|
|
+ name: "提交作业",//使用工具
|
|
|
},
|
|
|
{
|
|
|
value: this.scourseJson.gcourseNum
|