lsc 2 years ago
parent
commit
6a2dd18876
2 changed files with 299 additions and 540 deletions
  1. 57 21
      src/components/study.vue
  2. 242 519
      src/components/studyStudent.vue

+ 57 - 21
src/components/study.vue

@@ -733,8 +733,7 @@
                             <img :src="word" @click="openFile(w.works)" alt />
                           </div>
                           <div class="workImg" v-if="w.type == 3">
-                            <img style="cursor: pointer" :src="video"
-                              @click="openVideo(w.works)" alt />
+                            <img style="cursor: pointer" :src="video" @click="openVideo(w.works)" alt />
                           </div>
                           <div class="comment" style="min-width: 200px">
                             <div class="worksName">
@@ -768,6 +767,28 @@
                         </div>
                       </div>
                     </div>
+                    <div v-if="
+                       worksStudent[jdIndex] &&
+                      worksStudent[jdIndex][rwIndex] &&
+                      tType &&
+                      tType == 3 &&
+                      tool.tool.indexOf(4) != -1 && (tool.askJson[0].answer || tool.askJson[0].answer === 0)
+                    " class="xuan_right_box">
+                      <div class="tool_right_box" v-for="(item, index) in tool.askJson" :key="index">
+                        <div>
+                          <span>{{ index + 1 + "、" + item.askstitle }}</span>
+                        </div>
+                        <div class="right_box_xuan" v-for="(item1, checkIndex) in item.askItem" :key="checkIndex"
+                          v-if=" item.answer == checkIndex">
+                          <span>正确率</span>
+                          <span>{{
+                          (checkJson[jdIndex][rwIndex][toolIndex][index].checkPerent[checkIndex]
+                          ? checkJson[jdIndex][rwIndex][toolIndex][index].checkPerent[checkIndex]
+                          : 0) +'%'
+                          }}</span>
+                        </div>
+                      </div>
+                    </div>
                     <div v-if="
                       worksStudent[jdIndex] &&
                       worksStudent[jdIndex][rwIndex] &&
@@ -1815,22 +1836,16 @@
       </div>
       <div style="margin-top: 10px;">
         <div class="displayBox">
-          <div
-            style="
+          <div style="
               color: #556db4;
               font-size: 14px;
               font-weight: bold;
               padding-bottom: 10px;
-            "
-          >
+            ">
             评价
           </div>
           <div class="easy_comment">
-            <div
-              v-for="(p, pIndex) in PlTextList"
-              :key="pIndex"
-              @click="fastText(p, 1)"
-            >
+            <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 1)">
               {{ p }}
             </div>
           </div>
@@ -1887,11 +1902,7 @@
             <div v-if="e.detail">{{ e.detail }}</div>
           </div>
           <div class="easy_comment" v-if="isStar == false">
-            <div
-              v-for="(p, pIndex) in PlTextList"
-              :key="pIndex"
-              @click="fastText(p, 2)"
-            >
+            <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
               {{ p }}
             </div>
           </div>
@@ -2901,7 +2912,7 @@ export default {
       ) != -1) {
         // const blob = await imageConversion.compress(file, 0.8)
         const blob = await imageConversion.compressAccurately(file, 32)
-        file = new File([blob], file.name, {type: file.type})
+        file = new File([blob], file.name, { type: file.type })
       }
       _this.progress = 0;
       _this.proVisible = true;
@@ -6292,7 +6303,7 @@ export default {
 
 .nameAndrate>div {
   margin-left: 10px;
-  color:#000;
+  color: #000;
 }
 
 .pfBox>div:nth-child(2) {
@@ -6306,7 +6317,7 @@ export default {
   align-items: center;
   padding: 10px 20px;
   box-sizing: border-box;
-  color:#000;
+  color: #000;
 }
 
 .bz {
@@ -6433,7 +6444,32 @@ export default {
 }
 
 .easy_comment div:hover {
-    border: 1px solid #f7ba2a;
-    color: #c69217;
+  border: 1px solid #f7ba2a;
+  color: #c69217;
+}
+
+
+.xuan_right_box {
+  padding: 10px;
+  background: rgb(247, 247, 247);
+  margin: 10px 12px;
+  border-radius: 5px;
+}
+
+.tool_right_box {
+  display: flex;
+  align-items: center;
+}
+
+.tool_right_box+.tool_right_box {
+  margin-top: 10px;
+}
+
+.right_box_xuan {
+  background: rgb(0 123 255);
+  color: #fff;
+  border-radius: 5px;
+  padding: 5px;
+  margin-left: 10px;
 }
 </style>

File diff suppressed because it is too large
+ 242 - 519
src/components/studyStudent.vue


Some files were not shown because too many files changed in this diff