lsc hai 1 ano
pai
achega
271894242d

+ 1 - 1
dist/index.html

@@ -25,7 +25,7 @@
       height: 100%;
       width: 100%;
       background: #e6eaf0;
-    }</style><link href=./static/css/app.c61bfa02a9277cf468b5ea2fe86cb405.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.dfa7e51f1b3c6071283a.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.ac2e7d1971bfcdc8577d1a9ddfa6ed64.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.776d4f4d456ef8b32333.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/css/app.ac2e7d1971bfcdc8577d1a9ddfa6ed64.css


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/css/app.ac2e7d1971bfcdc8577d1a9ddfa6ed64.css.map


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/app.776d4f4d456ef8b32333.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/app.776d4f4d456ef8b32333.js.map


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/app.dfa7e51f1b3c6071283a.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/manifest.3512a67a6213c2df4180.js.map


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

@@ -33,7 +33,7 @@ export default {
           nameGap: -45
         },
         grid: {
-          top: "15%",
+          top: "20%",
           left: "5%",
           right: "5%",
           bottom: "15%",

+ 4 - 0
src/components/pages/dataBoardNew/course/index.vue

@@ -321,6 +321,7 @@
           <WorkNum
             style="height: calc(100% - 95px)"
             :workNumList="workNumList"
+            @openCourse="openCourse"
             v-if="shType"
           ></WorkNum>
           <div class="otherCss">
@@ -509,6 +510,9 @@ export default {
     this.getData();
   },
   methods: {
+    openCourse(cid) {
+      window.parent.postMessage({ cid: cid, screenType: "3" }, "*");
+    },
     otherEchart() {
       this.oType = !this.oType;
     },

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

@@ -33,7 +33,7 @@ export default {
           nameGap: -45
         },
         grid: {
-          top: "10%",
+          top: "25%",
           left: "5%",
           right: "5%",
           bottom: "15%",

+ 2 - 1
src/components/pages/dataBoardNew/project/index.vue

@@ -545,10 +545,11 @@ export default {
                   k < _taskJson.length;
                   k++
                 ) {
+                  console.log(_taskJson[k].toolArray);
                   for (
                     var q = 0;
                     q <
-                    _taskJson[k].toolArray.length;
+                      _taskJson[k].toolArray ? _taskJson[k].toolArray.length : 0;
                     q++
                   ) {
                     if (_taskJson[k].toolArray[q].tool == 1) {

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

@@ -67,7 +67,21 @@ export default {
           column: {
             grouping: false,
             shadow: false,
-            borderWidth: 0
+            borderWidth: 0,
+            // dataLabels: {
+            //   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 employeePercentage = ((optimizedEmployee - employee) / optimizedEmployee) * 100;
+            //     if (this.series.name === '本周课程总数') {
+            //       return  employeePercentage.toFixed(2) + '%';
+            //     } else {
+            //       return '';
+            //     }
+            //   }
+            // }
           }
         },
         series: [{

+ 45 - 28
src/components/pages/dataBoardNew/school/index.vue

@@ -16,12 +16,11 @@
               <span>{{ allUser }}</span>
             </div>
             <div class="info blueBG">
-              <span>本月登录用户环比</span>
+              <span>本月新增登录用户</span>
               <span v-if="loginCountMonthArray.length">{{ (loginCountMonthArray[loginCountMonthArray.length - 1].user -
                 loginCountMonthArray[loginCountMonthArray.length - 2].user) < 0 ? 0 :
-                ((loginCountMonthArray[loginCountMonthArray.length - 1].user -
-                  loginCountMonthArray[loginCountMonthArray.length - 2].user) /
-                  loginCountMonthArray[loginCountMonthArray.length - 2].user * 100) + '%' }}</span>
+                loginCountMonthArray[loginCountMonthArray.length - 1].user -
+                loginCountMonthArray[loginCountMonthArray.length - 2].user }}</span>
             </div>
             <div class="info blueBG">
               <span>本月登录用户总数</span>
@@ -29,11 +28,12 @@
               }}</span>
             </div>
             <div class="info blueBG">
-              <span>本月新增登录用户</span>
+              <span>本月登录用户环比</span>
               <span v-if="loginCountMonthArray.length">{{ (loginCountMonthArray[loginCountMonthArray.length - 1].user -
                 loginCountMonthArray[loginCountMonthArray.length - 2].user) < 0 ? 0 :
-                loginCountMonthArray[loginCountMonthArray.length - 1].user -
-                loginCountMonthArray[loginCountMonthArray.length - 2].user }}</span>
+                (((loginCountMonthArray[loginCountMonthArray.length - 1].user -
+                  loginCountMonthArray[loginCountMonthArray.length - 2].user) /
+                  loginCountMonthArray[loginCountMonthArray.length - 2].user) * 100).toFixed(2) + '%' }}</span>
             </div>
           </div>
           <loginCount style="height: calc(100% - 140px)" :monthArray="loginCountMonthArray"></loginCount>
@@ -152,7 +152,7 @@
                 <span>{{ isCourseCount ? (workCount / isCourseCount).toFixed(0) : 0 }}</span>
               </div>
             </div>
-            <workNum style="height:calc(100% - 70px)" :workNumList="workNumList"></workNum>
+            <workNum style="height:calc(100% - 70px)" :workNumList="workNumList" @openCourse="openCourse"></workNum>
           </div>
         </div>
       </div>
@@ -161,11 +161,11 @@
           <div class="title">平台使用概况</div>
           <div class="tCircleC">
             <div class="tCircleBox">
-              <span class="tCircle tt"></span>
+              <span class="tCircle ts"></span>
               <span class="tname">老师</span>
             </div>
             <div class="tCircleBox">
-              <span class="tCircle ts"></span>
+              <span class="tCircle tt"></span>
               <span class="tname">学生</span>
             </div>
           </div>
@@ -182,7 +182,7 @@
               <div>
                 <el-progress :width="80" type="circle"
                   :percentage="lightJson.upCourseTeachers ? parseInt((lightJson.upCourseTeachers / lightJson.teachers * 100).toFixed(0)) : 0"
-                  :stroke-width="5" :format="format" color="rgb(64, 149, 229)"></el-progress>
+                  :stroke-width="5" :format="format" color="#106BFF"></el-progress>
               </div>
             </div>
             <div class="depth">
@@ -190,7 +190,7 @@
               <div>
                 <el-progress :width="80" type="circle"
                   :percentage="lightJson.upSCourseTeachers ? parseInt((lightJson.upSCourseTeachers / lightJson.teachers * 100).toFixed(0)) : 0"
-                  :stroke-width="5" :format="format" color="rgb(64, 149, 229)"></el-progress>
+                  :stroke-width="5" :format="format" color="#106BFF"></el-progress>
               </div>
             </div>
             <div class="depth">
@@ -198,7 +198,7 @@
               <div>
                 <el-progress :width="80" type="circle"
                   :percentage="lightJson.toolTeachers ? parseInt((lightJson.toolTeachers / lightJson.teachers * 100).toFixed(0)) : 0"
-                  :stroke-width="5" :format="format" color="rgb(64, 149, 229)"></el-progress>
+                  :stroke-width="5" :format="format" color="#106BFF"></el-progress>
               </div>
             </div>
             <div class="depth">
@@ -206,7 +206,7 @@
               <div>
                 <el-progress :width="80" type="circle"
                   :percentage="lightJson.gCourseTeachers ? parseInt((lightJson.gCourseTeachers / lightJson.teachers * 100).toFixed(0)) : 0"
-                  :stroke-width="5" :format="format" color="rgb(64, 149, 229)"></el-progress>
+                  :stroke-width="5" :format="format" color="#106BFF"></el-progress>
               </div>
             </div>
             <div class="depth">
@@ -214,7 +214,7 @@
               <div>
                 <el-progress :width="80" type="circle"
                   :percentage="lightJson.commentTeachers ? parseInt((lightJson.commentTeachers / lightJson.teachers * 100).toFixed(0)) : 0"
-                  :stroke-width="5" :format="format" color="rgb(64, 149, 229)"></el-progress>
+                  :stroke-width="5" :format="format" color="#106BFF"></el-progress>
               </div>
             </div>
             <div class="depth">
@@ -222,7 +222,7 @@
               <div>
                 <el-progress :width="80" type="circle"
                   :percentage="lightJson.courseStudents ? parseInt((lightJson.courseStudents / lightJson.students * 100).toFixed(0)) : 0"
-                  :stroke-width="5" :format="format" color="#106BFF"></el-progress>
+                  :stroke-width="5" :format="format" color="#53c95f"></el-progress>
               </div>
             </div>
             <div class="depth">
@@ -230,7 +230,7 @@
               <div>
                 <el-progress :width="80" type="circle"
                   :percentage="lightJson.scourseStudents ? parseInt((lightJson.scourseStudents / lightJson.students * 100).toFixed(0)) : 0"
-                  :stroke-width="5" :format="format" color="#106BFF"></el-progress>
+                  :stroke-width="5" :format="format" color="#53c95f"></el-progress>
               </div>
             </div>
             <div class="depth">
@@ -238,7 +238,7 @@
               <div>
                 <el-progress :width="80" type="circle"
                   :percentage="lightJson.toolStudents ? parseInt((lightJson.toolStudents / lightJson.students * 100).toFixed(0)) : 0"
-                  :stroke-width="5" :format="format" color="#106BFF"></el-progress>
+                  :stroke-width="5" :format="format" color="#53c95f"></el-progress>
               </div>
             </div>
             <div class="depth">
@@ -246,7 +246,7 @@
               <div>
                 <el-progress :width="80" type="circle"
                   :percentage="lightJson.gsCourseStudents ? parseInt((lightJson.gsCourseStudents / lightJson.students * 100).toFixed(0)) : 0"
-                  :stroke-width="5" :format="format" color="#106BFF"></el-progress>
+                  :stroke-width="5" :format="format" color="#53c95f"></el-progress>
               </div>
             </div>
             <div class="depth">
@@ -254,7 +254,7 @@
               <div>
                 <el-progress :width="80" type="circle"
                   :percentage="lightJson.commentStudents ? parseInt((lightJson.commentStudents / lightJson.students * 100).toFixed(0)) : 0"
-                  :stroke-width="5" :format="format" color="#106BFF"></el-progress>
+                  :stroke-width="5" :format="format" color="#53c95f"></el-progress>
               </div>
             </div>
           </div>
@@ -279,7 +279,7 @@
               align-items: center;
             ">
             <el-select v-model="cType" @change="typeChange" class="selectBox">
-              <el-option label="全部" value=""></el-option>
+              <!-- <el-option label="全部" value=""></el-option> -->
               <el-option label="年级" value="grade"></el-option>
               <el-option label="主题" value="theme"></el-option>
               <el-option label="学科" value="subject"></el-option>
@@ -345,7 +345,7 @@ export default {
   data() {
     return {
       isLoading: false,
-      cType: "",
+      cType: "grade",
       cType1: "全部年级",
       cType2: "全部活动",
       cType3: "按年级",
@@ -396,6 +396,9 @@ export default {
     this.getData();
   },
   methods: {
+    openCourse(cid) {
+      window.parent.postMessage({ cid: cid, screenType: "3" }, "*");
+    },
     otherEchart() {
       this.oType = !this.oType;
     },
@@ -708,7 +711,7 @@ export default {
           let toWeekCouseCount = 0
           for (var z = 0; z < _course.length; z++) {
             let _date = new Date(weekArray.lastWeek[weekArray.lastWeek.length - 1])
-            console.log(_date)
+            // console.log(_date) 
             if (new Date(_course[z].create_at) > _date && _course[z].pid == '34628934-d02f-11ec-8c78-005056b86db5') {
               weekCourse.push(_course[z])
               var a = new Date(_course[z].create_at)
@@ -718,6 +721,9 @@ export default {
               } else {
                 toWeekCouseCount++
               }
+              // if (weekArray.toWeek.indexOf(string) == -1) {
+              //   lastWeekCouseCount++
+              // }
             }
           }
 
@@ -745,7 +751,17 @@ export default {
                     toCourseidWeek.push(weekCourse[z].courseid)
                   }
                 }
-
+                // if (weekArray.toWeek.indexOf(string) == -1) {
+                //   weekCourse2[i].lastCourse++
+                //   if (lastCourseidWeek.indexOf(weekCourse[z].courseid) === -1) {
+                //     lastCourseidWeek.push(weekCourse[z].courseid)
+                //   }
+                // } 
+                
+                //   weekCourse2[i].toCourse++
+                //   if (toCourseidWeek.indexOf(weekCourse[z].courseid) === -1) {
+                //     toCourseidWeek.push(weekCourse[z].courseid)
+                //   }
               }
             }
           }
@@ -766,9 +782,10 @@ export default {
         });
     },
     typeChange() {
-      if (this.cType === '') {
-        this.courseNumberArray = this.allArray
-      } else if (this.cType === 'grade') {
+      // if (this.cType === '') {
+      //   this.courseNumberArray = this.allArray
+      // } else 
+      if (this.cType === 'grade') {
         this.courseNumberArray = this.gradeArray
       } else if (this.cType === 'theme') {
         this.courseNumberArray = this.themeArray
@@ -1077,7 +1094,7 @@ export default {
 }
 
 .tCircleBox .tt {
-  background: rgb(64, 149, 229);
+  background: #53c95f;
 }
 
 .tCircleBox .ts {

+ 8 - 7
src/components/pages/dataBoardNew/school/loginCount/index.vue

@@ -24,19 +24,19 @@ export default {
       },
       option: {
         // title: {
-        //     text: '登录频次',
+        //     text: '每月登录用户',
         //     textStyle:{
         //         fontSize: 12,
         //     },
-        //     padding: [0, 0, 0, 10]
+        //     padding: [5, 0, 0, 10]
         // },
         tooltip: {
           trigger: 'axis'
         },
-        // legend: {
-        //     data: ['老师', '学生'],
-        //     right: '10'
-        // },
+        legend: {
+            data: ['登录用户'],
+            right: '10'
+        },
         grid: {
           top: '30',
           left: '5%',
@@ -51,12 +51,13 @@ export default {
           data: []
         },
         yAxis: {
+          name: "人数",
           type: 'value',
           minInterval: 1
         },
         series: [
           {
-            // name: '老师',
+            name: '登录用户',
             type: 'line',
             areaStyle: {},
             data: [],

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

@@ -19,13 +19,13 @@
                   loginCountMonthArray[loginCountMonthArray.length - 2].user <
                 0
                   ? 0
-                  : ((loginCountMonthArray[loginCountMonthArray.length - 1]
+                  : (((loginCountMonthArray[loginCountMonthArray.length - 1]
                       .user -
                       loginCountMonthArray[loginCountMonthArray.length - 2]
                         .user) /
                       loginCountMonthArray[loginCountMonthArray.length - 2]
                         .user) *
-                      100 +
+                      100).toFixed(2) +
                     "%"
               }}</span>
             </div>
@@ -153,14 +153,14 @@
             >
               学生行为分布
             </div>
-            <div
+            <!-- <div
               class="title"
               :class="{ isClick: courseType == 1 }"
               @click="courseType = 1"
               style="cursor: pointer; padding: 0 0 5px 0"
             >
               学生协同情况
-            </div>
+            </div> -->
           </div>
           <div
             style="

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio