|
@@ -54,35 +54,87 @@
|
|
|
"
|
|
|
>
|
|
|
<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
|
|
|
- v-if="item.number || item.z_title || item.f_title"
|
|
|
- class="title-big"
|
|
|
- >
|
|
|
- <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
|
|
|
- class="title-little"
|
|
|
- :class="[
|
|
|
- item.little_title_number || item.little_title
|
|
|
- ? 'marginTop'
|
|
|
- : '',
|
|
|
- ]"
|
|
|
+ class="title-box-right"
|
|
|
+ :class="[item.is_textIndex ? 'title-box-right-index' : '']"
|
|
|
>
|
|
|
- <b v-html="item.little_title_number" />
|
|
|
- <p v-html="item.little_title" />
|
|
|
+ <template v-if="item.z_title_detail&&item.z_title_detail.sentence">
|
|
|
+ <div class="item-intro">
|
|
|
+ <OneSentenceTemp
|
|
|
+ :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">
|
|
|
+ <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' }"
|
|
|
+ />
|
|
|
+ </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>
|
|
|
+ </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="item-intro">
|
|
|
+ <OneSentenceTemp
|
|
|
+ :detail="item.l_title_detail"
|
|
|
+ :TaskModel="TaskModel"
|
|
|
+ :Bookanswer="[]"
|
|
|
+ :correctAnswer="[]"
|
|
|
+ :isInput="
|
|
|
+ false
|
|
|
+ "
|
|
|
+ :fn_check_list="[]"
|
|
|
+ :pyNumber="0"
|
|
|
+ :record_check="[]"
|
|
|
+ :maxFontsize="'16'"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <p v-html="item.little_title" v-else-if="item.little_title" />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
<div
|
|
|
:class="[
|
|
|
'NNPE-tableList',
|
|
@@ -711,6 +763,7 @@ import SentenceModule from "./SentenceModule.vue"; // 图片模板
|
|
|
import PlayRecordView from "./PlayRecordView.vue";
|
|
|
import OptionsList from "./OptionsList.vue"; // 选项模板
|
|
|
import SentenceMulModule from "./SentenceMulModule.vue" // 多题干模板
|
|
|
+import OneSentenceTemp from "./components/OneSentenceTemp.vue";
|
|
|
|
|
|
import { getToken } from "../../../utils/auth";
|
|
|
|
|
@@ -755,7 +808,8 @@ export default {
|
|
|
PlayRecordView,
|
|
|
SentenceModule,
|
|
|
OptionsList,
|
|
|
- SentenceMulModule
|
|
|
+ SentenceMulModule,
|
|
|
+ OneSentenceTemp
|
|
|
},
|
|
|
props: [
|
|
|
"context",
|
|
@@ -961,6 +1015,50 @@ export default {
|
|
|
// }
|
|
|
_this.cur = _this.contextData;
|
|
|
_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("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'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ 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);
|
|
|
selectGropuIdList.forEach((itemId) => {
|
|
|
itemId.forEach((itemIds) => {
|
|
@@ -1024,6 +1122,14 @@ export default {
|
|
|
}
|
|
|
this.$forceUpdate();
|
|
|
},
|
|
|
+ //词和标点合一起
|
|
|
+ mergeWordSymbol(sItem) {
|
|
|
+ if (this.chsFhList.indexOf(sItem.chs) > -1) {
|
|
|
+ sItem.isShow = false;
|
|
|
+ } else {
|
|
|
+ sItem.isShow = true;
|
|
|
+ }
|
|
|
+ },
|
|
|
// 上一页
|
|
|
handleNNPEprev() {
|
|
|
let _this = this;
|