lsc 2 年之前
父節點
當前提交
01707a568b

+ 1 - 1
dist/index.html

@@ -18,4 +18,4 @@
       border-radius: 10px;
       -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
       background-color: rgba(0, 0, 0, 0.1);
-    }</style><link href=./static/css/app.3d402810e94d041d0ab4acd5f183c1a8.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.fc6fb327723a885bec2e.js></script><script type=text/javascript src=./static/js/app.1f4687d9c9540290b861.js></script></body></html><script>document.domain = "cocorobo.cn"</script>
+    }</style><link href=./static/css/app.b9607ebd29d4246bb00aceb7cc037b7b.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.fc6fb327723a885bec2e.js></script><script type=text/javascript src=./static/js/app.ab410c3840db1fd21dae.js></script></body></html><script>document.domain = "cocorobo.cn"</script>

文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/app.b9607ebd29d4246bb00aceb7cc037b7b.css


文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/app.b9607ebd29d4246bb00aceb7cc037b7b.css.map


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.1f4687d9c9540290b861.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.1f4687d9c9540290b861.js.map


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.ab410c3840db1fd21dae.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.ab410c3840db1fd21dae.js.map


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 7 - 7
src/components/study.vue

@@ -2133,7 +2133,10 @@
       </div>
 
       <div slot="footer">
-        <el-button @click="(commentDialogVisible = false), (this.commentIndexJson = {})">取 消</el-button>
+        <el-button @click="(commentDialogVisible = false), (this.commentIndexJson = {}),
+              videoDetail.sources && videoDetail.sources[0]
+                ? (videoDetail.sources[0].src = '')
+                : ''">取 消</el-button>
         <el-button type="primary" @click="addComment(commentDetail.wid, userid, 2)">确 定</el-button>
       </div>
     </el-dialog>
@@ -2813,8 +2816,8 @@ export default {
       };
       this.commentDetail = [];
       this.commentDialogVisible = true;
+      this.commentDetail = w;
       if (w.works && w.type == 1) {
-        this.commentDetail = w;
         this.pptImgUrl = "";
         var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
         if (
@@ -2835,20 +2838,17 @@ export default {
           this.pptImgUrl = w.works;
           this.showPDF = true;
         }
-      } else if (w.works && w.type == 3 && this.commentDialogVisible == false) {
+      } else if (w.works && w.type == 3) {
         this.videoDetail = {};
         this.playerOptions1.sources[0].src = w.works;
         this.videoDetail = this.playerOptions1;
-        this.videoVisible = true;
+        // this.videoVisible = true;
       } else if (w.works && w.type == 4) {
-        this.commentDetail = w;
         this.eScore = JSON.parse(w.works);
         this.rateJson =
           this.chapInfoList[jdIndex].chapterInfo[0].taskJson[
             rwIndex
           ].toolChoose[toolIndex].rateJson;
-      } else {
-        this.commentDetail = w;
       }
     },
     addComment(wid, uid, t) {

+ 26 - 16
src/components/studyStudent.vue

@@ -3566,7 +3566,13 @@
 
       <div slot="footer">
         <el-button
-          @click="(commentDialogVisible = false), (this.commentIndexJson = {})"
+          @click="
+            (commentDialogVisible = false),
+              (commentIndexJson = {}),
+              videoDetail.sources && videoDetail.sources[0]
+                ? (videoDetail.sources[0].src = '')
+                : ''
+          "
           >取 消</el-button
         >
         <el-button
@@ -3882,10 +3888,19 @@
       </div>
       <span slot="footer" class="dialog-footer">
         <el-button
-          @click="(dialogVisibleScore = false), (this.commentIndexJson = {})"
+          @click="
+            (dialogVisibleScore = false),
+              (commentIndexJson = {}),
+              videoDetail.sources && videoDetail.sources[0]
+                ? (videoDetail.sources[0].src = '')
+                : ''
+          "
           >取 消</el-button
         >
-        <el-button type="primary" v-if="courseDetail.userid == userid" @click="scoreWork(commentDetail.wid)"
+        <el-button
+          type="primary"
+          v-if="courseDetail.userid == userid"
+          @click="scoreWork(commentDetail.wid)"
           >确 定</el-button
         >
       </span>
@@ -4539,8 +4554,8 @@ export default {
       this.commentIndexJson = { toolIndex: toolIndex, wIndex: wIndex };
       this.commentDetail = [];
       this.commentDialogVisible = true;
+      this.commentDetail = w;
       if (w.works && w.type == 1) {
-        this.commentDetail = w;
         this.pptImgUrl = "";
         var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
         if (
@@ -4561,20 +4576,17 @@ export default {
           this.pptImgUrl = w.works;
           this.showPDF = true;
         }
-      } else if (w.works && w.type == 3 && this.commentDialogVisible == false) {
+      } else if (w.works && w.type == 3) {
         this.videoDetail = {};
         this.playerOptions1.sources[0].src = w.works;
         this.videoDetail = this.playerOptions1;
-        this.videoVisible = true;
+        // this.videoVisible = true;
       } else if (w.works && w.type == 4) {
-        this.commentDetail = w;
         this.eScore = JSON.parse(w.works);
         this.rateJson =
           this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
             this.taskCount
           ].toolChoose[toolIndex].rateJson;
-      } else {
-        this.commentDetail = w;
       }
     },
     openScore(w) {
@@ -4583,8 +4595,9 @@ export default {
       this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
       this.commentDetail = [];
       this.dialogVisibleScore = true;
+      this.commentDetail = w;
+
       if (w.works && w.type == 1) {
-        this.commentDetail = w;
         this.pptImgUrl = "";
         var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
         if (
@@ -4605,13 +4618,10 @@ export default {
           this.pptImgUrl = w.works;
           this.showPDF = true;
         }
-      } else if (w.works && w.type == 3 && this.dialogVisibleScore == false) {
+      } else if (w.works && w.type == 3) {
         this.videoDetail = {};
         this.playerOptions1.sources[0].src = w.works;
         this.videoDetail = this.playerOptions1;
-        this.videoVisible = true;
-      } else {
-        this.commentDetail = w;
       }
     },
     addComment(wid, uid, t) {
@@ -4945,8 +4955,8 @@ export default {
             }
             if (this.worksStudent[i] && this.worksStudent[i].length) {
               this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
-                let jscoreA = a.score ? JSON.parse(a.score).wScore : 0
-                let jscoreB = b.score ? JSON.parse(b.score).wScore : 0
+                let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
+                let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
                 var scoreA = parseInt(jscoreA);
                 var scoreB = parseInt(jscoreB);
                 if (scoreA == scoreB) {

部分文件因文件數量過多而無法顯示