Browse Source

修改样式问题

zengyicheng 2 năm trước cách đây
mục cha
commit
3cd8d94552

+ 1 - 1
src/components/pages/learnAnalysis/components/beDataBase.vue

@@ -1,5 +1,5 @@
 <template>
-  <div style="width: 94%; margin: 0 auto 10px">
+  <div style="width: 94%; margin: 0 auto 10px;height: 100%;overflow: auto;">
     <div class="student_head">
       <div class="student_search">
         <!-- <div>数据筛选</div>

+ 1 - 1
src/components/pages/learnAnalysis/learnAna.vue

@@ -46,7 +46,7 @@
           </div>
         </div>
       </div>
-      <div>
+      <div style="height: calc(100% - 80px)">
         <ModelBase v-if="type == 0"></ModelBase>
         <BeDataBase v-else></BeDataBase>
       </div>

+ 6 - 0
src/components/pages/myReport/myReport.vue

@@ -354,6 +354,7 @@ export default {
             return b.value - a.value;
           });
           this.cEvaScore = yzArray;
+          
           var ctArray = [];
           var cxtArray = [];
           for (var i = 0; i < cTypeList.length; i++) {
@@ -447,6 +448,11 @@ export default {
             overPer.studyTime = `${sTime}秒`;
           }
           overPer.sName = this.stuMessage.name;
+          var courseNum = 0;
+          for (var i = 0; i < yzArray.length; i++) {
+            courseNum += yzArray[i].value;
+          }
+          overPer.courseaScore = Math.floor(courseNum / yzArray.length);
           this.overPer = overPer;
           this.$forceUpdate();
         })