|
@@ -163,475 +163,515 @@
|
|
|
: '',
|
|
|
]"
|
|
|
>
|
|
|
- <el-checkbox
|
|
|
- class="NNPE-Book-content-item-checkbox"
|
|
|
- :label="item.group_id"
|
|
|
- v-if="previewType && previewType == 'previewCheck' && item.group_id"
|
|
|
- v-model="groupCheckList[index]"
|
|
|
- @change="forupdata(index)"
|
|
|
- ><br
|
|
|
- /></el-checkbox>
|
|
|
- <template
|
|
|
- v-if="
|
|
|
- !previewType ||
|
|
|
- previewType == 'previewCheck' ||
|
|
|
- (previewType == 'previewCheckShow' && item.previewShow) ||
|
|
|
- JSON.parse(previewGroupId).length == 0
|
|
|
- "
|
|
|
- >
|
|
|
- <div
|
|
|
- v-if="item.number || item.z_title || item.f_title"
|
|
|
- class="title-big"
|
|
|
+ <div v-for="(itemJ, indexJ) in judgeAnswersList" :key="indexJ">
|
|
|
+ <el-checkbox
|
|
|
+ class="NNPE-Book-content-item-checkbox"
|
|
|
+ :label="item.group_id"
|
|
|
+ v-if="previewType && previewType == 'previewCheck' && item.group_id"
|
|
|
+ v-model="groupCheckList[index]"
|
|
|
+ @change="forupdata(index)"
|
|
|
+ ><br
|
|
|
+ /></el-checkbox>
|
|
|
+ <template
|
|
|
+ v-if="
|
|
|
+ !previewType ||
|
|
|
+ previewType == 'previewCheck' ||
|
|
|
+ (previewType == 'previewCheckShow' && item.previewShow) ||
|
|
|
+ JSON.parse(previewGroupId).length == 0
|
|
|
+ "
|
|
|
>
|
|
|
- <b v-if="item.number">{{ item.number }}</b>
|
|
|
<div
|
|
|
- class="title-box-right"
|
|
|
- :class="[item.is_textIndex ? 'title-box-right-index' : '']"
|
|
|
+ v-if="item.number || item.z_title || item.f_title"
|
|
|
+ class="title-big"
|
|
|
>
|
|
|
- <h2 v-if="item.z_title" v-html="item.z_title" />
|
|
|
- <h3
|
|
|
- v-if="item.f_title"
|
|
|
- :style="{ marginTop: item.z_title ? '8px' : '0' }"
|
|
|
- v-html="item.f_title"
|
|
|
- />
|
|
|
+ <b v-if="item.number">{{ item.number }}</b>
|
|
|
+ <div
|
|
|
+ class="title-box-right"
|
|
|
+ :class="[item.is_textIndex ? 'title-box-right-index' : '']"
|
|
|
+ >
|
|
|
+ <h2 v-if="item.z_title" v-html="item.z_title" />
|
|
|
+ <h3
|
|
|
+ v-if="item.f_title"
|
|
|
+ :style="{ marginTop: item.z_title ? '8px' : '0' }"
|
|
|
+ v-html="item.f_title"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div
|
|
|
- class="title-little"
|
|
|
- :class="[
|
|
|
- item.little_title_number || item.little_title ? 'marginTop' : '',
|
|
|
- ]"
|
|
|
- >
|
|
|
- <b v-html="item.little_title_number" />
|
|
|
- <p v-html="item.little_title" />
|
|
|
- </div>
|
|
|
- <div
|
|
|
- :class="[
|
|
|
- 'NNPE-tableList',
|
|
|
- item.is_bg ? 'NNPE-tableList-hasBg' : '',
|
|
|
- ]"
|
|
|
- >
|
|
|
<div
|
|
|
- v-for="(items, indexs) in item.table_list"
|
|
|
- :key="indexs"
|
|
|
- class="NNPE-tableList-tr"
|
|
|
+ class="title-little"
|
|
|
:class="[
|
|
|
- indexs === item.table_list.length - 1
|
|
|
- ? 'NNPE-tableList-tr-last'
|
|
|
+ item.little_title_number || item.little_title
|
|
|
+ ? 'marginTop'
|
|
|
: '',
|
|
|
]"
|
|
|
>
|
|
|
+ <b v-html="item.little_title_number" />
|
|
|
+ <p v-html="item.little_title" />
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ :class="[
|
|
|
+ 'NNPE-tableList',
|
|
|
+ item.is_bg ? 'NNPE-tableList-hasBg' : '',
|
|
|
+ ]"
|
|
|
+ >
|
|
|
<div
|
|
|
- v-for="(itemss, indexss) in items"
|
|
|
- :key="indexss"
|
|
|
+ v-for="(items, indexs) in item.table_list"
|
|
|
+ :key="indexs"
|
|
|
+ class="NNPE-tableList-tr"
|
|
|
:class="[
|
|
|
- 'NNPE-tableList-item',
|
|
|
- items.length == 1
|
|
|
- ? 'NNPE-tableList-item-noMargin'
|
|
|
- : 'NNPE-tableList-item' + items.length,
|
|
|
+ indexs === item.table_list.length - 1
|
|
|
+ ? 'NNPE-tableList-tr-last'
|
|
|
+ : '',
|
|
|
]"
|
|
|
>
|
|
|
- <template v-if="itemss.data">
|
|
|
- <template v-if="itemss.type == 'ligature_chs'">
|
|
|
- <Ligature
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- :number="
|
|
|
- index +
|
|
|
- '_' +
|
|
|
- indexs +
|
|
|
- '_' +
|
|
|
- indexss +
|
|
|
- '_' +
|
|
|
- currentTreeID
|
|
|
- "
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.data.type == 'image'">
|
|
|
- <Picture
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :child-type="itemss.type"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'phrase_chs'">
|
|
|
- <WordPhrase
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- :indexStr="
|
|
|
- index +
|
|
|
- '_' +
|
|
|
- indexs +
|
|
|
- '_' +
|
|
|
- indexss +
|
|
|
- '_' +
|
|
|
- currentTreeID
|
|
|
- "
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'NewWord_chs'">
|
|
|
- <WordPhrase
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :current-tree-i-d="currentTreeID"
|
|
|
- :indexs="indexs"
|
|
|
- :indexss="indexss"
|
|
|
- :task-model="TaskModel"
|
|
|
- :indexStr="
|
|
|
- index +
|
|
|
- '_' +
|
|
|
- indexs +
|
|
|
- '_' +
|
|
|
- indexss +
|
|
|
- '_' +
|
|
|
- currentTreeID
|
|
|
- "
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'annotation_chs'">
|
|
|
- <WordPhrase
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- :indexStr="
|
|
|
- index +
|
|
|
- '_' +
|
|
|
- indexs +
|
|
|
- '_' +
|
|
|
- indexss +
|
|
|
- '_' +
|
|
|
- currentTreeID
|
|
|
- "
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'notes_chs'">
|
|
|
- <Notes
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'article_chs'">
|
|
|
- <ArticleTemChs
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :n-n-p-e-new-word-list="NNPENewWordList"
|
|
|
- :n-n-p-e-new-phrase-list="NNPENewPhraseList"
|
|
|
- :n-n-p-e-annotation-list="NNPEAnnotationList"
|
|
|
- :theme-color="themeColor"
|
|
|
- :current-tree-i-d="currentTreeID"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <!-- <template v-if="itemss.type == 'sentence_segword_chs'">
|
|
|
+ <div
|
|
|
+ v-for="(itemss, indexss) in items"
|
|
|
+ :key="indexss"
|
|
|
+ :class="[
|
|
|
+ 'NNPE-tableList-item',
|
|
|
+ items.length == 1
|
|
|
+ ? 'NNPE-tableList-item-noMargin'
|
|
|
+ : 'NNPE-tableList-item' + items.length,
|
|
|
+ ]"
|
|
|
+ >
|
|
|
+ <template v-if="itemss.data">
|
|
|
+ <template v-if="itemss.type == 'ligature_chs'">
|
|
|
+ <Ligature
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :number="
|
|
|
+ index +
|
|
|
+ '_' +
|
|
|
+ indexs +
|
|
|
+ '_' +
|
|
|
+ indexss +
|
|
|
+ '_' +
|
|
|
+ currentTreeID
|
|
|
+ "
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.data.type == 'image'">
|
|
|
+ <Picture
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :child-type="itemss.type"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'phrase_chs'">
|
|
|
+ <WordPhrase
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :indexStr="
|
|
|
+ index +
|
|
|
+ '_' +
|
|
|
+ indexs +
|
|
|
+ '_' +
|
|
|
+ indexss +
|
|
|
+ '_' +
|
|
|
+ currentTreeID
|
|
|
+ "
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'NewWord_chs'">
|
|
|
+ <WordPhrase
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :current-tree-i-d="currentTreeID"
|
|
|
+ :indexs="indexs"
|
|
|
+ :indexss="indexss"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :indexStr="
|
|
|
+ index +
|
|
|
+ '_' +
|
|
|
+ indexs +
|
|
|
+ '_' +
|
|
|
+ indexss +
|
|
|
+ '_' +
|
|
|
+ currentTreeID
|
|
|
+ "
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'annotation_chs'">
|
|
|
+ <WordPhrase
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :indexStr="
|
|
|
+ index +
|
|
|
+ '_' +
|
|
|
+ indexs +
|
|
|
+ '_' +
|
|
|
+ indexss +
|
|
|
+ '_' +
|
|
|
+ currentTreeID
|
|
|
+ "
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'notes_chs'">
|
|
|
+ <Notes
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'article_chs'">
|
|
|
+ <ArticleTemChs
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :n-n-p-e-new-word-list="NNPENewWordList"
|
|
|
+ :n-n-p-e-new-phrase-list="NNPENewPhraseList"
|
|
|
+ :n-n-p-e-annotation-list="NNPEAnnotationList"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :current-tree-i-d="currentTreeID"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <!-- <template v-if="itemss.type == 'sentence_segword_chs'">
|
|
|
<SentenceSegWordViewChs
|
|
|
:cur-que="itemss.data"
|
|
|
:theme-color="themeColor"
|
|
|
v-if="refresh"
|
|
|
/>
|
|
|
</template> -->
|
|
|
- <template v-if="itemss.type == 'dialogue_article_chs'">
|
|
|
- <DialogueArticleViewChs
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :n-n-p-e-new-word-list="NNPENewWordList"
|
|
|
- :n-n-p-e-new-phrase-list="NNPENewPhraseList"
|
|
|
- :n-n-p-e-annotation-list="NNPEAnnotationList"
|
|
|
- :color-box="colorBox"
|
|
|
- :theme-color="themeColor"
|
|
|
- :current-tree-i-d="currentTreeID"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'dialogue_answer_chs'">
|
|
|
- <DialogueAnswerViewChs
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :color-box="colorBox"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'input_record_chs'">
|
|
|
- <InputHasRecord
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'recordHZ_inputPY_chs'">
|
|
|
- <TextInputRecord
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="
|
|
|
- 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'
|
|
|
- "
|
|
|
- >
|
|
|
- <SentenceInput
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'NumberCombination_chs'">
|
|
|
- <NumberSelectHasRecord
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type === 'voice_matrix'">
|
|
|
- <voice-matrix
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type === 'select_drag'">
|
|
|
- <select-drag
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type === 'fill_drag'">
|
|
|
- <fill-drag
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type === 'config_table'">
|
|
|
- <configurable-table
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type === 'header_separate'">
|
|
|
- <header-separate
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'toneSelect_chs'">
|
|
|
- <SelectTone
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'sudoku_chs'">
|
|
|
- <Soduko
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'single_chs'">
|
|
|
- <Single
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'text_problem_chs'">
|
|
|
- <TextProblem
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'newWord_preview_chs'">
|
|
|
- <NewWordShow
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :index-str="index + '_' + indexs + '_' + indexss"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="itemss.type == 'listen_record_single_syllable_chs'"
|
|
|
- >
|
|
|
- <SelectYinjie
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'sentence_listen_read_chs'">
|
|
|
- <SentenceListenRead
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'sort_chs'">
|
|
|
- <SentenceSortQP
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="itemss.type == 'checkbox_self_assessment_chs'"
|
|
|
- >
|
|
|
- <Checkbox
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="
|
|
|
- itemss.type == 'record_control_mini' ||
|
|
|
- itemss.type == 'record_control_normal' ||
|
|
|
- itemss.type == 'record_control_pro' ||
|
|
|
- itemss.type == 'record_control_promax'
|
|
|
- "
|
|
|
- >
|
|
|
- <RecordModule
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="
|
|
|
- itemss.type == 'upload_control_chs' ||
|
|
|
- itemss.type == 'upload_control_preview_chs'
|
|
|
- "
|
|
|
- >
|
|
|
- <UploadControlView
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :type="itemss.type"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'CourseStart_chs'">
|
|
|
- <CourseStart
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :handle-n-n-p-enext="handleNNPEnext"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'tinydemo_chs'">
|
|
|
- <Tinydemo
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'video_chs'">
|
|
|
- <VideoControl
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :type="itemss.type"
|
|
|
- :theme-color="themeColor"
|
|
|
- :index-str="
|
|
|
- index +
|
|
|
- '_' +
|
|
|
- indexs +
|
|
|
- '_' +
|
|
|
- indexss +
|
|
|
- '_' +
|
|
|
- currentTreeID
|
|
|
+ <template v-if="itemss.type == 'dialogue_article_chs'">
|
|
|
+ <DialogueArticleViewChs
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :n-n-p-e-new-word-list="NNPENewWordList"
|
|
|
+ :n-n-p-e-new-phrase-list="NNPENewPhraseList"
|
|
|
+ :n-n-p-e-annotation-list="NNPEAnnotationList"
|
|
|
+ :color-box="colorBox"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :current-tree-i-d="currentTreeID"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'dialogue_answer_chs'">
|
|
|
+ <DialogueAnswerViewChs
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :color-box="colorBox"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'input_record_chs'">
|
|
|
+ <InputHasRecord
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'recordHZ_inputPY_chs'">
|
|
|
+ <TextInputRecord
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template
|
|
|
+ v-if="
|
|
|
+ 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'
|
|
|
"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'table_chs'">
|
|
|
- <TableView
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :type="itemss.type"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'play_record_chs'">
|
|
|
- <PlayRecordView
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :type="itemss.type"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'upload_pdf_chs'">
|
|
|
- <PdfView
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :type="itemss.type"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
+ >
|
|
|
+ <SentenceInput
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'NumberCombination_chs'">
|
|
|
+ <NumberSelectHasRecord
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type === 'voice_matrix'">
|
|
|
+ <voice-matrix
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type === 'select_drag'">
|
|
|
+ <select-drag
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type === 'fill_drag'">
|
|
|
+ <fill-drag
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type === 'config_table'">
|
|
|
+ <configurable-table
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type === 'header_separate'">
|
|
|
+ <header-separate
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'toneSelect_chs'">
|
|
|
+ <SelectTone
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'sudoku_chs'">
|
|
|
+ <Soduko
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'single_chs'">
|
|
|
+ <Single
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'text_problem_chs'">
|
|
|
+ <TextProblem
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'newWord_preview_chs'">
|
|
|
+ <NewWordShow
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :index-str="index + '_' + indexs + '_' + indexss"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template
|
|
|
+ v-if="itemss.type == 'listen_record_single_syllable_chs'"
|
|
|
+ >
|
|
|
+ <SelectYinjie
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'sentence_listen_read_chs'">
|
|
|
+ <SentenceListenRead
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'sort_chs'">
|
|
|
+ <SentenceSortQP
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template
|
|
|
+ v-if="itemss.type == 'checkbox_self_assessment_chs'"
|
|
|
+ >
|
|
|
+ <Checkbox
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template
|
|
|
+ v-if="
|
|
|
+ itemss.type == 'record_control_mini' ||
|
|
|
+ itemss.type == 'record_control_normal' ||
|
|
|
+ itemss.type == 'record_control_pro' ||
|
|
|
+ itemss.type == 'record_control_promax'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <RecordModule
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template
|
|
|
+ v-if="
|
|
|
+ itemss.type == 'upload_control_chs' ||
|
|
|
+ itemss.type == 'upload_control_preview_chs'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <UploadControlView
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :type="itemss.type"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'CourseStart_chs'">
|
|
|
+ <CourseStart
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :handle-n-n-p-enext="handleNNPEnext"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'tinydemo_chs'">
|
|
|
+ <Tinydemo
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'video_chs'">
|
|
|
+ <VideoControl
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :type="itemss.type"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :index-str="
|
|
|
+ index +
|
|
|
+ '_' +
|
|
|
+ indexs +
|
|
|
+ '_' +
|
|
|
+ indexss +
|
|
|
+ '_' +
|
|
|
+ currentTreeID
|
|
|
+ "
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'table_chs'">
|
|
|
+ <TableView
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :type="itemss.type"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'play_record_chs'">
|
|
|
+ <PlayRecordView
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :type="itemss.type"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'upload_pdf_chs'">
|
|
|
+ <PdfView
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :type="itemss.type"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
|
|
|
- <template v-if="itemss.type == 'sentence_segtemp_chs'">
|
|
|
- <SentenceModule
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :type="itemss.type"
|
|
|
- :theme-color="themeColor"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-if="itemss.type == 'options_list_chs'">
|
|
|
- <OptionsList
|
|
|
- v-if="refresh"
|
|
|
- :cur-que="itemss.data"
|
|
|
- :theme-color="themeColor"
|
|
|
- :index-str="index + '_' + indexs + '_' + indexss"
|
|
|
- :task-model="TaskModel"
|
|
|
- />
|
|
|
+ <template v-if="itemss.type == 'sentence_segtemp_chs'">
|
|
|
+ <SentenceModule
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :type="itemss.type"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-if="itemss.type == 'options_list_chs'">
|
|
|
+ <OptionsList
|
|
|
+ v-if="refresh"
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :index-str="index + '_' + indexs + '_' + indexss"
|
|
|
+ :task-model="TaskModel"
|
|
|
+ :judgeAnswer="itemJ"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
</template>
|
|
|
- </template>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="isShowSave || isShowTitle" class="NNPE-title NNPE-title-gray">
|
|
@@ -695,6 +735,8 @@ import SentenceModule from "./preview/SentenceModule.vue"; // 图片模板
|
|
|
import PlayRecordView from "./preview/PlayRecordView.vue";
|
|
|
import OptionsList from "./preview/OptionsList.vue"; // 选项模板
|
|
|
|
|
|
+import { getToken } from "../../utils/auth";
|
|
|
+
|
|
|
export default {
|
|
|
name: "Booknpc",
|
|
|
components: {
|
|
@@ -797,6 +839,7 @@ export default {
|
|
|
answerTimeInterval: null, // 计时器
|
|
|
groupIndexList: [], // 勾选groupid数组
|
|
|
groupCheckList: [], // checkbox 是否选中
|
|
|
+ judgeAnswersList: [],
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
@@ -962,7 +1005,19 @@ export default {
|
|
|
let Bookanswer = this.bookAnswerContent;
|
|
|
// if (_this.TaskModel == "lookAnswer" && _this.bookAnswerContent) {
|
|
|
if (Bookanswer) {
|
|
|
- // let answerData = JSON.parse(_this.bookAnswerContent);
|
|
|
+ let token = getToken();
|
|
|
+ let roleAnswer = "studentAnswer";
|
|
|
+ if (token) {
|
|
|
+ let userInfor = JSON.parse(token);
|
|
|
+ let user_type = userInfor.user_type;
|
|
|
+ if (user_type == "TEACHER") {
|
|
|
+ roleAnswer = "studentAnswer";
|
|
|
+ } else {
|
|
|
+ roleAnswer = "userAnswer";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ _this.judgeAnswersList = [roleAnswer, "standardAnswer"];
|
|
|
+
|
|
|
let answerData = JSON.parse(Bookanswer);
|
|
|
if (answerData && itemss.data) {
|
|
|
itemss.data.Bookanswer =
|
|
@@ -975,6 +1030,8 @@ export default {
|
|
|
.Bookanswer
|
|
|
: [];
|
|
|
}
|
|
|
+ } else {
|
|
|
+ _this.judgeAnswersList = [""];
|
|
|
}
|
|
|
});
|
|
|
});
|