11wqe1 5 miesięcy temu
rodzic
commit
45aaf8df23
1 zmienionych plików z 33 dodań i 16 usunięć
  1. 33 16
      src/components/easy2/studyStudent.vue

+ 33 - 16
src/components/easy2/studyStudent.vue

@@ -11080,12 +11080,14 @@
           <div class="cont" v-html="commentDetail.works.text"></div>
           <div class="cont" v-html="commentDetail.works.text"></div>
         </div>
         </div>
         <div
         <div
-          class="worksAnswer codeFileBox"
           v-if="commentDetail.works && commentDetail.type == 12"
           v-if="commentDetail.works && commentDetail.type == 12"
-          @click="downloadFile(commentDetail.works)"
         >
         >
-          <img src="../../assets/icon/codeFile.png" />
-          <div>点击下载文件</div>
+        <!-- class="worksAnswer codeFileBox" -->
+        <!-- @click="downloadFile(commentDetail.works)" -->
+
+          <!-- <img src="../../assets/icon/codeFile.png" />
+          <div>点击下载文件</div> -->
+          <div style="margin-top: 15px;" v-html="commentDetail.works"></div>
         </div>
         </div>
         <div
         <div
           class="worksAnswer codeFileBox"
           class="worksAnswer codeFileBox"
@@ -13825,7 +13827,8 @@ export default {
       dialogVisibleTxt:false,
       dialogVisibleTxt:false,
       TxtMd :'',
       TxtMd :'',
       languageSetting: 0, //0中文 1繁体 2英文
       languageSetting: 0, //0中文 1繁体 2英文
-      toolListS:[]
+      toolListS:[],
+      commentDetailCopy:''
     };
     };
   },
   },
   methods: {
   methods: {
@@ -16113,10 +16116,19 @@ export default {
         wIndex: wIndex,
         wIndex: wIndex,
         gindex: gindex,
         gindex: gindex,
         gid: gid,
         gid: gid,
-      };
-      this.commentDetail = [];
+      };  
       this.commentDialogVisible = true;
       this.commentDialogVisible = true;
+
+      // console.log('wwwwww',w)
+      if(JSON.stringify(this.commentDetailCopy) == JSON.stringify(w.works)) return
+      
+      this.commentDetailCopy = w.works
+
+
+      this.commentDetail = [];
       this.commentDetail = w;
       this.commentDetail = w;
+
+      
       if (w.works && w.type == 1) {
       if (w.works && w.type == 1) {
         // this.pptImgUrl = "";
         // this.pptImgUrl = "";
         var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
         var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
@@ -16152,7 +16164,12 @@ export default {
           ].toolChoose[toolIndex].rateJson;
           ].toolChoose[toolIndex].rateJson;
       } else if (w.works && w.type == 10) {
       } else if (w.works && w.type == 10) {
         this.commentDetail.works = JSON.parse(this.commentDetail.works);
         this.commentDetail.works = JSON.parse(this.commentDetail.works);
-      } else if (w.works && w.type == 13) {
+      } else if (w.works && w.type == 12) {
+        getFile(this.commentDetail.works).then(res => {
+          this.commentDetail.works = res.data;
+        });
+        // this.commentDetail.works = JSON.parse(this.commentDetail.works);
+      }else if (w.works && w.type == 13) {
         this.wordJson =
         this.wordJson =
           this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
           this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
             this.taskCount
             this.taskCount
@@ -24199,10 +24216,10 @@ export default {
   justify-content: center;
   justify-content: center;
 }
 }
 
 
-.answerBg > div:nth-child(1) {
+/* .answerBg > div:nth-child(1) { */
   /* font-size: 22px;
   /* font-size: 22px;
   padding: 25px 0 10px; */
   padding: 25px 0 10px; */
-}
+/* } */
 
 
 .answerContent {
 .answerContent {
   width: 215px;
   width: 215px;
@@ -25781,8 +25798,8 @@ ol {
   top: -25px;
   top: -25px;
 }
 }
 
 
-.group_workBox {
-}
+/* .group_workBox {
+} */
 
 
 .group_workBox + .group_workBox {
 .group_workBox + .group_workBox {
   margin-top: 20px;
   margin-top: 20px;
@@ -26272,11 +26289,11 @@ ol {
   overflow: hidden;
   overflow: hidden;
   transition: all 0.5s;
   transition: all 0.5s;
 }
 }
-.toolChild {
+/* .toolChild { */
   /* margin: 0 0 0 17px;
   /* margin: 0 0 0 17px;
   padding: 0 0 0 20px;
   padding: 0 0 0 20px;
   border-left: 1px solid #d7d7d7; */
   border-left: 1px solid #d7d7d7; */
-}
+/* } */
 
 
 .toolChild > div + div{
 .toolChild > div + div{
   margin-top:5px;
   margin-top:5px;
@@ -26299,7 +26316,7 @@ ol {
   width: 100%;
   width: 100%;
 }
 }
 
 
-.toolChild > div::before {
+/* .toolChild > div::before { */
   /* content: "";
   /* content: "";
   width: 15px;
   width: 15px;
   height: 1px;
   height: 1px;
@@ -26308,7 +26325,7 @@ ol {
   top: 24px;
   top: 24px;
   left: -20px;
   left: -20px;
   display: block; */
   display: block; */
-}
+/* } */
 
 
 .isGjCss {
 .isGjCss {
   /* color: #0061ff; */
   /* color: #0061ff; */