lsc 2 年之前
父節點
當前提交
b778f15351
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      src/views/course/components/stepsBox.vue

+ 12 - 0
src/views/course/components/stepsBox.vue

@@ -655,6 +655,18 @@ export default {
               }
             }
           }
+          // if (worksStudent[step] && worksStudent[step].length) {
+          //   worksStudent[step] = worksStudent[step].sort(function(a, b) {
+          //     const jscoreA = a.score ? JSON.parse(a.score).wScore : 0
+          //     const jscoreB = b.score ? JSON.parse(b.score).wScore : 0
+          //     var scoreA = parseFloat(jscoreA)
+          //     var scoreB = parseFloat(jscoreB)
+          //     if (scoreA === scoreB) {
+          //       return b.likesCount - a.likesCount
+          //     }
+          //     return scoreB - scoreA
+          //   })
+          // }
           this.worksStudent = worksStudent
           this.isCloseList = isCloseList
           this.groupStudent = groupStudent