Browse Source

新增行为数据库数据展示功能

zengyicheng 1 year ago
parent
commit
53c7879ab5
1 changed files with 11 additions and 5 deletions
  1. 11 5
      src/components/pages/learnAnalysis/components/beDataBase.vue

+ 11 - 5
src/components/pages/learnAnalysis/components/beDataBase.vue

@@ -265,8 +265,8 @@ export default {
           title: "获得评论次数",
           typeName: "同伴交互",
           detail: "获得他人回复评论的次数",
-          isOpen: 1,
-          value: "未开放",
+          isOpen: 0,
+          value: 0,
         },
         {
           id: 15,
@@ -274,8 +274,8 @@ export default {
           title: "点赞他人次数",
           typeName: "同伴交互",
           detail: "点赞他人联系的次数",
-          isOpen: 1,
-          value: "未开放",
+          isOpen: 0,
+          value: 0,
         },
         {
           id: 16,
@@ -341,6 +341,8 @@ export default {
             var courseRateList = res.data[5];
             var commentList = res.data[6];
             var likesList = res.data[7];
+            var otherLikes = res.data[8];
+            var otherComment = res.data[9];
             var sWorksCList = [];
             var cList = [];
             var tool = 0;
@@ -660,8 +662,12 @@ export default {
                 isTable[i].value = isGroup;
               } else if (isTable[i].title == "参与评论次数") {
                 isTable[i].value = commentList.length;
-              } else if (isTable[i].title == "获得点赞次数") {
+              } else if (isTable[i].title == "点赞他人次数") {
                 isTable[i].value = likesList.length;
+              } else if (isTable[i].title == "获得点赞次数") {
+                isTable[i].value = otherLikes.length;
+              } else if (isTable[i].title == "获得评论次数") {
+                isTable[i].value = otherComment.length;
               }
             }
             this.table = [...isTable];