OnePsycho 2 年 前
コミット
5457b5b66f

+ 1 - 0
TEAMModelOS/ClientApp/src/view/research-center/ReportPreview.vue

@@ -238,6 +238,7 @@ export default {
       }
     })
     let sortTchCountArr = this.tchCountArr.sort((a, b) => b.count - a.count)
+    this.tchCountArr = this.tchCountArr.slice(0, 10) // 只展示前十名教师排行
     if (sortTchCountArr.length > 2) {
       this.analysisText.tch = `教师应用数量,${this.condRange}共${list.length}节,其中 ${sortTchCountArr[0].name} 老师 ${sortTchCountArr[0].count} 节, ${sortTchCountArr[1].name} 老师 ${sortTchCountArr[1].count} 节,${sortTchCountArr[2].name} 老师 ${sortTchCountArr[2].count} 节,是${this.condRange}应用数据前三。`
     } else {

+ 15 - 2
TEAMModelOS/ClientApp/src/view/research-center/ResearchMgt.vue

@@ -957,7 +957,20 @@ export default {
         this.$Message.warning('未查询到课例数据,无法导出')
         return
       }
-      this.$Spin.show()
+      this.$Spin.show({
+        render: (h) => {
+          return h('div', [
+            h('Icon', {
+              'class': 'demo-spin-icon-load',
+              props: {
+                type: 'ios-loading',
+                size: 18
+              }
+            }),
+            h('div', '课例数量过多时,请耐心等待报告生成~')
+          ])
+        }
+      })
       this.filterParams.continuationToken = null
       this.filterParams.pageCount = 9999
       // 查询符合条件的所有课例数据 进入分析报告页面
@@ -976,7 +989,7 @@ export default {
           })
           let lessonList = res.lessonRecords
           lessonList.forEach(i => {
-            i.subjectName = this.curPeriod.subjects.find(j => j.id === i.subjectId).name
+            i.subjectName = this.curPeriod.subjects.find(j => j.id === i.subjectId)?.name
           })
           console.log(lessonList)
           this.$Spin.hide()

+ 1 - 1
TEAMModelOS/ClientApp/src/view/research-center/reportCharts/BaseTchBar.vue

@@ -19,7 +19,7 @@ export default {
       let myChart = this.$echarts.init(document.getElementById('reportBar'))
       let option = {
         title: {
-          text: '教师授课数统计图',
+          text: '教师授课数统计图(前10名)',
           left: 'center',
           top: '0',
           textStyle: {