|
@@ -16,15 +16,15 @@
|
|
|
<template
|
|
|
v-if="
|
|
|
item.detail &&
|
|
|
- item.detail.wordsList &&
|
|
|
- item.detail.wordsList.length == 0
|
|
|
+ item.detail.wordsList &&
|
|
|
+ item.detail.wordsList.length == 0
|
|
|
"
|
|
|
>
|
|
|
<p
|
|
|
v-if="item.detail.sentence"
|
|
|
:class="[
|
|
|
'content-con',
|
|
|
- /^[\u4e00-\u9fa5]/.test(item.detail.sentence) ? 'hasCn' : ''
|
|
|
+ /^[\u4e00-\u9fa5]/.test(item.detail.sentence) ? 'hasCn' : '',
|
|
|
]"
|
|
|
v-html="item.detail.sentence"
|
|
|
/>
|
|
@@ -40,12 +40,11 @@
|
|
|
<template
|
|
|
v-if="
|
|
|
item.detail &&
|
|
|
- item.detail.wordsList &&
|
|
|
- item.detail.wordsList[indexCon + 1] &&
|
|
|
- item.detail.wordsList[indexCon + 1].chs &&
|
|
|
- chsFhList.indexOf(
|
|
|
- item.detail.wordsList[indexCon + 1].chs
|
|
|
- ) > -1
|
|
|
+ item.detail.wordsList &&
|
|
|
+ item.detail.wordsList[indexCon + 1] &&
|
|
|
+ item.detail.wordsList[indexCon + 1].chs &&
|
|
|
+ chsFhList.indexOf(item.detail.wordsList[indexCon + 1].chs) >
|
|
|
+ -1
|
|
|
"
|
|
|
>
|
|
|
<div class="synthesis-box">
|
|
@@ -53,7 +52,7 @@
|
|
|
<span
|
|
|
class="pinyin"
|
|
|
:class="[
|
|
|
- noFont.indexOf(itemCon.pinyin) > -1 ? 'noFont' : ''
|
|
|
+ noFont.indexOf(itemCon.pinyin) > -1 ? 'noFont' : '',
|
|
|
]"
|
|
|
>{{ itemCon.pinyin }}</span
|
|
|
>
|
|
@@ -70,7 +69,7 @@
|
|
|
item.detail.wordsList[indexCon + 1].pinyin
|
|
|
) > -1
|
|
|
? 'noFont'
|
|
|
- : ''
|
|
|
+ : '',
|
|
|
]"
|
|
|
>{{ item.detail.wordsList[indexCon + 1].pinyin }}</span
|
|
|
>
|
|
@@ -84,29 +83,38 @@
|
|
|
<span
|
|
|
class="pinyin"
|
|
|
:class="[
|
|
|
- noFont.indexOf(itemCon.pinyin) > -1 ? 'noFont' : ''
|
|
|
+ noFont.indexOf(itemCon.pinyin) > -1 ? 'noFont' : '',
|
|
|
]"
|
|
|
- v-if="item.detail &&
|
|
|
- !(item.detail.wordsList &&
|
|
|
- item.detail.wordsList[indexCon - 1] &&
|
|
|
- item.detail.wordsList[indexCon - 1].chs &&
|
|
|
- chsFhList.indexOf(
|
|
|
- item.detail.wordsList[indexCon - 1].chs
|
|
|
- ) == -1&&chsFhList.indexOf(
|
|
|
- itemCon.chs
|
|
|
- ) > -1)"
|
|
|
+ v-if="
|
|
|
+ item.detail &&
|
|
|
+ !(
|
|
|
+ item.detail.wordsList &&
|
|
|
+ item.detail.wordsList[indexCon - 1] &&
|
|
|
+ item.detail.wordsList[indexCon - 1].chs &&
|
|
|
+ chsFhList.indexOf(
|
|
|
+ item.detail.wordsList[indexCon - 1].chs
|
|
|
+ ) == -1 &&
|
|
|
+ chsFhList.indexOf(itemCon.chs) > -1
|
|
|
+ )
|
|
|
+ "
|
|
|
>{{ itemCon.pinyin }}</span
|
|
|
>
|
|
|
- <span class="hanzi content-con"
|
|
|
- v-if="item.detail &&
|
|
|
- !(item.detail.wordsList &&
|
|
|
- item.detail.wordsList[indexCon - 1] &&
|
|
|
- item.detail.wordsList[indexCon - 1].chs &&
|
|
|
- chsFhList.indexOf(
|
|
|
- item.detail.wordsList[indexCon - 1].chs
|
|
|
- ) == -1&&chsFhList.indexOf(
|
|
|
- itemCon.chs
|
|
|
- ) > -1)">{{ itemCon.chs }}</span>
|
|
|
+ <span
|
|
|
+ class="hanzi content-con"
|
|
|
+ v-if="
|
|
|
+ item.detail &&
|
|
|
+ !(
|
|
|
+ item.detail.wordsList &&
|
|
|
+ item.detail.wordsList[indexCon - 1] &&
|
|
|
+ item.detail.wordsList[indexCon - 1].chs &&
|
|
|
+ chsFhList.indexOf(
|
|
|
+ item.detail.wordsList[indexCon - 1].chs
|
|
|
+ ) == -1 &&
|
|
|
+ chsFhList.indexOf(itemCon.chs) > -1
|
|
|
+ )
|
|
|
+ "
|
|
|
+ >{{ itemCon.chs }}</span
|
|
|
+ >
|
|
|
</template>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -152,7 +160,7 @@
|
|
|
(previewType == 'previewCheckShow' && item.previewShow) ||
|
|
|
JSON.parse(previewGroupId).length == 0
|
|
|
? 'NNPE-Book-content-item'
|
|
|
- : ''
|
|
|
+ : '',
|
|
|
]"
|
|
|
>
|
|
|
<el-checkbox
|
|
@@ -166,9 +174,9 @@
|
|
|
<template
|
|
|
v-if="
|
|
|
!previewType ||
|
|
|
- previewType == 'previewCheck' ||
|
|
|
- (previewType == 'previewCheckShow' && item.previewShow) ||
|
|
|
- JSON.parse(previewGroupId).length == 0
|
|
|
+ previewType == 'previewCheck' ||
|
|
|
+ (previewType == 'previewCheckShow' && item.previewShow) ||
|
|
|
+ JSON.parse(previewGroupId).length == 0
|
|
|
"
|
|
|
>
|
|
|
<div
|
|
@@ -191,7 +199,7 @@
|
|
|
<div
|
|
|
class="title-little"
|
|
|
:class="[
|
|
|
- item.little_title_number || item.little_title ? 'marginTop' : ''
|
|
|
+ item.little_title_number || item.little_title ? 'marginTop' : '',
|
|
|
]"
|
|
|
>
|
|
|
<b v-html="item.little_title_number" />
|
|
@@ -200,7 +208,7 @@
|
|
|
<div
|
|
|
:class="[
|
|
|
'NNPE-tableList',
|
|
|
- item.is_bg ? 'NNPE-tableList-hasBg' : ''
|
|
|
+ item.is_bg ? 'NNPE-tableList-hasBg' : '',
|
|
|
]"
|
|
|
>
|
|
|
<div
|
|
@@ -210,7 +218,7 @@
|
|
|
:class="[
|
|
|
indexs === item.table_list.length - 1
|
|
|
? 'NNPE-tableList-tr-last'
|
|
|
- : ''
|
|
|
+ : '',
|
|
|
]"
|
|
|
>
|
|
|
<div
|
|
@@ -220,7 +228,7 @@
|
|
|
'NNPE-tableList-item',
|
|
|
items.length == 1
|
|
|
? 'NNPE-tableList-item-noMargin'
|
|
|
- : 'NNPE-tableList-item' + items.length
|
|
|
+ : 'NNPE-tableList-item' + items.length,
|
|
|
]"
|
|
|
>
|
|
|
<template v-if="itemss.data">
|
|
@@ -231,12 +239,12 @@
|
|
|
:task-model="TaskModel"
|
|
|
:number="
|
|
|
index +
|
|
|
- '_' +
|
|
|
- indexs +
|
|
|
- '_' +
|
|
|
- indexss +
|
|
|
- '_' +
|
|
|
- currentTreeID
|
|
|
+ '_' +
|
|
|
+ indexs +
|
|
|
+ '_' +
|
|
|
+ indexss +
|
|
|
+ '_' +
|
|
|
+ currentTreeID
|
|
|
"
|
|
|
/>
|
|
|
</template>
|
|
@@ -371,10 +379,10 @@
|
|
|
<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'
|
|
|
+ itemss.type == 'sentence_input_chs' ||
|
|
|
+ itemss.type == 'sentence_judge_chs' ||
|
|
|
+ itemss.type == 'sentence_record_chs' ||
|
|
|
+ itemss.type == 'sentence_input_record_chs'
|
|
|
"
|
|
|
>
|
|
|
<SentenceInput
|
|
@@ -512,9 +520,9 @@
|
|
|
<template
|
|
|
v-if="
|
|
|
itemss.type == 'record_control_mini' ||
|
|
|
- itemss.type == 'record_control_normal' ||
|
|
|
- itemss.type == 'record_control_pro' ||
|
|
|
- itemss.type == 'record_control_promax'
|
|
|
+ itemss.type == 'record_control_normal' ||
|
|
|
+ itemss.type == 'record_control_pro' ||
|
|
|
+ itemss.type == 'record_control_promax'
|
|
|
"
|
|
|
>
|
|
|
<RecordModule
|
|
@@ -527,7 +535,7 @@
|
|
|
<template
|
|
|
v-if="
|
|
|
itemss.type == 'upload_control_chs' ||
|
|
|
- itemss.type == 'upload_control_preview_chs'
|
|
|
+ itemss.type == 'upload_control_preview_chs'
|
|
|
"
|
|
|
>
|
|
|
<UploadControlView
|
|
@@ -563,12 +571,12 @@
|
|
|
:theme-color="themeColor"
|
|
|
:index-str="
|
|
|
index +
|
|
|
- '_' +
|
|
|
- indexs +
|
|
|
- '_' +
|
|
|
- indexss +
|
|
|
- '_' +
|
|
|
- currentTreeID
|
|
|
+ '_' +
|
|
|
+ indexs +
|
|
|
+ '_' +
|
|
|
+ indexss +
|
|
|
+ '_' +
|
|
|
+ currentTreeID
|
|
|
"
|
|
|
:task-model="TaskModel"
|
|
|
/>
|
|
@@ -674,7 +682,7 @@ import VoiceMatrix from "./preview/VoiceMatrix.vue"; // 语音矩阵
|
|
|
import SelectDrag from "./preview/SelectDrag.vue"; // 选择 -> 拖拽
|
|
|
import FillDrag from "./preview/FillDrag.vue"; // 填空 -> 拖拽
|
|
|
import ConfigurableTable from "./preview/ConfigurableTable.vue"; // 可配置表格
|
|
|
-import HeaderSeparate from "./preview/HeaderSeparate.vue"; // 表头分离表格
|
|
|
+import HeaderSeparate from "./preview/HeaderSparate/index.vue"; // 表头分离表格
|
|
|
import RecordModule from "./preview/RecordModule.vue"; // 录音组件
|
|
|
import UploadControlView from "./preview/UploadControlView.vue"; // 预览控件
|
|
|
import DialogueAnswerViewChs from "./preview/DialogueArticleViewChs/DialogueAnswerViewChs.vue"; // 文章模板
|
|
@@ -727,7 +735,7 @@ export default {
|
|
|
PdfView,
|
|
|
PlayRecordView,
|
|
|
SentenceModule,
|
|
|
- OptionsList
|
|
|
+ OptionsList,
|
|
|
},
|
|
|
props: [
|
|
|
"context",
|
|
@@ -741,7 +749,7 @@ export default {
|
|
|
"TaskModel",
|
|
|
"isShowSave",
|
|
|
"previewType",
|
|
|
- "previewGroupId"
|
|
|
+ "previewGroupId",
|
|
|
],
|
|
|
data() {
|
|
|
return {
|
|
@@ -759,24 +767,24 @@ export default {
|
|
|
colorBox: [
|
|
|
{
|
|
|
touxiang: "#72B51D",
|
|
|
- bg: "#E9F0DF"
|
|
|
+ bg: "#E9F0DF",
|
|
|
},
|
|
|
{
|
|
|
touxiang: "#DE4444",
|
|
|
- bg: "rgba(222, 68, 68, 0.1)"
|
|
|
+ bg: "rgba(222, 68, 68, 0.1)",
|
|
|
},
|
|
|
{
|
|
|
touxiang: "#A7A7A7",
|
|
|
- bg: "#ffffff"
|
|
|
+ bg: "#ffffff",
|
|
|
},
|
|
|
{
|
|
|
touxiang: "#4D91F6",
|
|
|
- bg: "#F1F7FF"
|
|
|
+ bg: "#F1F7FF",
|
|
|
},
|
|
|
{
|
|
|
touxiang: "#FF8A00",
|
|
|
- bg: "rgba(255, 138, 0, 0.1)"
|
|
|
- }
|
|
|
+ bg: "rgba(255, 138, 0, 0.1)",
|
|
|
+ },
|
|
|
],
|
|
|
chsFhList: [",", "。", "“", ":", "》", "《", "?", "!", ";"],
|
|
|
noFont: ["~", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")"], // 对应不要拼音字体
|
|
@@ -788,7 +796,7 @@ export default {
|
|
|
answerTime: 0,
|
|
|
answerTimeInterval: null, // 计时器
|
|
|
groupIndexList: [], // 勾选groupid数组
|
|
|
- groupCheckList: [] // checkbox 是否选中
|
|
|
+ groupCheckList: [], // checkbox 是否选中
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
@@ -829,8 +837,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 深度观察监听
|
|
|
- deep: true
|
|
|
- }
|
|
|
+ deep: true,
|
|
|
+ },
|
|
|
},
|
|
|
// 生命周期 - 创建完成(可以访问当前this实例)
|
|
|
created() {},
|
|
@@ -884,7 +892,7 @@ export default {
|
|
|
let obj = {
|
|
|
pinyin: sItem.pinyin,
|
|
|
chs: sItem.chs,
|
|
|
- isShow: true
|
|
|
+ isShow: true,
|
|
|
};
|
|
|
paraArr.push(obj);
|
|
|
});
|
|
@@ -932,8 +940,8 @@ export default {
|
|
|
_this.cur = _this.contextData;
|
|
|
_this.cur.cur_fn_data.forEach((item, index) => {
|
|
|
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) {
|
|
|
item.previewShow = true;
|
|
|
}
|
|
@@ -1015,11 +1023,11 @@ export default {
|
|
|
},
|
|
|
puaseAudio() {
|
|
|
let audio = document.getElementsByTagName("audio");
|
|
|
- audio.forEach(item => {
|
|
|
+ audio.forEach((item) => {
|
|
|
item.pause();
|
|
|
});
|
|
|
let video = document.getElementsByTagName("video");
|
|
|
- video.forEach(item => {
|
|
|
+ video.forEach((item) => {
|
|
|
item.pause();
|
|
|
});
|
|
|
},
|
|
@@ -1052,7 +1060,7 @@ export default {
|
|
|
let result = [];
|
|
|
contextData.cur_fn_data.forEach((item, index) => {
|
|
|
result[index] = {
|
|
|
- table_list: []
|
|
|
+ table_list: [],
|
|
|
};
|
|
|
item.table_list.forEach((items, indexs) => {
|
|
|
result[index].table_list[indexs] = [];
|
|
@@ -1061,13 +1069,13 @@ export default {
|
|
|
let Bookanswer = itemss.data.Bookanswer;
|
|
|
let obj = {
|
|
|
data: {
|
|
|
- Bookanswer
|
|
|
- }
|
|
|
+ Bookanswer,
|
|
|
+ },
|
|
|
};
|
|
|
result[index].table_list[indexs][indexss] = obj;
|
|
|
} else {
|
|
|
result[index].table_list[indexs][indexss] = {
|
|
|
- data: null
|
|
|
+ data: null,
|
|
|
};
|
|
|
}
|
|
|
});
|
|
@@ -1119,8 +1127,8 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
this.$forceUpdate();
|
|
|
- }
|
|
|
- } // 如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
+ },
|
|
|
+ }, // 如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
@@ -1519,4 +1527,4 @@ export default {
|
|
|
top: 2px;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|