|
@@ -31,7 +31,7 @@
|
|
(previewType == 'previewCheckShow' && item.previewShow) ||
|
|
(previewType == 'previewCheckShow' && item.previewShow) ||
|
|
JSON.parse(previewGroupId).length == 0
|
|
JSON.parse(previewGroupId).length == 0
|
|
? 'NNPE-Book-content-item'
|
|
? 'NNPE-Book-content-item'
|
|
- : '',
|
|
|
|
|
|
+ : ''
|
|
]"
|
|
]"
|
|
>
|
|
>
|
|
<div v-for="(itemJ, indexJ) in judgeAnswersList" :key="indexJ">
|
|
<div v-for="(itemJ, indexJ) in judgeAnswersList" :key="indexJ">
|
|
@@ -48,97 +48,118 @@
|
|
<template
|
|
<template
|
|
v-if="
|
|
v-if="
|
|
!previewType ||
|
|
!previewType ||
|
|
- previewType == 'previewCheck' ||
|
|
|
|
- (previewType == 'previewCheckShow' && item.previewShow) ||
|
|
|
|
- JSON.parse(previewGroupId).length == 0
|
|
|
|
|
|
+ previewType == 'previewCheck' ||
|
|
|
|
+ (previewType == 'previewCheckShow' && item.previewShow) ||
|
|
|
|
+ JSON.parse(previewGroupId).length == 0
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<template v-if="itemJ != 'standardAnswer'">
|
|
<template v-if="itemJ != 'standardAnswer'">
|
|
- <div
|
|
|
|
- v-if="item.number || item.z_title || item.f_title || item.z_title_detail&&item.z_title_detail.sentence || item.f_title_detail&&item.f_title_detail.sentence"
|
|
|
|
- class="title-big"
|
|
|
|
- >
|
|
|
|
- <b v-if="item.number">{{ item.number }}</b>
|
|
|
|
<div
|
|
<div
|
|
- class="title-box-right"
|
|
|
|
- :class="[item.is_textIndex ? 'title-box-right-index' : '']"
|
|
|
|
|
|
+ v-if="
|
|
|
|
+ item.number ||
|
|
|
|
+ item.z_title ||
|
|
|
|
+ item.f_title ||
|
|
|
|
+ (item.z_title_detail && item.z_title_detail.sentence) ||
|
|
|
|
+ (item.f_title_detail && item.f_title_detail.sentence)
|
|
|
|
+ "
|
|
|
|
+ class="title-big"
|
|
>
|
|
>
|
|
- <template v-if="item.z_title_detail&&item.z_title_detail.sentence">
|
|
|
|
- <div class="item-intro">
|
|
|
|
|
|
+ <b v-if="item.number">{{ item.number }}</b>
|
|
|
|
+ <div
|
|
|
|
+ class="title-box-right"
|
|
|
|
+ :class="[item.is_textIndex ? 'title-box-right-index' : '']"
|
|
|
|
+ >
|
|
|
|
+ <template
|
|
|
|
+ v-if="item.z_title_detail && item.z_title_detail.sentence"
|
|
|
|
+ >
|
|
|
|
+ <div class="item-intro">
|
|
<OneSentenceTemp
|
|
<OneSentenceTemp
|
|
- :detail="item.z_title_detail"
|
|
|
|
- :TaskModel="TaskModel"
|
|
|
|
- :Bookanswer="[]"
|
|
|
|
- :correctAnswer="[]"
|
|
|
|
- :isInput="
|
|
|
|
- false
|
|
|
|
- "
|
|
|
|
- :fn_check_list="[]"
|
|
|
|
- :pyNumber="0"
|
|
|
|
- :record_check="[]"
|
|
|
|
- :maxFontsize="'16'"
|
|
|
|
|
|
+ :detail="item.z_title_detail"
|
|
|
|
+ :TaskModel="TaskModel"
|
|
|
|
+ :Bookanswer="[]"
|
|
|
|
+ :correctAnswer="[]"
|
|
|
|
+ :isInput="false"
|
|
|
|
+ :fn_check_list="[]"
|
|
|
|
+ :pyNumber="0"
|
|
|
|
+ :record_check="[]"
|
|
|
|
+ :maxFontsize="'16'"
|
|
/>
|
|
/>
|
|
- </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">
|
|
|
|
|
|
+ </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">
|
|
<OneSentenceTemp
|
|
<OneSentenceTemp
|
|
- :detail="item.f_title_detail"
|
|
|
|
- :TaskModel="TaskModel"
|
|
|
|
- :Bookanswer="[]"
|
|
|
|
- :correctAnswer="[]"
|
|
|
|
- :isInput="
|
|
|
|
- false
|
|
|
|
- "
|
|
|
|
- :fn_check_list="[]"
|
|
|
|
- :pyNumber="0"
|
|
|
|
- :record_check="[]"
|
|
|
|
- :maxFontsize="'16'"
|
|
|
|
- :style="{ marginTop: item.z_title||item.z_title_detail&&item.z_title_detail.sentence ? '8px' : '0' }"
|
|
|
|
|
|
+ :detail="item.f_title_detail"
|
|
|
|
+ :TaskModel="TaskModel"
|
|
|
|
+ :Bookanswer="[]"
|
|
|
|
+ :correctAnswer="[]"
|
|
|
|
+ :isInput="false"
|
|
|
|
+ :fn_check_list="[]"
|
|
|
|
+ :pyNumber="0"
|
|
|
|
+ :record_check="[]"
|
|
|
|
+ :maxFontsize="'16'"
|
|
|
|
+ :style="{
|
|
|
|
+ marginTop:
|
|
|
|
+ item.z_title ||
|
|
|
|
+ (item.z_title_detail &&
|
|
|
|
+ item.z_title_detail.sentence)
|
|
|
|
+ ? '8px'
|
|
|
|
+ : '0'
|
|
|
|
+ }"
|
|
/>
|
|
/>
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
- <h3
|
|
|
|
- v-else-if="item.f_title"
|
|
|
|
- :style="{ marginTop: item.z_title||item.z_title_detail&&item.z_title_detail.sentence ? '8px' : '0' }"
|
|
|
|
- v-html="item.f_title"
|
|
|
|
- />
|
|
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ <h3
|
|
|
|
+ v-else-if="item.f_title"
|
|
|
|
+ :style="{
|
|
|
|
+ marginTop:
|
|
|
|
+ item.z_title ||
|
|
|
|
+ (item.z_title_detail && item.z_title_detail.sentence)
|
|
|
|
+ ? '8px'
|
|
|
|
+ : '0'
|
|
|
|
+ }"
|
|
|
|
+ v-html="item.f_title"
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div
|
|
|
|
- class="title-little"
|
|
|
|
- :class="[
|
|
|
|
- item.little_title_number || item.little_title || item.l_title_detail&&item.l_title_detail.sentence
|
|
|
|
- ? 'marginTop'
|
|
|
|
- : '',
|
|
|
|
- ]"
|
|
|
|
- >
|
|
|
|
- <b v-html="item.little_title_number" />
|
|
|
|
- <template v-if="item.l_title_detail&&item.l_title_detail.sentence">
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="title-little"
|
|
|
|
+ :class="[
|
|
|
|
+ item.little_title_number ||
|
|
|
|
+ item.little_title ||
|
|
|
|
+ (item.l_title_detail && item.l_title_detail.sentence)
|
|
|
|
+ ? 'marginTop'
|
|
|
|
+ : ''
|
|
|
|
+ ]"
|
|
|
|
+ >
|
|
|
|
+ <b v-html="item.little_title_number" />
|
|
|
|
+ <template
|
|
|
|
+ v-if="item.l_title_detail && item.l_title_detail.sentence"
|
|
|
|
+ >
|
|
<div class="item-intro">
|
|
<div class="item-intro">
|
|
- <OneSentenceTemp
|
|
|
|
- :detail="item.l_title_detail"
|
|
|
|
- :TaskModel="TaskModel"
|
|
|
|
- :Bookanswer="[]"
|
|
|
|
- :correctAnswer="[]"
|
|
|
|
- :isInput="
|
|
|
|
- false
|
|
|
|
- "
|
|
|
|
- :fn_check_list="[]"
|
|
|
|
- :pyNumber="0"
|
|
|
|
- :record_check="[]"
|
|
|
|
- :maxFontsize="'16'"
|
|
|
|
- />
|
|
|
|
|
|
+ <OneSentenceTemp
|
|
|
|
+ :detail="item.l_title_detail"
|
|
|
|
+ :TaskModel="TaskModel"
|
|
|
|
+ :Bookanswer="[]"
|
|
|
|
+ :correctAnswer="[]"
|
|
|
|
+ :isInput="false"
|
|
|
|
+ :fn_check_list="[]"
|
|
|
|
+ :pyNumber="0"
|
|
|
|
+ :record_check="[]"
|
|
|
|
+ :maxFontsize="'16'"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
- <p v-html="item.little_title" v-else-if="item.little_title" />
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <p v-html="item.little_title" v-else-if="item.little_title" />
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
<div
|
|
<div
|
|
:class="[
|
|
:class="[
|
|
'NNPE-tableList',
|
|
'NNPE-tableList',
|
|
- item.is_bg ? 'NNPE-tableList-hasBg' : '',
|
|
|
|
|
|
+ item.is_bg ? 'NNPE-tableList-hasBg' : ''
|
|
]"
|
|
]"
|
|
>
|
|
>
|
|
<h6
|
|
<h6
|
|
@@ -162,7 +183,7 @@
|
|
:class="[
|
|
:class="[
|
|
indexs === item.table_list.length - 1
|
|
indexs === item.table_list.length - 1
|
|
? 'NNPE-tableList-tr-last'
|
|
? 'NNPE-tableList-tr-last'
|
|
- : '',
|
|
|
|
|
|
+ : ''
|
|
]"
|
|
]"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
@@ -172,7 +193,7 @@
|
|
'NNPE-tableList-item',
|
|
'NNPE-tableList-item',
|
|
items.length == 1
|
|
items.length == 1
|
|
? 'NNPE-tableList-item-noMargin'
|
|
? 'NNPE-tableList-item-noMargin'
|
|
- : 'NNPE-tableList-item' + items.length,
|
|
|
|
|
|
+ : 'NNPE-tableList-item' + items.length
|
|
]"
|
|
]"
|
|
>
|
|
>
|
|
<template v-if="itemss.data">
|
|
<template v-if="itemss.data">
|
|
@@ -183,12 +204,12 @@
|
|
:task-model="TaskModel"
|
|
:task-model="TaskModel"
|
|
:number="
|
|
:number="
|
|
index +
|
|
index +
|
|
- '_' +
|
|
|
|
- indexs +
|
|
|
|
- '_' +
|
|
|
|
- indexss +
|
|
|
|
- '_' +
|
|
|
|
- currentTreeID
|
|
|
|
|
|
+ '_' +
|
|
|
|
+ indexs +
|
|
|
|
+ '_' +
|
|
|
|
+ indexss +
|
|
|
|
+ '_' +
|
|
|
|
+ currentTreeID
|
|
"
|
|
"
|
|
:judgeAnswer="itemJ"
|
|
:judgeAnswer="itemJ"
|
|
/>
|
|
/>
|
|
@@ -206,7 +227,7 @@
|
|
<template
|
|
<template
|
|
v-if="
|
|
v-if="
|
|
itemss.type == 'phrase_chs' &&
|
|
itemss.type == 'phrase_chs' &&
|
|
- itemJ != 'standardAnswer'
|
|
|
|
|
|
+ itemJ != 'standardAnswer'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<WordPhrase
|
|
<WordPhrase
|
|
@@ -216,12 +237,12 @@
|
|
:task-model="TaskModel"
|
|
:task-model="TaskModel"
|
|
:indexStr="
|
|
:indexStr="
|
|
index +
|
|
index +
|
|
- '_' +
|
|
|
|
- indexs +
|
|
|
|
- '_' +
|
|
|
|
- indexss +
|
|
|
|
- '_' +
|
|
|
|
- currentTreeID
|
|
|
|
|
|
+ '_' +
|
|
|
|
+ indexs +
|
|
|
|
+ '_' +
|
|
|
|
+ indexss +
|
|
|
|
+ '_' +
|
|
|
|
+ currentTreeID
|
|
"
|
|
"
|
|
:judgeAnswer="itemJ"
|
|
:judgeAnswer="itemJ"
|
|
/>
|
|
/>
|
|
@@ -229,7 +250,7 @@
|
|
<template
|
|
<template
|
|
v-if="
|
|
v-if="
|
|
itemss.type == 'NewWord_chs' &&
|
|
itemss.type == 'NewWord_chs' &&
|
|
- itemJ != 'standardAnswer'
|
|
|
|
|
|
+ itemJ != 'standardAnswer'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<WordPhrase
|
|
<WordPhrase
|
|
@@ -242,12 +263,12 @@
|
|
:task-model="TaskModel"
|
|
:task-model="TaskModel"
|
|
:indexStr="
|
|
:indexStr="
|
|
index +
|
|
index +
|
|
- '_' +
|
|
|
|
- indexs +
|
|
|
|
- '_' +
|
|
|
|
- indexss +
|
|
|
|
- '_' +
|
|
|
|
- currentTreeID
|
|
|
|
|
|
+ '_' +
|
|
|
|
+ indexs +
|
|
|
|
+ '_' +
|
|
|
|
+ indexss +
|
|
|
|
+ '_' +
|
|
|
|
+ currentTreeID
|
|
"
|
|
"
|
|
:judgeAnswer="itemJ"
|
|
:judgeAnswer="itemJ"
|
|
/>
|
|
/>
|
|
@@ -255,7 +276,7 @@
|
|
<template
|
|
<template
|
|
v-if="
|
|
v-if="
|
|
itemss.type == 'annotation_chs' &&
|
|
itemss.type == 'annotation_chs' &&
|
|
- itemJ != 'standardAnswer'
|
|
|
|
|
|
+ itemJ != 'standardAnswer'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<WordPhrase
|
|
<WordPhrase
|
|
@@ -265,12 +286,12 @@
|
|
:task-model="TaskModel"
|
|
:task-model="TaskModel"
|
|
:indexStr="
|
|
:indexStr="
|
|
index +
|
|
index +
|
|
- '_' +
|
|
|
|
- indexs +
|
|
|
|
- '_' +
|
|
|
|
- indexss +
|
|
|
|
- '_' +
|
|
|
|
- currentTreeID
|
|
|
|
|
|
+ '_' +
|
|
|
|
+ indexs +
|
|
|
|
+ '_' +
|
|
|
|
+ indexss +
|
|
|
|
+ '_' +
|
|
|
|
+ currentTreeID
|
|
"
|
|
"
|
|
:judgeAnswer="itemJ"
|
|
:judgeAnswer="itemJ"
|
|
/>
|
|
/>
|
|
@@ -278,7 +299,7 @@
|
|
<template
|
|
<template
|
|
v-if="
|
|
v-if="
|
|
itemss.type == 'notes_chs' &&
|
|
itemss.type == 'notes_chs' &&
|
|
- itemJ != 'standardAnswer'
|
|
|
|
|
|
+ itemJ != 'standardAnswer'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<Notes
|
|
<Notes
|
|
@@ -292,7 +313,7 @@
|
|
<template
|
|
<template
|
|
v-if="
|
|
v-if="
|
|
itemss.type == 'article_chs' &&
|
|
itemss.type == 'article_chs' &&
|
|
- itemJ != 'standardAnswer'
|
|
|
|
|
|
+ itemJ != 'standardAnswer'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<ArticleTemChs
|
|
<ArticleTemChs
|
|
@@ -305,6 +326,8 @@
|
|
:current-tree-i-d="currentTreeID"
|
|
:current-tree-i-d="currentTreeID"
|
|
:task-model="TaskModel"
|
|
:task-model="TaskModel"
|
|
:judgeAnswer="itemJ"
|
|
:judgeAnswer="itemJ"
|
|
|
|
+ :col-length="items.length"
|
|
|
|
+ :NpcNewWordMp3="NpcNewWordMp3"
|
|
/>
|
|
/>
|
|
</template>
|
|
</template>
|
|
<!-- <template v-if="itemss.type == 'sentence_segword_chs'">
|
|
<!-- <template v-if="itemss.type == 'sentence_segword_chs'">
|
|
@@ -317,7 +340,7 @@
|
|
<template
|
|
<template
|
|
v-if="
|
|
v-if="
|
|
itemss.type == 'dialogue_article_chs' &&
|
|
itemss.type == 'dialogue_article_chs' &&
|
|
- itemJ != 'standardAnswer'
|
|
|
|
|
|
+ itemJ != 'standardAnswer'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<DialogueArticleViewChs
|
|
<DialogueArticleViewChs
|
|
@@ -331,6 +354,8 @@
|
|
:current-tree-i-d="currentTreeID"
|
|
:current-tree-i-d="currentTreeID"
|
|
:task-model="TaskModel"
|
|
:task-model="TaskModel"
|
|
:judgeAnswer="itemJ"
|
|
:judgeAnswer="itemJ"
|
|
|
|
+ :col-length="items.length"
|
|
|
|
+ :NpcNewWordMp3="NpcNewWordMp3"
|
|
/>
|
|
/>
|
|
</template>
|
|
</template>
|
|
<template v-if="itemss.type == 'dialogue_answer_chs'">
|
|
<template v-if="itemss.type == 'dialogue_answer_chs'">
|
|
@@ -364,10 +389,10 @@
|
|
<template
|
|
<template
|
|
v-if="
|
|
v-if="
|
|
itemss.type == 'inputItem_chs' ||
|
|
itemss.type == 'inputItem_chs' ||
|
|
- itemss.type == 'sentence_input_chs' ||
|
|
|
|
- itemss.type == 'sentence_judge_chs' ||
|
|
|
|
- itemss.type == 'sentence_record_chs' ||
|
|
|
|
- itemss.type == 'sentence_input_record_chs'
|
|
|
|
|
|
+ itemss.type == 'sentence_input_chs' ||
|
|
|
|
+ itemss.type == 'sentence_judge_chs' ||
|
|
|
|
+ itemss.type == 'sentence_record_chs' ||
|
|
|
|
+ itemss.type == 'sentence_input_record_chs'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<SentenceInput
|
|
<SentenceInput
|
|
@@ -390,7 +415,7 @@
|
|
<template
|
|
<template
|
|
v-if="
|
|
v-if="
|
|
itemss.type === 'voice_matrix' &&
|
|
itemss.type === 'voice_matrix' &&
|
|
- itemJ != 'standardAnswer'
|
|
|
|
|
|
+ itemJ != 'standardAnswer'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<voice-matrix
|
|
<voice-matrix
|
|
@@ -476,7 +501,7 @@
|
|
<template
|
|
<template
|
|
v-if="
|
|
v-if="
|
|
itemss.type == 'newWord_preview_chs' &&
|
|
itemss.type == 'newWord_preview_chs' &&
|
|
- itemJ != 'standardAnswer'
|
|
|
|
|
|
+ itemJ != 'standardAnswer'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<NewWordShow
|
|
<NewWordShow
|
|
@@ -502,8 +527,10 @@
|
|
/>
|
|
/>
|
|
</template>
|
|
</template>
|
|
<template
|
|
<template
|
|
- v-if="itemss.type == 'sentence_listen_read_chs'&&
|
|
|
|
- itemJ != 'standardAnswer'"
|
|
|
|
|
|
+ v-if="
|
|
|
|
+ itemss.type == 'sentence_listen_read_chs' &&
|
|
|
|
+ itemJ != 'standardAnswer'
|
|
|
|
+ "
|
|
>
|
|
>
|
|
<SentenceListenRead
|
|
<SentenceListenRead
|
|
v-if="refresh"
|
|
v-if="refresh"
|
|
@@ -539,7 +566,7 @@
|
|
itemss.type == 'record_control_normal' ||
|
|
itemss.type == 'record_control_normal' ||
|
|
itemss.type == 'record_control_pro' ||
|
|
itemss.type == 'record_control_pro' ||
|
|
itemss.type == 'record_control_promax') &&
|
|
itemss.type == 'record_control_promax') &&
|
|
- itemJ != 'standardAnswer'
|
|
|
|
|
|
+ itemJ != 'standardAnswer'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<RecordModule
|
|
<RecordModule
|
|
@@ -554,7 +581,7 @@
|
|
v-if="
|
|
v-if="
|
|
(itemss.type == 'upload_control_chs' ||
|
|
(itemss.type == 'upload_control_chs' ||
|
|
itemss.type == 'upload_control_preview_chs') &&
|
|
itemss.type == 'upload_control_preview_chs') &&
|
|
- itemJ != 'standardAnswer'
|
|
|
|
|
|
+ itemJ != 'standardAnswer'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<UploadControlView
|
|
<UploadControlView
|
|
@@ -569,7 +596,7 @@
|
|
<template
|
|
<template
|
|
v-if="
|
|
v-if="
|
|
itemss.type == 'CourseStart_chs' &&
|
|
itemss.type == 'CourseStart_chs' &&
|
|
- itemJ != 'standardAnswer'
|
|
|
|
|
|
+ itemJ != 'standardAnswer'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<CourseStart
|
|
<CourseStart
|
|
@@ -584,7 +611,7 @@
|
|
<template
|
|
<template
|
|
v-if="
|
|
v-if="
|
|
itemss.type == 'tinydemo_chs' &&
|
|
itemss.type == 'tinydemo_chs' &&
|
|
- itemJ != 'standardAnswer'
|
|
|
|
|
|
+ itemJ != 'standardAnswer'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<Tinydemo
|
|
<Tinydemo
|
|
@@ -598,7 +625,7 @@
|
|
<template
|
|
<template
|
|
v-if="
|
|
v-if="
|
|
itemss.type == 'video_chs' &&
|
|
itemss.type == 'video_chs' &&
|
|
- itemJ != 'standardAnswer'
|
|
|
|
|
|
+ itemJ != 'standardAnswer'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<VideoControl
|
|
<VideoControl
|
|
@@ -608,12 +635,12 @@
|
|
:theme-color="themeColor"
|
|
:theme-color="themeColor"
|
|
:index-str="
|
|
:index-str="
|
|
index +
|
|
index +
|
|
- '_' +
|
|
|
|
- indexs +
|
|
|
|
- '_' +
|
|
|
|
- indexss +
|
|
|
|
- '_' +
|
|
|
|
- currentTreeID
|
|
|
|
|
|
+ '_' +
|
|
|
|
+ indexs +
|
|
|
|
+ '_' +
|
|
|
|
+ indexss +
|
|
|
|
+ '_' +
|
|
|
|
+ currentTreeID
|
|
"
|
|
"
|
|
:task-model="TaskModel"
|
|
:task-model="TaskModel"
|
|
:judgeAnswer="itemJ"
|
|
:judgeAnswer="itemJ"
|
|
@@ -632,7 +659,7 @@
|
|
<template
|
|
<template
|
|
v-if="
|
|
v-if="
|
|
itemss.type == 'play_record_chs' &&
|
|
itemss.type == 'play_record_chs' &&
|
|
- itemJ != 'standardAnswer'
|
|
|
|
|
|
+ itemJ != 'standardAnswer'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<PlayRecordView
|
|
<PlayRecordView
|
|
@@ -647,7 +674,7 @@
|
|
<template
|
|
<template
|
|
v-if="
|
|
v-if="
|
|
itemss.type == 'upload_pdf_chs' &&
|
|
itemss.type == 'upload_pdf_chs' &&
|
|
- itemJ != 'standardAnswer'
|
|
|
|
|
|
+ itemJ != 'standardAnswer'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<PdfView
|
|
<PdfView
|
|
@@ -673,7 +700,7 @@
|
|
<template
|
|
<template
|
|
v-if="
|
|
v-if="
|
|
itemss.type == 'options_list_chs' &&
|
|
itemss.type == 'options_list_chs' &&
|
|
- itemJ != 'standardAnswer'
|
|
|
|
|
|
+ itemJ != 'standardAnswer'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<OptionsList
|
|
<OptionsList
|
|
@@ -687,12 +714,12 @@
|
|
</template>
|
|
</template>
|
|
<template v-if="itemss.type == 'sentence_single_chs'">
|
|
<template v-if="itemss.type == 'sentence_single_chs'">
|
|
<SentenceMulModule
|
|
<SentenceMulModule
|
|
- v-if="refresh"
|
|
|
|
- :cur-que="itemss.data"
|
|
|
|
- :type="itemss.type"
|
|
|
|
- :theme-color="themeColor"
|
|
|
|
- :task-model="TaskModel"
|
|
|
|
- :judgeAnswer="itemJ"
|
|
|
|
|
|
+ v-if="refresh"
|
|
|
|
+ :cur-que="itemss.data"
|
|
|
|
+ :type="itemss.type"
|
|
|
|
+ :theme-color="themeColor"
|
|
|
|
+ :task-model="TaskModel"
|
|
|
|
+ :judgeAnswer="itemJ"
|
|
/>
|
|
/>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
@@ -762,7 +789,7 @@ import PdfView from "./PdfView.vue"; // 视频控件
|
|
import SentenceModule from "./SentenceModule.vue"; // 图片模板
|
|
import SentenceModule from "./SentenceModule.vue"; // 图片模板
|
|
import PlayRecordView from "./PlayRecordView.vue";
|
|
import PlayRecordView from "./PlayRecordView.vue";
|
|
import OptionsList from "./OptionsList.vue"; // 选项模板
|
|
import OptionsList from "./OptionsList.vue"; // 选项模板
|
|
-import SentenceMulModule from "./SentenceMulModule.vue" // 多题干模板
|
|
|
|
|
|
+import SentenceMulModule from "./SentenceMulModule.vue"; // 多题干模板
|
|
import OneSentenceTemp from "./components/OneSentenceTemp.vue";
|
|
import OneSentenceTemp from "./components/OneSentenceTemp.vue";
|
|
|
|
|
|
import { getToken } from "../../../utils/auth";
|
|
import { getToken } from "../../../utils/auth";
|
|
@@ -824,6 +851,7 @@ export default {
|
|
"isShowSave",
|
|
"isShowSave",
|
|
"previewType",
|
|
"previewType",
|
|
"previewGroupId",
|
|
"previewGroupId",
|
|
|
|
+ "NpcNewWordMp3"
|
|
],
|
|
],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -841,45 +869,45 @@ export default {
|
|
colorBox: [
|
|
colorBox: [
|
|
{
|
|
{
|
|
touxiang: "#72B51D",
|
|
touxiang: "#72B51D",
|
|
- bg: "#E9F0DF",
|
|
|
|
|
|
+ bg: "#E9F0DF"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
touxiang: "#DE4444",
|
|
touxiang: "#DE4444",
|
|
- bg: "rgba(222, 68, 68, 0.1)",
|
|
|
|
|
|
+ bg: "rgba(222, 68, 68, 0.1)"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
touxiang: "#A7A7A7",
|
|
touxiang: "#A7A7A7",
|
|
- bg: "#ffffff",
|
|
|
|
|
|
+ bg: "#ffffff"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
touxiang: "#4D91F6",
|
|
touxiang: "#4D91F6",
|
|
- bg: "#F1F7FF",
|
|
|
|
|
|
+ bg: "#F1F7FF"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
touxiang: "#FF8A00",
|
|
touxiang: "#FF8A00",
|
|
- bg: "rgba(255, 138, 0, 0.1)",
|
|
|
|
|
|
+ bg: "rgba(255, 138, 0, 0.1)"
|
|
},
|
|
},
|
|
|
|
|
|
{
|
|
{
|
|
touxiang: "#25C8B4",
|
|
touxiang: "#25C8B4",
|
|
- bg: "#D3F4F0",
|
|
|
|
|
|
+ bg: "#D3F4F0"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
touxiang: "#AD44DE",
|
|
touxiang: "#AD44DE",
|
|
- bg: "#EFDAF8",
|
|
|
|
|
|
+ bg: "#EFDAF8"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
touxiang: "#CD003E",
|
|
touxiang: "#CD003E",
|
|
- bg: "#F5CCD8",
|
|
|
|
|
|
+ bg: "#F5CCD8"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
touxiang: "#FF4980",
|
|
touxiang: "#FF4980",
|
|
- bg: "#FFDBE6",
|
|
|
|
|
|
+ bg: "#FFDBE6"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
touxiang: "#FAFF00",
|
|
touxiang: "#FAFF00",
|
|
- bg: "#FEFFCC",
|
|
|
|
- },
|
|
|
|
|
|
+ bg: "#FEFFCC"
|
|
|
|
+ }
|
|
],
|
|
],
|
|
chsFhList: [",", "。", "“", ":", "》", "?", "!", ";"],
|
|
chsFhList: [",", "。", "“", ":", "》", "?", "!", ";"],
|
|
noFont: ["~", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")"], // 对应不要拼音字体
|
|
noFont: ["~", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")"], // 对应不要拼音字体
|
|
@@ -894,7 +922,7 @@ export default {
|
|
groupCheckList: [], // checkbox 是否选中
|
|
groupCheckList: [], // checkbox 是否选中
|
|
judgeAnswersList: ["userAnswer", "standardAnswer"],
|
|
judgeAnswersList: ["userAnswer", "standardAnswer"],
|
|
visiblePreviewDialog: false,
|
|
visiblePreviewDialog: false,
|
|
- titleChsFhList:[",", "”","。",":", "》", "?", "!", ";"],
|
|
|
|
|
|
+ titleChsFhList: [",", "”", "。", ":", "》", "?", "!", ";"]
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
@@ -935,8 +963,8 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 深度观察监听
|
|
// 深度观察监听
|
|
- deep: true,
|
|
|
|
- },
|
|
|
|
|
|
+ deep: true
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// 生命周期 - 创建完成(可以访问当前this实例)
|
|
// 生命周期 - 创建完成(可以访问当前this实例)
|
|
created() {},
|
|
created() {},
|
|
@@ -990,7 +1018,7 @@ export default {
|
|
let obj = {
|
|
let obj = {
|
|
pinyin: sItem.pinyin,
|
|
pinyin: sItem.pinyin,
|
|
chs: sItem.chs,
|
|
chs: sItem.chs,
|
|
- isShow: true,
|
|
|
|
|
|
+ isShow: true
|
|
};
|
|
};
|
|
paraArr.push(obj);
|
|
paraArr.push(obj);
|
|
});
|
|
});
|
|
@@ -1037,53 +1065,66 @@ export default {
|
|
// }
|
|
// }
|
|
_this.cur = _this.contextData;
|
|
_this.cur = _this.contextData;
|
|
_this.cur.cur_fn_data.forEach((item, index) => {
|
|
_this.cur.cur_fn_data.forEach((item, index) => {
|
|
- if(item.hasOwnProperty("z_title_detail")){
|
|
|
|
- if (item.z_title_detail.wordsList.length > 0) {
|
|
|
|
- item.z_title_detail.wordsList.forEach((sItem, sIndex) => {
|
|
|
|
- this.mergeWordSymbol(sItem);
|
|
|
|
- sItem.fontColor=this.themeColor==='green'?'#24b99e':this.themeColor==='brown'?'#bd8865':'#e35454'
|
|
|
|
- sItem.fontSize = '16px'
|
|
|
|
- sItem.fontWeight = 'bold'
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- this.$set(item.z_title_detail, "config", {
|
|
|
|
- fontColor:this.themeColor==='green'?'#24b99e':this.themeColor==='brown'?'#bd8865':'#e35454',
|
|
|
|
- fontFamily: 'Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif',
|
|
|
|
- fontSize: '16px',
|
|
|
|
- fontWeight: 'bold'
|
|
|
|
|
|
+ if (item.hasOwnProperty("z_title_detail")) {
|
|
|
|
+ if (item.z_title_detail.wordsList.length > 0) {
|
|
|
|
+ item.z_title_detail.wordsList.forEach((sItem, sIndex) => {
|
|
|
|
+ this.mergeWordSymbol(sItem);
|
|
|
|
+ sItem.fontColor =
|
|
|
|
+ this.themeColor === "green"
|
|
|
|
+ ? "#24b99e"
|
|
|
|
+ : this.themeColor === "brown"
|
|
|
|
+ ? "#bd8865"
|
|
|
|
+ : "#e35454";
|
|
|
|
+ sItem.fontSize = "16px";
|
|
|
|
+ sItem.fontWeight = "bold";
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- if(item.hasOwnProperty("f_title_detail")){
|
|
|
|
- if (item.f_title_detail.wordsList.length > 0) {
|
|
|
|
- item.f_title_detail.wordsList.forEach((sItem, sIndex) => {
|
|
|
|
- this.mergeWordSymbol(sItem);
|
|
|
|
- sItem.fontColor='#000000'
|
|
|
|
- sItem.fontSize = '16px'
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- this.$set(item.f_title_detail, "config", {
|
|
|
|
- fontColor:'#000000',
|
|
|
|
- fontFamily: 'Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif',
|
|
|
|
- fontSize: '16px'
|
|
|
|
|
|
+ this.$set(item.z_title_detail, "config", {
|
|
|
|
+ fontColor:
|
|
|
|
+ this.themeColor === "green"
|
|
|
|
+ ? "#24b99e"
|
|
|
|
+ : this.themeColor === "brown"
|
|
|
|
+ ? "#bd8865"
|
|
|
|
+ : "#e35454",
|
|
|
|
+ fontFamily:
|
|
|
|
+ "Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif",
|
|
|
|
+ fontSize: "16px",
|
|
|
|
+ fontWeight: "bold"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ if (item.hasOwnProperty("f_title_detail")) {
|
|
|
|
+ if (item.f_title_detail.wordsList.length > 0) {
|
|
|
|
+ item.f_title_detail.wordsList.forEach((sItem, sIndex) => {
|
|
|
|
+ this.mergeWordSymbol(sItem);
|
|
|
|
+ sItem.fontColor = "#000000";
|
|
|
|
+ sItem.fontSize = "16px";
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- if(item.hasOwnProperty("l_title_detail")){
|
|
|
|
- if (item.l_title_detail.wordsList.length > 0) {
|
|
|
|
- item.l_title_detail.wordsList.forEach((sItem, sIndex) => {
|
|
|
|
- this.mergeWordSymbol(sItem);
|
|
|
|
- sItem.fontColor='#000000'
|
|
|
|
- sItem.fontSize = '16px'
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- this.$set(item.l_title_detail, "config", {
|
|
|
|
- fontColor:'#000000',
|
|
|
|
- fontFamily: 'Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif',
|
|
|
|
- fontSize: '16px'
|
|
|
|
|
|
+ this.$set(item.f_title_detail, "config", {
|
|
|
|
+ fontColor: "#000000",
|
|
|
|
+ fontFamily:
|
|
|
|
+ "Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif",
|
|
|
|
+ fontSize: "16px"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ if (item.hasOwnProperty("l_title_detail")) {
|
|
|
|
+ if (item.l_title_detail.wordsList.length > 0) {
|
|
|
|
+ item.l_title_detail.wordsList.forEach((sItem, sIndex) => {
|
|
|
|
+ this.mergeWordSymbol(sItem);
|
|
|
|
+ sItem.fontColor = "#000000";
|
|
|
|
+ sItem.fontSize = "16px";
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ this.$set(item.l_title_detail, "config", {
|
|
|
|
+ fontColor: "#000000",
|
|
|
|
+ fontFamily:
|
|
|
|
+ "Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif",
|
|
|
|
+ fontSize: "16px"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
this.groupCheckList.push(false);
|
|
this.groupCheckList.push(false);
|
|
- selectGropuIdList.forEach((itemId) => {
|
|
|
|
- itemId.forEach((itemIds) => {
|
|
|
|
|
|
+ selectGropuIdList.forEach(itemId => {
|
|
|
|
+ itemId.forEach(itemIds => {
|
|
if (item.group_id && itemIds.indexOf(item.group_id[0]) > -1) {
|
|
if (item.group_id && itemIds.indexOf(item.group_id[0]) > -1) {
|
|
item.previewShow = true;
|
|
item.previewShow = true;
|
|
}
|
|
}
|
|
@@ -1193,15 +1234,23 @@ export default {
|
|
},
|
|
},
|
|
puaseAudio() {
|
|
puaseAudio() {
|
|
let audio = document.getElementsByTagName("audio");
|
|
let audio = document.getElementsByTagName("audio");
|
|
- if(audio&&audio.length>0&&window.location.href.indexOf('GCLS-Learn')==-1){
|
|
|
|
- audio.forEach((item) => {
|
|
|
|
- item.pause();
|
|
|
|
|
|
+ if (
|
|
|
|
+ audio &&
|
|
|
|
+ audio.length > 0 &&
|
|
|
|
+ window.location.href.indexOf("GCLS-Learn") == -1
|
|
|
|
+ ) {
|
|
|
|
+ audio.forEach(item => {
|
|
|
|
+ item.pause();
|
|
});
|
|
});
|
|
}
|
|
}
|
|
let video = document.getElementsByTagName("video");
|
|
let video = document.getElementsByTagName("video");
|
|
- if(video&&video.length>0&&window.location.href.indexOf('GCLS-Learn')==-1){
|
|
|
|
- video.forEach((item) => {
|
|
|
|
- item.pause();
|
|
|
|
|
|
+ if (
|
|
|
|
+ video &&
|
|
|
|
+ video.length > 0 &&
|
|
|
|
+ window.location.href.indexOf("GCLS-Learn") == -1
|
|
|
|
+ ) {
|
|
|
|
+ video.forEach(item => {
|
|
|
|
+ item.pause();
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -1252,7 +1301,7 @@ export default {
|
|
let result = [];
|
|
let result = [];
|
|
contextData.cur_fn_data.forEach((item, index) => {
|
|
contextData.cur_fn_data.forEach((item, index) => {
|
|
result[index] = {
|
|
result[index] = {
|
|
- table_list: [],
|
|
|
|
|
|
+ table_list: []
|
|
};
|
|
};
|
|
item.table_list.forEach((items, indexs) => {
|
|
item.table_list.forEach((items, indexs) => {
|
|
result[index].table_list[indexs] = [];
|
|
result[index].table_list[indexs] = [];
|
|
@@ -1261,13 +1310,13 @@ export default {
|
|
let Bookanswer = itemss.data.Bookanswer;
|
|
let Bookanswer = itemss.data.Bookanswer;
|
|
let obj = {
|
|
let obj = {
|
|
data: {
|
|
data: {
|
|
- Bookanswer,
|
|
|
|
- },
|
|
|
|
|
|
+ Bookanswer
|
|
|
|
+ }
|
|
};
|
|
};
|
|
result[index].table_list[indexs][indexss] = obj;
|
|
result[index].table_list[indexs][indexss] = obj;
|
|
} else {
|
|
} else {
|
|
result[index].table_list[indexs][indexss] = {
|
|
result[index].table_list[indexs][indexss] = {
|
|
- data: null,
|
|
|
|
|
|
+ data: null
|
|
};
|
|
};
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -1325,8 +1374,8 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
- },
|
|
|
|
- }, // 如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
|
|
|
+ }
|
|
|
|
+ } // 如果页面有keep-alive缓存功能,这个函数会触发
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|