Bladeren bron

submit按钮显示条件

natasha 2 jaren geleden
bovenliggende
commit
f639b8adb6

+ 12 - 8
src/components/Adult/Preview.vue

@@ -1139,15 +1139,19 @@ export default {
                   this.previewType &&
                   this.previewType == "previewCheckShow" &&
                   (JSON.parse(this.previewGroupId).length == 0 ||
-                    this.previewGroupId.indexOf(item.group_id[0]) > -1)
+                    this.previewGroupId.indexOf(item.group_id[0]) > -1)||
+                    !this.previewType
                 ) {
-                  item.showSubmit = true;
-                } else if (
-                  !this.previewType ||
-                  this.previewType != "previewCheckShow"
-                ) {
-                  item.showSubmit = true;
-                }
+                    if(itemss.type!='article_nnpe'&&itemss.type!='dialogue_article_chs'&&itemss.type!='notes_chs'&&itemss.type!='NewWord_chs'&&itemss.type!='voice_matrix'&&itemss.type!='upload_control_chs'&&itemss.type!='upload_control_preview_chs'&&itemss.type!='record_control_mini'&&itemss.type!='record_control_normal'&&itemss.type!='record_control_pro'&&itemss.type!='record_control_promax'&&itemss.type!='text_problem_chs'&&itemss.type!='newWord_preview_chs'&&itemss.type!='CourseStart_chs'&&itemss.type!='tinydemo_chs'&&itemss.type!='video_chs'&&itemss.type!='play_record_chs'&&itemss.type!='upload_pdf_chs'&&itemss.type!='options_list_chs'&&itemss.type!='sentence_listen_read_chs'&&itemss.type!='imgage_image'){
+                        item.showSubmit = true
+                    }
+                } 
+                // else if (
+                //   !this.previewType ||
+                //   this.previewType != "previewCheckShow"
+                // ) {
+                //   item.showSubmit = true;
+                // }
               }
               if (itemss.data && itemss.data.type == "NewWord_chs") {
                 _this.NNPENewWordList = _this.NNPENewWordList.concat(

+ 13 - 0
src/components/Adult/common/HzModule.vue

@@ -12,6 +12,19 @@
         :uploadType="'image'"
       />
     </div>
+    <div class="adult-book-input-item">
+        <span class="adult-book-lable">小题序号:</span>
+        <el-input
+        type="textarea"
+        class="adult-book-input"
+        :autosize="{ minRows: 2 }"
+        placeholder="请输入序号"
+        v-model="curQueItem.xuhao"
+        @blur="onBlur(curQueItem, 'xuhao')"
+        maxlength="200"
+        show-word-limit
+        ></el-input>
+    </div>
     <template v-if="type == 'image_single' || type == 'image_checkBox'">
       <div v-for="(item, i) in curQueItem.option" :key="'op' + i">
         <div class="adult-book-input-item">

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

@@ -22,7 +22,7 @@
                     :Book_text="conItem"
                     :playStorkes="true"
                     :targetDiv="
-                      'bwcHanziIntp' + index + conItem + conindex + indexStr
+                      'bwcHanziIntp' + index + conItem + conindex + indexStr +judgeAnswer
                     "
                   />
                   <div
@@ -126,7 +126,7 @@ import { getContentFile, LearnWebSI } from "../../../api/ajax";
 import FreeWriteQP from "./components/FreeWriteQP.vue";
 export default {
   components: { Strockplayredline, Practice, FreewriteLettle, FreeWriteQP },
-  props: ["curQue", "themeColor", "indexStr", "currentTreeID", "TaskModel"],
+  props: ["curQue", "themeColor", "indexStr", "currentTreeID", "TaskModel", "judgeAnswer"],
   data() {
     return {
       isPraShow: false,

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

@@ -2,7 +2,9 @@
 <template>
   <div :class="['Big-Book-PictureBox']" v-if="isShowTemp">
     <!-- <ul class="Big-Book-PictureBox-item" v-for="(item,index) in curQue.queList" :key="index"> -->
+    <h2>{{curQue.title}}</h2>
     <li v-for="(items, indexs) in curQue.option" :key="indexs">
+        <span class="xuhao" v-if="items.xuhao">{{items.xuhao}}</span>
       <template v-if="ChildType != 'image_gdcy' && items.hanziSite == 'top'">
         <div class="hanzi-box hanzi-box-top" v-if="items.pinyin || items.hanzi">
           <span
@@ -32,7 +34,6 @@
           </div>
         </el-image>
       </div>
-
       <template
         v-if="
           ChildType != 'image_gdcy' &&
@@ -824,12 +825,38 @@ export default {
   //     margin: 0;
   //     display: flex;
   //     flex-flow: wrap;
+  h2{
+    word-break: break-word;
+    font-family: 'robot';
+    font-weight: 700;
+    font-size: 20px;
+    line-height: 150%;
+    margin: 0 0 16px;
+    color: #000000;
+  }
   li {
     list-style: none;
     padding: 8px;
     border-radius: 8px;
     border: 1px solid rgba(0, 0, 0, 0.1);
     background: #fff;
+    position: relative;
+    .xuhao{
+        position: absolute;
+        top: -4px;
+        left: -4px;
+        font-weight: 400;
+        font-size: 12px;
+        line-height: 14px;
+        font-family: 'robot';
+        color: #FFFFFF;
+        padding: 1px 4px;
+        background: #7663EC;
+        border-radius: 8px;
+        display: block;
+        min-width: 16px;
+        text-align: center;
+    }
     .option_main {
       display: flex;
       flex-wrap: wrap;

+ 2 - 1
src/components/Adult/preview/PreviewDialogueNPC.vue

@@ -450,7 +450,8 @@
                         />
                       </template>
                       <template
-                        v-if="itemss.type == 'sentence_listen_read_chs'"
+                        v-if="itemss.type == 'sentence_listen_read_chs'&&
+                          itemJ != 'standardAnswer'"
                       >
                         <SentenceListenRead
                           v-if="refresh"