Ver Fonte

Merge branch 'lhd'

natasha há 2 semanas atrás
pai
commit
aa313c5847

+ 1 - 1
src/views/book/courseware/create/components/question/article/Article.vue

@@ -3,7 +3,7 @@
     <template #content>
       <!-- eslint-disable max-len -->
       <div v-loading="loading" class="article-wrapper">
-        <el-input v-model="data.content" placeholder="输入" type="textarea" />
+        <el-input v-model="data.content" placeholder="输入" type="textarea" :autosize="{ minRows: 3 }" />
 
         <span class="tips">输入课文文本后,请先点击生成分词</span>
         <el-button type="primary" @click="handleChangeContent">生成分词</el-button>

+ 35 - 0
src/views/book/courseware/preview/components/article/NormalModelChs.vue

@@ -2473,6 +2473,16 @@
           </div>
         </div>
       </template>
+      <div v-if="curQue.Bookanswer" class="dia-article-record">
+        <Soundrecord
+          type="promax"
+          class="luyin-box"
+          :TaskModel="TaskModel"
+          :answer-record-list="curQue.Bookanswer.normalModel.recordList"
+          :attrib="attrib"
+          @handleWav="handleWav"
+        />
+      </div>
     </div>
     <div
       v-if="
@@ -2540,12 +2550,14 @@
 import AudioLine from '../voice_matrix/components/AudioLine.vue';
 import Notecard from './components/Notecard.vue';
 import RemarkChs from '../dialogue_article/RemarkChs.vue';
+import Soundrecord from '../../common/SoundRecord.vue';
 export default {
   name: 'NormalModelChs',
   components: {
     AudioLine,
     Notecard,
     RemarkChs,
+    Soundrecord,
   },
   inject: ['convertText'],
   props: [
@@ -2558,6 +2570,7 @@ export default {
     'multilingual',
     'attrib',
     'isMobile',
+    'TaskModel',
   ],
   data() {
     return {
@@ -2668,6 +2681,9 @@ export default {
         this.$emit('changeConfig', 'isShowEN');
       }
     },
+    handleWav(list) {
+      this.$set(this.curQue.Bookanswer.normalModel, 'recordList', list);
+    },
     getCurTime(curTime) {
       this.curTime = curTime * 1000;
       this.getSentIndex(this.curTime);
@@ -3076,6 +3092,25 @@ export default {
     }
   }
 
+  .dia-article-record {
+    display: flex;
+
+    // justify-content: end;
+    width: 100%;
+    border-top: 1px solid rgba(0, 0, 0, 10%);
+
+    .luyin-box {
+      justify-content: end;
+      max-width: 224px;
+      height: 40px;
+      padding: 8px 24px;
+
+      :deep .el-select {
+        width: 24px;
+      }
+    }
+  }
+
   .NNPE-detail {
     // overflow: hidden; // 为了不遮挡备注内容
     display: flex;

+ 1 - 2
src/views/book/courseware/preview/components/article/Practicechs.vue

@@ -6,8 +6,7 @@
       v-if="
         ((curQue.mp3_list && curQue.mp3_list.length > 0 && curQue.mp3_list[0].url) ||
           config.isHasPY ||
-          config.isHasEN ||
-          (curQue.property.is_enable_score && curQue.property.is_enable_score === 'true')) &&
+          config.isHasEN) &&
         curQue.property.mp3_position === 'top'
       "
       class="aduioLine-box aduioLine-practice-npc"

+ 1 - 0
src/views/book/courseware/preview/components/article/index.vue

@@ -121,6 +121,7 @@
             :theme-color="bookInfo.theme_color"
             :no-font="noFont"
             :config="config"
+            :TaskModel="isJudgingRightWrong ? 'ANSWER' : ''"
             :NNPEAnnotationList="NNPEAnnotationList"
             :col-length="colLength"
             :multilingual="showLang && getLang() ? getLang() : ''"

+ 2 - 1
src/views/book/courseware/preview/components/dialogue_article/NormalModelChs.vue

@@ -2123,7 +2123,8 @@ export default {
 
     .dia-article-record {
       display: flex;
-      justify-content: end;
+
+      // justify-content: end;
       width: 100%;
       border-top: 1px solid rgba(0, 0, 0, 10%);
 

+ 1 - 0
src/views/book/courseware/preview/components/dialogue_article/index.vue

@@ -123,6 +123,7 @@
             :is-mobile="isMobile"
             :no-font="noFont"
             :config="config"
+            :TaskModel="isJudgingRightWrong ? 'ANSWER' : ''"
             :NNPEAnnotationList="NNPEAnnotationList"
             :col-length="colLength"
             :multilingual="showLang && getLang() ? getLang() : ''"