浏览代码

平均分

psycho 6 年之前
父节点
当前提交
a3127b45d5

+ 8 - 6
TEAMModelOS.SmartClass/ClientApp/view/smart-class/CommentVideo.vue

@@ -175,9 +175,11 @@
     },
     mounted() {
       let that = this;
+      let scoreList = lessonDetails[this.rowKey].score
       this.commmentList = lessonDetails[this.rowKey].commentList;
       this.expertComments = lessonDetails[this.rowKey].expertComments;
-      this.scoreList = lessonDetails[this.rowKey].score;
+      this.scoreList = scoreList;
+      this.score = (scoreList.reduce((acc, val) => acc + val, 0) / scoreList.length).toFixed(0)
 
       let myChart = this.$echarts.init(document.getElementById('views'));
       let radarLeft = this.$echarts.init(document.getElementById('radarLeft'));
@@ -312,11 +314,11 @@
 
       let scoreRightOption = {
           tooltip : {
-              formatter: "{a} <br/>{b} : {c}%"
+              formatter: "{a} {b} : {c}分"
           },
           series: [
               {
-                  name: '业务指标',
+                  name: '最终得分',
                   type: 'gauge',
                   radius:'80%',
                   splitNumber:'5',
@@ -325,8 +327,8 @@
                       fontWeight:'bolder',
                       padding:[0,0,0,0],
                       color:"#00868B"
-                  },
-                  data: [{value: 60}]
+              },
+              data: [{ value: this.score }]
               }
           ]
       };
@@ -450,7 +452,7 @@
   }
 
   .review-pane {
-    height: 700px;
+    max-height: 1000px;
     background-color: #fff;
     overflow-y: auto;
     position: relative;

+ 4 - 4
TEAMModelOS.SmartClass/ClientApp/view/smart-class/LoginPage.vue

@@ -260,8 +260,8 @@
   }
 
   .login-wrap .ivu-input:focus{
-            border: none !important;
-            outline: none !important;
-            box-shadow: none !important;
-        }
+      border: none !important;
+      outline: none !important;
+      box-shadow: none !important;
+  }
 </style>

+ 8 - 0
TEAMModelOS.SmartClass/ClientApp/view/smart-class/Video.vue

@@ -61,6 +61,7 @@
 <script>
   import rewardList from '@/static/rewardList.json'
   import"videojs-contrib-hls.js/src/videojs.hlsjs"
+import { setTimeout } from 'core-js';
   export default {
     data() {
       return {
@@ -123,6 +124,7 @@
             }
           }
         );
+          this.$refs.videoPlayer.player.src({ type: "application/x-mpegURL", src: "https://teammodelstorage.blob.core.chinacloudapi.cn/teammodelcontest/20190517/history/history.m3u8" });
       }
     },
     mounted() {
@@ -140,6 +142,8 @@
     
     watch: {
       $route() {
+        this.$Spin.show();
+        let that = this;
         let index = this.$route.query.rewardIndex;
         //alert(index);
         if (index == undefined) {
@@ -147,6 +151,10 @@
         } else {
           this.routerData = this.rewardDatas[index];
         }
+
+        setTimeout(function () {
+          that.$Spin.hide()
+        }, 500);
       }
     }
   }