소스 검색

修改北语提出的问题

natasha 1 년 전
부모
커밋
b91bfbd606

+ 5 - 4
src/components/Adult/Preview.vue

@@ -212,8 +212,8 @@
                     </div>
                   </template>
                   <h2 v-else-if="item.z_title" v-html="item.z_title" />
-                  <template v-if="item.f_title_detail&&item.f_title_detail.sentence">
-                    <div class="item-intro">
+                  <template v-if="item.hasOwnProperty('f_title_detail')">
+                    <div class="item-intro" v-if="item.f_title_detail.sentence">
                         <OneSentenceTemp
                             :detail="item.f_title_detail"
                             :TaskModel="TaskModel"
@@ -821,7 +821,7 @@
                 v-if="isAnswerItemShow && item.showSubmit"
               >
                 <a class="submitLookAnswer" @click="submitLookAnswer(index)"
-                  >Submit</a
+                  >{{submitCn?submitCn:'查看答案'}}</a
                 >
               </div>
             </div>
@@ -983,6 +983,7 @@ export default {
     "previewType",
     "previewGroupId",
     "isAnswerItemShow",
+    "submitCn"
   ],
   data() {
     return {
@@ -1099,7 +1100,7 @@ export default {
   },
   // 生命周期 - 创建完成(可以访问当前this实例)
   created() {
-    console.log("2023-09-15");
+    console.log("2023-10-07");
   },
   // 生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {

+ 8 - 2
src/components/Adult/common/UploadView.vue

@@ -1,6 +1,6 @@
 <!--  -->
 <template>
-  <div class="upload">
+  <div class="upload upload-view-npc">
     <el-upload
       :accept="accept"
       class="upload-demo"
@@ -27,7 +27,7 @@
       </div>
       <div
         slot="tip"
-        style="display: inline; padding-left: 30px"
+        style="display: block; padding: 0 10px"
         class="el-upload__tip"
       >
         {{ uploadTip }}
@@ -218,6 +218,7 @@ export default {
 .uploadBtn {
   width: 141px;
   height: 39px;
+  margin: -20px auto 10px auto;
   background: #ffffff;
   border: 1px solid rgba(0, 0, 0, 0.1);
   box-sizing: border-box;
@@ -236,4 +237,9 @@ export default {
 }
 </style>
 <style lang="scss">
+.upload-view-npc{
+    .el-upload{
+        width: 100%;
+    }
+}
 </style>

+ 1 - 1
src/components/Adult/preview/Picture.vue

@@ -392,7 +392,7 @@ export default {
           if (_this.userErrorNumberTotal > 0) {
             bool = true;
           } else {
-            bool = false;
+            bool = true;
           }
         } else {
           bool = true;

+ 2 - 2
src/components/Adult/preview/SentenceInput.vue

@@ -450,10 +450,10 @@ export default {
       if (this.judgeAnswer == "standardAnswer") {
         this.userErrList = [];
         this.curQue.Bookanswer.forEach((item, i) => {
-          if (item.userAnswerJudge == "[JUDGE##F##JUDGE]") {
+        //   if (item.userAnswerJudge == "[JUDGE##F##JUDGE]") {
             let obj = JSON.parse(JSON.stringify(this.curQue.option[i]));
             this.userErrList.push(obj);
-          }
+        //   }
         });
       }
     },

+ 8 - 9
src/components/Adult/preview/SentenceModule.vue

@@ -70,7 +70,7 @@
               width:
                 curQue.sortType == 'col'
                   ? itemsWidth + 'px'
-                  : Math.floor(780 / curQue.option.length) - 16 + 'px',
+                  : Math.floor(780 / curQue.option.length) - 18 + 'px',
             }"
           >
             <div
@@ -1211,14 +1211,14 @@ export default {
       }
 
       this.$set(this.curQue, "option", option);
-      let contentWidth = 780;
+      let contentWidth = 732;
       if (this.curQue.img_list && this.curQue.img_list.length > 0) {
-        contentWidth = 780 - this.curQue.img_size;
+        contentWidth = 732 - this.curQue.img_size;
       }
       if(itemLeg==1){
-        this.itemsWidth = 780
+        this.itemsWidth = 732
       }else{
-        this.itemsWidth = Math.floor(contentWidth / itemLeg) - 16;
+        this.itemsWidth = Math.floor(contentWidth / itemLeg) - 18;
       }
       
 
@@ -1280,10 +1280,10 @@ export default {
             ) {
               flag = true;
             }
-            if (flag) {
+            // if (flag) {
               this.userErrorList.push(items);
               this.userBookanswer.push(this.curQue.Bookanswer[index][indexs]);
-            }
+            // }
           });
         });
       }
@@ -1432,12 +1432,11 @@ export default {
       }
 
       this.$set(this.curQue, "option", option);
-      console.log(this.curQue.option);
       let contentWidth = 732;
       if (this.curQue.img_list && this.curQue.img_list.length > 0) {
         contentWidth = 732 - this.curQue.img_size;
       }
-      this.itemsWidth = Math.floor(contentWidth / itemLeg);
+      this.itemsWidth = Math.floor(contentWidth / itemLeg) -18;
     },
     //词和标点合一起
     mergeWordSymbol(sItem) {