|
@@ -134,7 +134,7 @@ export default {
|
|
|
mName: "",
|
|
|
cn: "",
|
|
|
table: [],
|
|
|
- stuJuri:[],
|
|
|
+ stuJuri: [],
|
|
|
table1: [
|
|
|
{
|
|
|
id: 1,
|
|
@@ -229,8 +229,8 @@ export default {
|
|
|
title: "分组工具使用数量",
|
|
|
typeName: "同伴交互",
|
|
|
detail: "使用“分组”工具的数量",
|
|
|
- isOpen: 1,
|
|
|
- value: "未开放",
|
|
|
+ isOpen: 0,
|
|
|
+ value: 0,
|
|
|
},
|
|
|
{
|
|
|
id: 11,
|
|
@@ -238,8 +238,8 @@ export default {
|
|
|
title: "工具提交次数",
|
|
|
typeName: "工具使用",
|
|
|
detail: "使用工具提交的总次数(不算多次提交的情况)",
|
|
|
- isOpen: 1,
|
|
|
- value: "未开放",
|
|
|
+ isOpen: 0,
|
|
|
+ value: 0,
|
|
|
},
|
|
|
{
|
|
|
id: 12,
|
|
@@ -247,8 +247,8 @@ export default {
|
|
|
title: "参与评论次数",
|
|
|
typeName: "同伴交互",
|
|
|
detail: "回复他人的次数",
|
|
|
- isOpen: 1,
|
|
|
- value: "未开放",
|
|
|
+ isOpen: 0,
|
|
|
+ value: 0,
|
|
|
},
|
|
|
{
|
|
|
id: 13,
|
|
@@ -283,8 +283,8 @@ export default {
|
|
|
title: "获得点赞次数",
|
|
|
typeName: "同伴交互",
|
|
|
detail: "获得他人点赞的次数",
|
|
|
- isOpen: 1,
|
|
|
- value: "未开放",
|
|
|
+ isOpen: 0,
|
|
|
+ value: 0,
|
|
|
},
|
|
|
{
|
|
|
id: 17,
|
|
@@ -339,6 +339,8 @@ export default {
|
|
|
var studyAllTime = res.data[3];
|
|
|
var loginAllTime = res.data[4];
|
|
|
var courseRateList = res.data[5];
|
|
|
+ var commentList = res.data[6];
|
|
|
+ var likesList = res.data[7];
|
|
|
var sWorksCList = [];
|
|
|
var cList = [];
|
|
|
var tool = 0;
|
|
@@ -476,8 +478,11 @@ export default {
|
|
|
} else {
|
|
|
overPer.qtGdp = 0;
|
|
|
}
|
|
|
-
|
|
|
+ var group = 0;
|
|
|
for (var i = 0; i < sWorksList.length; i++) {
|
|
|
+ if (sWorksList[i].atool == "49") {
|
|
|
+ group++;
|
|
|
+ }
|
|
|
for (var j = 0; j < courseList.length; j++) {
|
|
|
if (sWorksList[i].courseid == courseList[j].courseId) {
|
|
|
isFinish++;
|
|
@@ -486,6 +491,7 @@ export default {
|
|
|
}
|
|
|
var allToolWorks = tool;
|
|
|
var isFinishTaskWorks = isFinish;
|
|
|
+ var isGroup = group;
|
|
|
if (allToolWorks > 0) {
|
|
|
overPer.toolSubRate = (
|
|
|
(isFinishTaskWorks / allToolWorks) *
|
|
@@ -567,9 +573,9 @@ export default {
|
|
|
} else if (days == 0 && hours > 0) {
|
|
|
overPer.loginTime = `${hours}小时${minutes}分钟`;
|
|
|
} else if (days == 0 && hours == 0 && minutes > 0) {
|
|
|
- overPer.loginTime = `${minutes}分钟${loginAllTime}秒`;
|
|
|
+ overPer.loginTime = `${minutes}分钟${lTime}秒`;
|
|
|
} else {
|
|
|
- overPer.loginTime = `${loginAllTime}秒`;
|
|
|
+ overPer.loginTime = `${lTime}秒`;
|
|
|
}
|
|
|
var sTime = 0;
|
|
|
for (var i = 0; i < studyAllTime.length; i++) {
|
|
@@ -648,6 +654,14 @@ export default {
|
|
|
isTable[i].value = courseNum;
|
|
|
} else if (isTable[i].title == "目标得分") {
|
|
|
isTable[i].value = mbNum;
|
|
|
+ } else if (isTable[i].title == "工具提交次数") {
|
|
|
+ isTable[i].value = isFinishTaskWorks;
|
|
|
+ } else if (isTable[i].title == "分组工具使用数量") {
|
|
|
+ isTable[i].value = isGroup;
|
|
|
+ } else if (isTable[i].title == "参与评论次数") {
|
|
|
+ isTable[i].value = commentList.length;
|
|
|
+ } else if (isTable[i].title == "获得点赞次数") {
|
|
|
+ isTable[i].value = likesList.length;
|
|
|
}
|
|
|
}
|
|
|
this.table = [...isTable];
|
|
@@ -660,7 +674,7 @@ export default {
|
|
|
this.table = [];
|
|
|
}
|
|
|
},
|
|
|
- selectStu(){
|
|
|
+ selectStu() {
|
|
|
let params = {
|
|
|
oid: this.ooid,
|
|
|
};
|
|
@@ -674,7 +688,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
},
|
|
|
- created(){
|
|
|
+ created() {
|
|
|
this.selectStu();
|
|
|
},
|
|
|
};
|