lsc %!s(int64=2) %!d(string=hai) anos
pai
achega
8ba6ae5e91

+ 13 - 5
src/components/pages/addCourse.vue

@@ -4043,6 +4043,7 @@ export default {
           this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
             .toolChoose[toolIndex].askJson[0].checkList < 2
         ) {
+          this.openTools(itemTaskIndex, 4, toolIndex)
           this.$message({
             message: "请填写完整问卷内容",
             type: "error",
@@ -4057,6 +4058,7 @@ export default {
           this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
             .toolChoose[toolIndex].answerQ == ""
         ) {
+          this.openTools(itemTaskIndex, 15, toolIndex)
           this.$message({
             message: "请填写问答内容",
             type: "error",
@@ -4082,10 +4084,16 @@ export default {
             1
           );
         } else {
-          this.$message({
-            message: "每个工具只能添加一个",
-            type: "error",
-          });
+          // this.$message({
+          //   message: "每个工具只能添加一个",
+          //   type: "error",
+          // });
+          this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
+            itemTaskIndex
+          ].toolChoose[toolIndex].tool = [];
+          this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
+            itemTaskIndex
+          ].toolChoose[toolIndex].tool.push(i);
         }
       } else {
         this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
@@ -4327,7 +4335,7 @@ export default {
         oid: this.oid,
       };
       this.ajax
-        .get(this.$store.state.api + "selectTypeByOid",params)
+        .get(this.$store.state.api + "selectTypeByOid", params)
         .then((res) => {
           for (var i = 0; i < res.data[0].length; i++) {
             for (var j = 0; j < res.data[1].length; j++) {

+ 6 - 0
src/components/pages/components/report/courseDetailReport.vue

@@ -151,12 +151,18 @@ export default {
             type: "line",
             areaStyle: {},
             data: [0, 0, 0, 0, 0],
+            label: {
+              show: true,
+            },
           },
           {
             name: "班级平均完成度",
             type: "line",
             areaStyle: {},
             data: [0, 0, 0, 0, 0],
+            label: {
+              show: true,
+            },
           },
         ],
       },

+ 9 - 6
src/components/pages/components/report/courseInfo.vue

@@ -80,10 +80,13 @@ export default {
         },
         series: [
           {
-            name: "数",
+            name: "数",
             type: "bar",
             data: [10, 12, 5, 6, 7],
             barWidth: "40%",
+            label: {
+              show: true,
+            },
           },
         ],
       },
@@ -167,12 +170,12 @@ export default {
         this.chartObj = chartObj;
         this.chartObj.setOption(this.option);
       });
-      let _this = this
+      let _this = this;
       window.addEventListener("resize", () => {
-          if (_this.chartObj) {
-            _this.chartObj.resize();
-          }
-        });
+        if (_this.chartObj) {
+          _this.chartObj.resize();
+        }
+      });
     },
   },
   watch: {

+ 3 - 4
src/components/pages/components/report/coursePie.vue

@@ -23,12 +23,10 @@ export default {
         toolbox: {
           show: true,
         },
-        grid:{
-
-        },
+        grid: {},
         series: [
           {
-            bottom:"10%",
+            bottom: "10%",
             name: "学习活动时间分配图",
             type: "pie",
             radius: [10, "80%"],
@@ -40,6 +38,7 @@ export default {
             label: {
               show: true,
               position: "inside",
+              formatter: "{b}\n{d}%",
             },
             data: [
               { value: 0, name: "思维网格" },

+ 3 - 0
src/components/pages/components/report/courseRadar.vue

@@ -82,6 +82,9 @@ export default {
                 opacity: 0.2,
               },
             },
+            label: {
+              show: true,
+            },
             data: [
               {
                 // 设置各个指标原始值