|
|
@@ -213,218 +213,229 @@
|
|
|
:visible.sync="visibleAnswerAnalysis"
|
|
|
:answer-list="data.answer_list"
|
|
|
:analysis-list="data.analysis_list"
|
|
|
- />
|
|
|
-
|
|
|
- <div v-if="isShowRightAnswer" class="right-answer">
|
|
|
- <div class="title">{{ convertText('正确答案') }}</div>
|
|
|
- <div class="box">
|
|
|
- <div
|
|
|
- v-for="(item, index) in data.option_list"
|
|
|
- :key="index"
|
|
|
- class="item-box"
|
|
|
- :class="['item-box-' + data.property.model]"
|
|
|
- >
|
|
|
+ @closeAnswerAnalysis="closeAnswerAnalysis"
|
|
|
+ >
|
|
|
+ <div slot="right-answer" class="right-answer">
|
|
|
+ <div class="box">
|
|
|
<div
|
|
|
- class="number-box"
|
|
|
- :style="{
|
|
|
- marginTop: isEnable(data.property.view_pinyin)
|
|
|
- ? '30px'
|
|
|
- : data.answer_type.indexOf('pinyin') > -1 && data.property.model === 'input'
|
|
|
- ? '52px'
|
|
|
- : '',
|
|
|
- }"
|
|
|
+ v-for="(item, index) in data.option_list"
|
|
|
+ :key="index"
|
|
|
+ class="item-box"
|
|
|
+ :class="['item-box-' + data.property.model]"
|
|
|
>
|
|
|
- <span
|
|
|
- class="number"
|
|
|
- :style="{
|
|
|
- background:
|
|
|
- data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : '',
|
|
|
- }"
|
|
|
- >{{ index + 1 }}</span
|
|
|
- >
|
|
|
- </div>
|
|
|
- <div class="pinyin-en" :class="[item.is_example ? 'item-example' : '']">
|
|
|
<div
|
|
|
- v-if="isEnable(data.property.view_pinyin) && data.property.model === 'input' && item.is_common_pinyin"
|
|
|
- class="pinyin"
|
|
|
+ class="number-box"
|
|
|
:style="{
|
|
|
- fontSize: data.unified_attrib && data.unified_attrib.pinyin_size ? data.unified_attrib.pinyin_size : '',
|
|
|
+ marginTop: isEnable(data.property.view_pinyin)
|
|
|
+ ? '30px'
|
|
|
+ : data.answer_type.indexOf('pinyin') > -1 && data.property.model === 'input'
|
|
|
+ ? '52px'
|
|
|
+ : '',
|
|
|
}"
|
|
|
>
|
|
|
- {{ item.pinyin }}
|
|
|
- </div>
|
|
|
- <div
|
|
|
- v-if="data.answer_type.indexOf('pinyin') > -1 && data.property.model === 'input' && item.is_common_pinyin"
|
|
|
- class="inputdv pinyin-common"
|
|
|
- >
|
|
|
- <EditDiv
|
|
|
- :id="'bz' + item.content + index"
|
|
|
- v-model="item.answer_pinyin"
|
|
|
- :can-edit="!item.is_example && !disabled"
|
|
|
- :text-align="'center'"
|
|
|
+ <span
|
|
|
+ class="number"
|
|
|
:style="{
|
|
|
- fontSize:
|
|
|
- data.unified_attrib && data.unified_attrib.pinyin_size ? data.unified_attrib.pinyin_size : '16px',
|
|
|
background:
|
|
|
- data.unified_attrib && data.unified_attrib.assist_color
|
|
|
- ? data.unified_attrib.assist_color
|
|
|
- : '#deebff',
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : '',
|
|
|
}"
|
|
|
- @input="changeAnswer(item, index)"
|
|
|
- />
|
|
|
+ >{{ index + 1 }}</span
|
|
|
+ >
|
|
|
</div>
|
|
|
- <div class="items-flex">
|
|
|
+ <div class="pinyin-en" :class="[item.is_example ? 'item-example' : '']">
|
|
|
<div
|
|
|
- v-for="(items, indexs) in item.content_list"
|
|
|
- :key="indexs"
|
|
|
- class="items"
|
|
|
- :class="[items.is_example ? 'items-example' : '']"
|
|
|
+ v-if="isEnable(data.property.view_pinyin) && data.property.model === 'input' && item.is_common_pinyin"
|
|
|
+ class="pinyin"
|
|
|
+ :style="{
|
|
|
+ fontSize:
|
|
|
+ data.unified_attrib && data.unified_attrib.pinyin_size ? data.unified_attrib.pinyin_size : '',
|
|
|
+ }"
|
|
|
>
|
|
|
- <div
|
|
|
- v-if="
|
|
|
- isEnable(data.property.view_pinyin) &&
|
|
|
- (data.property.model === 'miao' || (data.property.model === 'input' && !item.is_common_pinyin))
|
|
|
- "
|
|
|
- class="pinyin"
|
|
|
+ {{ item.pinyin }}
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ v-if="
|
|
|
+ data.answer_type.indexOf('pinyin') > -1 && data.property.model === 'input' && item.is_common_pinyin
|
|
|
+ "
|
|
|
+ class="inputdv pinyin-common"
|
|
|
+ >
|
|
|
+ <EditDiv
|
|
|
+ :id="'bz' + item.content + index"
|
|
|
+ v-model="item.answer_pinyin"
|
|
|
+ :can-edit="!item.is_example && !disabled"
|
|
|
+ :text-align="'center'"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
- data.unified_attrib && data.unified_attrib.pinyin_size ? data.unified_attrib.pinyin_size : '',
|
|
|
+ data.unified_attrib && data.unified_attrib.pinyin_size ? data.unified_attrib.pinyin_size : '16px',
|
|
|
+ background:
|
|
|
+ data.unified_attrib && data.unified_attrib.assist_color
|
|
|
+ ? data.unified_attrib.assist_color
|
|
|
+ : '#deebff',
|
|
|
}"
|
|
|
- >
|
|
|
- {{ items.pinyin }}
|
|
|
- </div>
|
|
|
+ @input="changeAnswer(item, index)"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div class="items-flex">
|
|
|
<div
|
|
|
- v-if="
|
|
|
- data.answer_type.indexOf('pinyin') > -1 && data.property.model === 'input' && !item.is_common_pinyin
|
|
|
- "
|
|
|
- class="inputdv pinyin-common"
|
|
|
+ v-for="(items, indexs) in item.content_list"
|
|
|
+ :key="indexs"
|
|
|
+ class="items"
|
|
|
+ :class="[items.is_example ? 'items-example' : '']"
|
|
|
>
|
|
|
- <EditDiv
|
|
|
- :id="'cz' + items.con + index + indexs"
|
|
|
- v-model="items.answer_pinyin"
|
|
|
- :can-edit="!items.is_example && !disabled"
|
|
|
- :text-align="'center'"
|
|
|
+ <div
|
|
|
+ v-if="
|
|
|
+ isEnable(data.property.view_pinyin) &&
|
|
|
+ (data.property.model === 'miao' || (data.property.model === 'input' && !item.is_common_pinyin))
|
|
|
+ "
|
|
|
+ class="pinyin"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
- data.unified_attrib && data.unified_attrib.pinyin_size
|
|
|
- ? data.unified_attrib.pinyin_size
|
|
|
- : '16px',
|
|
|
- background:
|
|
|
- data.unified_attrib && data.unified_attrib.assist_color
|
|
|
- ? data.unified_attrib.assist_color
|
|
|
- : '#deebff',
|
|
|
+ data.unified_attrib && data.unified_attrib.pinyin_size ? data.unified_attrib.pinyin_size : '',
|
|
|
}"
|
|
|
- @input="changeAnswer(item, index, indexs)"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div class="items-content">
|
|
|
- <template v-if="items && items.type === 'img'">
|
|
|
- <el-image
|
|
|
- v-if="items.file_list[0]"
|
|
|
- class="items-image"
|
|
|
- :src="items.file_list[0].file_url"
|
|
|
- fit="contain"
|
|
|
+ >
|
|
|
+ {{ items.pinyin }}
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ v-if="
|
|
|
+ data.answer_type.indexOf('pinyin') > -1 &&
|
|
|
+ data.property.model === 'input' &&
|
|
|
+ !item.is_common_pinyin
|
|
|
+ "
|
|
|
+ class="inputdv pinyin-common"
|
|
|
+ >
|
|
|
+ <EditDiv
|
|
|
+ :id="'cz' + items.con + index + indexs"
|
|
|
+ v-model="items.answer_pinyin"
|
|
|
+ :can-edit="!items.is_example && !disabled"
|
|
|
+ :text-align="'center'"
|
|
|
+ :style="{
|
|
|
+ fontSize:
|
|
|
+ data.unified_attrib && data.unified_attrib.pinyin_size
|
|
|
+ ? data.unified_attrib.pinyin_size
|
|
|
+ : '16px',
|
|
|
+ background:
|
|
|
+ data.unified_attrib && data.unified_attrib.assist_color
|
|
|
+ ? data.unified_attrib.assist_color
|
|
|
+ : '#deebff',
|
|
|
+ }"
|
|
|
+ @input="changeAnswer(item, index, indexs)"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div class="items-content">
|
|
|
+ <template v-if="items && items.type === 'img'">
|
|
|
+ <el-image
|
|
|
+ v-if="items.file_list[0]"
|
|
|
+ class="items-image"
|
|
|
+ :src="items.file_list[0].file_url"
|
|
|
+ fit="contain"
|
|
|
+ :style="{
|
|
|
+ borderColor:
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color
|
|
|
+ ? data.unified_attrib.topic_color
|
|
|
+ : '',
|
|
|
+ }"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-else-if="items && items.type === 'lian'">
|
|
|
+ <span
|
|
|
+ class="items-lian"
|
|
|
+ :style="{
|
|
|
+ color:
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color
|
|
|
+ ? data.unified_attrib.topic_color
|
|
|
+ : '',
|
|
|
+ }"
|
|
|
+ >{{ items.con }}</span
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ <Strockplayredline
|
|
|
+ v-if="items && items.type === 'hanzi'"
|
|
|
+ :Book_text="items.con"
|
|
|
+ :play-storkes="isEnable(data.property.is_enable_play_structure)"
|
|
|
+ :cur-item="
|
|
|
+ isEnable(data.property.is_enable_high_strokes)
|
|
|
+ ? data.property.model === 'input'
|
|
|
+ ? items.high_strokes
|
|
|
+ : items
|
|
|
+ : null
|
|
|
+ "
|
|
|
+ :type="data.property.model === 'input' ? 'newWord-template-input' : data.type"
|
|
|
+ :target-div="'newWordTemplatez' + items.con + index + indexs + randomId"
|
|
|
+ :hz_json="items.hz_info[0].hzDetail.hz_json"
|
|
|
+ class="hanzi-storck"
|
|
|
+ :class="[
|
|
|
+ item.content_list.length > 1 && indexs == 0 ? 'leftBorderRadius' : '',
|
|
|
+
|
|
|
+ item.content_list.length > 1 && indexs == item.content_list.length - 1
|
|
|
+ ? 'rightBorderRadius'
|
|
|
+ : '',
|
|
|
+ item.content_list.length > 1 && indexs != item.content_list.length - 1 && indexs != 0
|
|
|
+ ? 'NoborderRadius'
|
|
|
+ : '',
|
|
|
+ item.content_list.length > 1 &&
|
|
|
+ indexs != item.content_list.length - 1 &&
|
|
|
+ item.content_list[indexs + 1].type !== 'lian'
|
|
|
+ ? 'NoborderRight'
|
|
|
+ : '',
|
|
|
+ ]"
|
|
|
:style="{
|
|
|
borderColor:
|
|
|
data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : '',
|
|
|
}"
|
|
|
+ :play-color="
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : ''
|
|
|
+ "
|
|
|
+ bg-type="tian"
|
|
|
/>
|
|
|
- </template>
|
|
|
- <template v-else-if="items && items.type === 'lian'">
|
|
|
- <span
|
|
|
- class="items-lian"
|
|
|
+ </div>
|
|
|
+ <div v-if="data.property.model === 'miao'" class="inputdv">
|
|
|
+ <EditDiv
|
|
|
+ v-if="items && items.type === 'hanzi' && items.is_can_input_answer"
|
|
|
+ :id="'az' + items.con + index + indexs"
|
|
|
+ v-model="items.answer"
|
|
|
+ :can-edit="!items.is_example && !disabled"
|
|
|
+ :text-align="'center'"
|
|
|
:style="{
|
|
|
- color:
|
|
|
- data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : '',
|
|
|
+ fontSize:
|
|
|
+ data.unified_attrib && data.unified_attrib.pinyin_size
|
|
|
+ ? data.unified_attrib.pinyin_size
|
|
|
+ : '16px',
|
|
|
+ background:
|
|
|
+ data.unified_attrib && data.unified_attrib.assist_color
|
|
|
+ ? data.unified_attrib.assist_color
|
|
|
+ : '#deebff',
|
|
|
}"
|
|
|
- >{{ items.con }}</span
|
|
|
- >
|
|
|
- </template>
|
|
|
- <Strockplayredline
|
|
|
- v-if="items && items.type === 'hanzi'"
|
|
|
- :Book_text="items.con"
|
|
|
- :play-storkes="isEnable(data.property.is_enable_play_structure)"
|
|
|
- :cur-item="
|
|
|
- isEnable(data.property.is_enable_high_strokes)
|
|
|
- ? data.property.model === 'input'
|
|
|
- ? items.high_strokes
|
|
|
- : items
|
|
|
- : null
|
|
|
- "
|
|
|
- :type="data.property.model === 'input' ? 'newWord-template-input' : data.type"
|
|
|
- :target-div="'newWordTemplatez' + items.con + index + indexs + randomId"
|
|
|
- :hz_json="items.hz_info[0].hzDetail.hz_json"
|
|
|
- class="hanzi-storck"
|
|
|
- :class="[
|
|
|
- item.content_list.length > 1 && indexs == 0 ? 'leftBorderRadius' : '',
|
|
|
-
|
|
|
- item.content_list.length > 1 && indexs == item.content_list.length - 1 ? 'rightBorderRadius' : '',
|
|
|
- item.content_list.length > 1 && indexs != item.content_list.length - 1 && indexs != 0
|
|
|
- ? 'NoborderRadius'
|
|
|
- : '',
|
|
|
- item.content_list.length > 1 &&
|
|
|
- indexs != item.content_list.length - 1 &&
|
|
|
- item.content_list[indexs + 1].type !== 'lian'
|
|
|
- ? 'NoborderRight'
|
|
|
- : '',
|
|
|
- ]"
|
|
|
- :style="{
|
|
|
- borderColor:
|
|
|
- data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : '',
|
|
|
- }"
|
|
|
- :play-color="
|
|
|
- data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : ''
|
|
|
- "
|
|
|
- bg-type="tian"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div v-if="data.property.model === 'miao'" class="inputdv">
|
|
|
- <EditDiv
|
|
|
- v-if="items && items.type === 'hanzi' && items.is_can_input_answer"
|
|
|
- :id="'az' + items.con + index + indexs"
|
|
|
- v-model="items.answer"
|
|
|
- :can-edit="!items.is_example && !disabled"
|
|
|
- :text-align="'center'"
|
|
|
- :style="{
|
|
|
- fontSize:
|
|
|
- data.unified_attrib && data.unified_attrib.pinyin_size
|
|
|
- ? data.unified_attrib.pinyin_size
|
|
|
- : '16px',
|
|
|
- background:
|
|
|
- data.unified_attrib && data.unified_attrib.assist_color
|
|
|
- ? data.unified_attrib.assist_color
|
|
|
- : '#deebff',
|
|
|
- }"
|
|
|
- @input="changeAnswer(items, index, indexs)"
|
|
|
- />
|
|
|
+ @input="changeAnswer(items, index, indexs)"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div
|
|
|
+ v-if="data.answer_type.indexOf('en') > -1 && data.property.model === 'input'"
|
|
|
+ class="inputdv en-common"
|
|
|
+ >
|
|
|
+ <EditDiv
|
|
|
+ :id="'dz' + item.content + index"
|
|
|
+ v-model="item.answer_en"
|
|
|
+ :can-edit="!item.is_example && !disabled"
|
|
|
+ :text-align="'center'"
|
|
|
+ :style="{
|
|
|
+ fontSize:
|
|
|
+ data.unified_attrib && data.unified_attrib.pinyin_size ? data.unified_attrib.pinyin_size : '16px',
|
|
|
+ background:
|
|
|
+ data.unified_attrib && data.unified_attrib.assist_color
|
|
|
+ ? data.unified_attrib.assist_color
|
|
|
+ : '#deebff',
|
|
|
+ }"
|
|
|
+ @input="changeAnswer(item, index)"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div v-if="data.property.model === 'input'" class="en-common">{{ convertText(item.shiyi) }}</div>
|
|
|
</div>
|
|
|
- <div
|
|
|
- v-if="data.answer_type.indexOf('en') > -1 && data.property.model === 'input'"
|
|
|
- class="inputdv en-common"
|
|
|
- >
|
|
|
- <EditDiv
|
|
|
- :id="'dz' + item.content + index"
|
|
|
- v-model="item.answer_en"
|
|
|
- :can-edit="!item.is_example && !disabled"
|
|
|
- :text-align="'center'"
|
|
|
- :style="{
|
|
|
- fontSize:
|
|
|
- data.unified_attrib && data.unified_attrib.pinyin_size ? data.unified_attrib.pinyin_size : '16px',
|
|
|
- background:
|
|
|
- data.unified_attrib && data.unified_attrib.assist_color
|
|
|
- ? data.unified_attrib.assist_color
|
|
|
- : '#deebff',
|
|
|
- }"
|
|
|
- @input="changeAnswer(item, index)"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div v-if="data.property.model === 'input'" class="en-common">{{ convertText(item.shiyi) }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </AnswerAnalysis>
|
|
|
</div>
|
|
|
</template>
|
|
|
|