lsc 1 tahun lalu
induk
melakukan
d530735ae7

+ 1 - 1
dist/index.html

@@ -25,7 +25,7 @@
       height: 100%;
       width: 100%;
       background: #e6eaf0;
-    }</style><link href=./static/css/app.438dc4809c7e3fed1f51f3b97710b47e.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3512a67a6213c2df4180.js></script><script type=text/javascript src=./static/js/vendor.b01159b52abeac4e6216.js></script><script type=text/javascript src=./static/js/app.f6ac0513916fd6d3c631.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.e4917afd48c15a9bfd01e6f3f69c0878.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3512a67a6213c2df4180.js></script><script type=text/javascript src=./static/js/vendor.b01159b52abeac4e6216.js></script><script type=text/javascript src=./static/js/app.56587f86139fe05daf3a.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/css/app.e4917afd48c15a9bfd01e6f3f69c0878.css


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/css/app.e4917afd48c15a9bfd01e6f3f69c0878.css.map


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/js/app.56587f86139fe05daf3a.js


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/js/app.56587f86139fe05daf3a.js.map


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/js/manifest.3512a67a6213c2df4180.js.map


TEMPAT SAMPAH
src/assets/icon/new/test_hf.png


TEMPAT SAMPAH
src/assets/icon/new/test_pl.png


+ 15 - 1
src/components/pages/dataBoardNew/course/chartList/subjuect.vue

@@ -38,6 +38,20 @@ export default {
         credits: {
             enabled: false//不显示LOGO
         },
+        tooltip: {
+          formatter: function() {
+            // 自定义弹窗内容的回调函数
+            var point = this.point;
+            if(point.from){
+              var tooltipText = '<b>' + point.from + '</b> - <b>' + point.to + '</b>: ' + point.weight;
+              return tooltipText;
+            }else{
+              var tooltipText = '<b>' + point.name + '</b>: ' + point.sum;
+              return tooltipText;
+            }
+
+          }
+        },
         series: [{
           keys: ['from', 'to', 'weight'],
           data: [
@@ -90,7 +104,7 @@ export default {
             // ['Japan', 'Brazil', 1]
           ],
           type: 'dependencywheel',
-          name: 'Dependency wheel series',
+          name: '',
           dataLabels: {
             color: '#333',
             textPath: {

+ 26 - 10
src/components/pages/dataBoardNew/project/chartList/courseNum.vue

@@ -72,13 +72,20 @@ export default {
               enabled: true,  //显示数量提示
               color: '#000000',
               formatter : function() {
-                var employee = this.point.series.chart.series[0].yData[this.point.index];
-                var optimizedEmployee = this.point.series.chart.series[1].yData[this.point.index];
+                var employee = this.point.series.chart.series[0].yData[this.point.index]; //上个月
+                var optimizedEmployee = this.point.series.chart.series[1].yData[this.point.index]; //这个月
                 var employeePercentage = 0;
-                if(optimizedEmployee > employee){
-                  employeePercentage = ((optimizedEmployee - employee) / optimizedEmployee) * 100
+                console.log(employee, optimizedEmployee);
+                if(optimizedEmployee < employee){
+                  employeePercentage = ((optimizedEmployee - employee) / employee) * 100
+                }else if(optimizedEmployee == 0 && employee == 0){
+                  employeePercentage = 0
+                }else if(optimizedEmployee > 0 && employee == 0){
+                  employeePercentage = (optimizedEmployee) * 100
+                }else {
+                  employeePercentage = ((optimizedEmployee - employee) / employee) * 100
                 }
-                if (this.series.name === '本月课程总数') {
+                if (this.series.name === '本月项目总数') {
                   return  employeePercentage.toFixed(1) + '%';
                 } else {
                   return '';
@@ -88,13 +95,13 @@ export default {
           }
         },
         series: [{
-          name: '上月课程总数',
+          name: '上月项目总数',
           color: 'rgba(165,170,217,1)',
           data: [],
           pointPadding: 0.3, // 通过 pointPadding 和 pointPlacement 控制柱子位置
           // pointPlacement: -0.2
         }, {
-          name: '本月课程总数',
+          name: '本月项目总数',
           color: 'rgba(126,86,134,.9)',
           data: [],
           pointPadding: 0.4,
@@ -138,9 +145,18 @@ export default {
       this.option.series[0].data = []
       this.option.series[1].data = []
       for (var i = 0; i < array.length; i++) {
-        this.option.xAxis.categories.push(array[i].name)
-        this.option.series[0].data.push(array[i].lastWeekCouseCount)
-        this.option.series[1].data.push(array[i].toWeekCouseCount)
+        // this.option.xAxis.categories.push(array[i].name)
+        // this.option.series[0].data.push(array[i].lastWeekCouseCount)
+        // this.option.series[1].data.push(array[i].toWeekCouseCount)
+        this.option.xAxis.categories.push('师生主导')
+        this.option.series[0].data.push(array[i].tslastWeekCouseCount)
+        this.option.series[1].data.push(array[i].tstoWeekCouseCount)
+        this.option.xAxis.categories.push('老师主导')
+        this.option.series[0].data.push(array[i].ttlastWeekCouseCount)
+        this.option.series[1].data.push(array[i].tttoWeekCouseCount)
+        this.option.xAxis.categories.push('学生主导')
+        this.option.series[0].data.push(array[i].sslastWeekCouseCount)
+        this.option.series[1].data.push(array[i].sstoWeekCouseCount)
       }
     }
   },

+ 1 - 1
src/components/pages/dataBoardNew/project/chartList/subjuect.vue

@@ -85,7 +85,7 @@ export default {
             ['Japan', 'Brazil', 1]
           ],
           type: 'dependencywheel',
-          name: 'Dependency wheel series',
+          name: '',
           dataLabels: {
             color: '#333',
             textPath: {

+ 59 - 10
src/components/pages/dataBoardNew/project/index.vue

@@ -206,16 +206,16 @@
               flex-wrap: nowrap;
               align-items: center;
             ">
-            <div class="title" :class="{ isClick: toolType == 0 }" @click="toolType = 0"
-              style="cursor: pointer; padding: 0 0 5px 0">
-              项目占比
-            </div>
             <div class="title" :class="{ isClick: toolType == 1 }" @click="toolType = 1"
               style="cursor: pointer; padding: 0 0 5px 0">
               工具使用
             </div>
+            <div class="title" :class="{ isClick: toolType == 0 }" @click="toolType = 0"
+              style="cursor: pointer; padding: 0 0 5px 0">
+              项目占比
+            </div>
           </div>
-          <el-select v-model="cType4" class="selectBox" style="width: 110px" v-if="toolType == 0 && courseNumberArray.length"  @change="typeChange">
+          <el-select v-model="cType4" class="selectBox" style="width: 110px" v-if="toolType == 0 && (gradeCourseList.length || subjectCourseList.length)"  @change="typeChange">
             <el-option label="赛道" value="box"></el-option>
             <el-option label="主题" value="theme"></el-option>
           </el-select>
@@ -317,7 +317,7 @@ export default {
       cType7: "全部课程",
       cType8: "全部年级",
       cType9: "全部学科",
-      toolType: 0,
+      toolType: 1,
       tType: 0,
       skType:  1,
       courseType: 0,
@@ -339,6 +339,7 @@ export default {
       gradeCourseList:[],
       subjectCourseList:[],
       courseNumberArray:[],
+      pCourseList:[],
       courseArray: []
     };
   },
@@ -534,7 +535,13 @@ export default {
           let weekCourse = [{
             name: '项目数量',
             lastWeekCouseCount: 0,
-            toWeekCouseCount: 0
+            toWeekCouseCount: 0,
+            ttlastWeekCouseCount: 0,
+            tttoWeekCouseCount: 0,
+            tslastWeekCouseCount: 0,
+            tstoWeekCouseCount: 0,
+            sslastWeekCouseCount: 0,
+            sstoWeekCouseCount: 0,
           }]
           // for (var i = 0; i < 14; i++) {
           //   let time = JSON.parse(JSON.stringify(lastDayOfWeek))
@@ -548,9 +555,9 @@ export default {
           // }
           weekArray = this.getMonth()
           var _tsArray = {
-            tt: 0,
-            ts: 0,
-            ss: 0,
+            tt: 0, // 老师
+            ts: 0, //师生
+            ss: 0,//学生
           } //记录项目的师生分工
 
           for (var i = 0; i < _workCourse.length; i++) {
@@ -565,15 +572,53 @@ export default {
                   weekCourse[0].toWeekCouseCount++
                 }
               }
+              
               if ((_workCourse[i].type == _workCourse[i].type2 == 1) || (!_workCourse[i].type2 && _workCourse[i].type == 1)) {
                 _tsArray.tt++
+                if (new Date(_workCourse[i].create_at) > _date) {
+                  var a = new Date(_workCourse[i].create_at)
+                  var string = a.getFullYear() + '-' + (a.getMonth() + 1) + '-' + a.getDate()
+                  if (weekArray.lastWeek.indexOf(string) != -1) {
+                    weekCourse[0].ttlastWeekCouseCount++
+                  } else {
+                    weekCourse[0].tttoWeekCouseCount++
+                  }
+                }
               } else if ((_workCourse[i].type == 2 && _workCourse[i].type2 == 1) || (_workCourse[i].type == 1 && _workCourse[i].type2 == 2)) {
                 _tsArray.ts++
+                if (new Date(_workCourse[i].create_at) > _date) {
+                  var a = new Date(_workCourse[i].create_at)
+                  var string = a.getFullYear() + '-' + (a.getMonth() + 1) + '-' + a.getDate()
+                  if (weekArray.lastWeek.indexOf(string) != -1) {
+                    weekCourse[0].tslastWeekCouseCount++
+                  } else {
+                    weekCourse[0].tstoWeekCouseCount++
+                  }
+                }
               } else if ((_workCourse[i].type == _workCourse[i].type2 == 2) || (!_workCourse[i].type2 && _workCourse[i].type == 2)) {
                 _tsArray.ss++
+                if (new Date(_workCourse[i].create_at) > _date) {
+                  var a = new Date(_workCourse[i].create_at)
+                  var string = a.getFullYear() + '-' + (a.getMonth() + 1) + '-' + a.getDate()
+                  if (weekArray.lastWeek.indexOf(string) != -1) {
+                    weekCourse[0].sslastWeekCouseCount++
+                  } else {
+                    weekCourse[0].sstoWeekCouseCount++
+                  }
+                }
               } else {
                 _tsArray.ts++
+                if (new Date(_workCourse[i].create_at) > _date) {
+                  var a = new Date(_workCourse[i].create_at)
+                  var string = a.getFullYear() + '-' + (a.getMonth() + 1) + '-' + a.getDate()
+                  if (weekArray.lastWeek.indexOf(string) != -1) {
+                    weekCourse[0].tslastWeekCouseCount++
+                  } else {
+                    weekCourse[0].tstoWeekCouseCount++
+                  }
+                }
               }
+
               wList[_workCourse[i].courseId] = {
                 cid: _workCourse[i].courseId,
                 title: _workCourse[i].title,
@@ -695,6 +740,7 @@ export default {
           }
           this.gradeCourseList = _gradeCourseList
           this.subjectCourseList = _subjectCourseList
+          this.pCourseList = [{name:'未分类',typeid:0,course:res.data[2][0].count}]
           this.typeChange()
 
 
@@ -760,6 +806,9 @@ export default {
       } else if (this.cType4 === 'theme') {
         this.courseNumberArray = this.subjectCourseList
       }
+      if(!this.gradeCourseList.length && !this.subjectCourseList.length){
+        this.courseNumberArray = this.pCourseList
+      }
       this.$forceUpdate();
     },
   },

+ 15 - 1
src/components/pages/dataBoardNew/school/cateRank/index.vue

@@ -38,6 +38,20 @@ export default {
         credits: {
             enabled: false//不显示LOGO
         },
+        tooltip: {
+          formatter: function() {
+            // 自定义弹窗内容的回调函数
+            var point = this.point;
+            if(point.from){
+              var tooltipText = '<b>' + point.from + '</b> - <b>' + point.to + '</b>: ' + point.weight;
+              return tooltipText;
+            }else{
+              var tooltipText = '<b>' + point.name + '</b>: ' + point.sum;
+              return tooltipText;
+            }
+
+          }
+        },
         series: [{
           keys: ['from', 'to', 'weight'],
           data: [
@@ -90,7 +104,7 @@ export default {
             // ['Japan', 'Brazil', 1]
           ],
           type: 'dependencywheel',
-          name: 'Dependency wheel series',
+          name: '',
           dataLabels: {
             color: '#333',
             textPath: {

+ 3 - 3
src/components/pages/dataBoardNew/student/cateRank/index.vue

@@ -8,11 +8,11 @@
         </el-table-column>
         <el-table-column prop="name" label="姓名" min-width="80" align="center">
         </el-table-column>
-        <el-table-column prop="courseCount" label="参与课程数量" min-width="80" align="center">
+        <el-table-column prop="courseCount" label="参与课程数" min-width="90" align="center">
         </el-table-column>
-        <el-table-column prop="scourseCount" label="参与项目数量" min-width="80" align="center">
+        <el-table-column prop="scourseCount" label="参与项目数" min-width="90" align="center">
         </el-table-column>
-        <el-table-column prop="worksCount" label="提交作业数量" min-width="80" align="center">
+        <el-table-column prop="worksCount" label="提交作业数" min-width="90" align="center">
         </el-table-column>
         <el-table-column prop="exchangeCount" label="互动交流" min-width="80" align="center">
         </el-table-column>

+ 1 - 1
src/components/pages/dataBoardNew/student/index.vue

@@ -1063,7 +1063,7 @@ export default {
       let _scourseNum = 0;
       let uArray = [];
       for (var i = 0; i < _userArray.length; i++) {
-        if (_userArray[i].classid.indexOf(this.cType9) != -1 || !this.cType9) {
+        if (_userArray[i].classid && _userArray[i].classid.indexOf(this.cType9) != -1 || !this.cType9) {
           uArray.push({
             userid: _userArray[i].userid,
             name: _userArray[i].name,

+ 15 - 1
src/components/pages/dataBoardTest/course/chartList/subjuect.vue

@@ -38,6 +38,20 @@ export default {
         credits: {
             enabled: false//不显示LOGO
         },
+        tooltip: {
+          formatter: function() {
+            // 自定义弹窗内容的回调函数
+            var point = this.point;
+            if(point.from){
+              var tooltipText = '<b>' + point.from + '</b> - <b>' + point.to + '</b>: ' + point.weight;
+              return tooltipText;
+            }else{
+              var tooltipText = '<b>' + point.name + '</b>: ' + point.sum;
+              return tooltipText;
+            }
+
+          }
+        },
         series: [{
           keys: ['from', 'to', 'weight'],
           data: [
@@ -90,7 +104,7 @@ export default {
             // ['Japan', 'Brazil', 1]
           ],
           type: 'dependencywheel',
-          name: 'Dependency wheel series',
+          name: '',
           dataLabels: {
             color: '#333',
             textPath: {

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini