|
@@ -29,6 +29,32 @@
|
|
|
:label="item.title"
|
|
|
:name="item.name"
|
|
|
>
|
|
|
+ <div
|
|
|
+ style="position: relative"
|
|
|
+ v-for="(fc, fcIndex) in item.detailList"
|
|
|
+ :key="'fc' + fcIndex"
|
|
|
+ >
|
|
|
+ <SentenceSegwordChs :curQue="fc" />
|
|
|
+ <img
|
|
|
+ style="position: absolute; right: 699px; top: 2px"
|
|
|
+ @click="deleteDetail(index, fcIndex)"
|
|
|
+ class="close"
|
|
|
+ src="../assets/adult/del-close.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div class="addoption" @click="addDetail(index)">添加</div>
|
|
|
+ <div class="Big-Book-top" style="margin: 10px 0">
|
|
|
+ <span>课题</span>
|
|
|
+ <el-input
|
|
|
+ v-model="item.classTopic"
|
|
|
+ style="width: 80%"
|
|
|
+ type="textarea"
|
|
|
+ autosize
|
|
|
+ placeholder="请输入课题"
|
|
|
+ @blur="onBlur(item, 'classTopic')"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
<div class="createTable">
|
|
|
<el-input
|
|
|
v-model="row"
|
|
@@ -55,28 +81,36 @@
|
|
|
:key="'topic' + toindex + index"
|
|
|
>
|
|
|
<p>第{{ toindex + 1 }}题</p>
|
|
|
- <div class="Big-Book-top">
|
|
|
- <span>正标题</span>
|
|
|
+ <div class="adult-book-input-item">
|
|
|
+ <span class="adult-book-lable">正标题:</span>
|
|
|
<el-input
|
|
|
v-model="topic.z_title"
|
|
|
- style="width: 80%"
|
|
|
type="textarea"
|
|
|
- autosize
|
|
|
+ :autosize="{ minRows: 2 }"
|
|
|
placeholder="请输入正标题"
|
|
|
@blur="onBlur(topic, 'z_title')"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div class="Big-Book-top">
|
|
|
- <span>副标题</span>
|
|
|
+ <div class="adult-book-input-item">
|
|
|
+ <span class="adult-book-lable">副标题:</span>
|
|
|
<el-input
|
|
|
v-model="topic.f_title"
|
|
|
- style="width: 80%"
|
|
|
+ :autosize="{ minRows: 2 }"
|
|
|
type="textarea"
|
|
|
- autosize
|
|
|
placeholder="请输入副标题"
|
|
|
@blur="onBlur(topic, 'f_title')"
|
|
|
/>
|
|
|
</div>
|
|
|
+ <div class="adult-book-input-item">
|
|
|
+ <span class="adult-book-lable">序号:</span>
|
|
|
+ <el-input
|
|
|
+ v-model="topic.number"
|
|
|
+ type="textarea"
|
|
|
+ :autosize="{ minRows: 2 }"
|
|
|
+ placeholder="请输入序号"
|
|
|
+ @blur="onBlur(topic, 'number')"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
<div class="Big-Book-top">
|
|
|
<span>是否有背景色</span>
|
|
|
<el-radio v-model="topic.is_bg" :label="true">有</el-radio>
|
|
@@ -256,7 +290,7 @@
|
|
|
/>
|
|
|
</template>
|
|
|
</template>
|
|
|
- <template v-if="topicIitem.type == 'ligature_chs'">
|
|
|
+ <template v-if="topicIitem.type == 'ligature_chs'">
|
|
|
<template v-if="topicIitem.is_edit">
|
|
|
<Ligature
|
|
|
:curQue="topicIitem.data"
|
|
@@ -407,6 +441,46 @@
|
|
|
</template>
|
|
|
<template v-else> </template>
|
|
|
</template>
|
|
|
+ <template v-if="topicIitem.type == 'sort_chs'">
|
|
|
+ <template v-if="topicIitem.is_edit">
|
|
|
+ <Sort
|
|
|
+ :curQue="topicIitem.data"
|
|
|
+ :type="topicIitem.type"
|
|
|
+ :fn_data="fn_data"
|
|
|
+ :changeCurQue="changeCurQue"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-else> </template>
|
|
|
+ </template>
|
|
|
+ <template v-if="topicIitem.type == 'CourseStart_chs'">
|
|
|
+ <template v-if="topicIitem.is_edit">
|
|
|
+ <CourseStart
|
|
|
+ :curQue="topicIitem.data"
|
|
|
+ :type="topicIitem.type"
|
|
|
+ :fn_data="fn_data"
|
|
|
+ :changeCurQue="changeCurQue"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-else> </template>
|
|
|
+ </template>
|
|
|
+ <template
|
|
|
+ v-if="
|
|
|
+ topicIitem.type == 'record_control_mini' ||
|
|
|
+ topicIitem.type == 'record_control_normal'||
|
|
|
+ topicIitem.type == 'record_control_pro'||
|
|
|
+ topicIitem.type == 'record_control_promax'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <template v-if="topicIitem.is_edit">
|
|
|
+ <RecordControl
|
|
|
+ :curQue="topicIitem.data"
|
|
|
+ :type="topicIitem.type"
|
|
|
+ :fn_data="fn_data"
|
|
|
+ :changeCurQue="changeCurQue"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-else> </template>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
<div
|
|
|
v-if="topicIitem.data && topicIitem.is_edit"
|
|
@@ -538,6 +612,8 @@ import PlayInputReacord from "@/components/Adult/inputModules/PlayInputReacord.v
|
|
|
import Drag from "@/components/Adult/inputModules/Drag.vue";
|
|
|
import SelfAssessment from "@/components/Adult/inputModules/SelfAssessment.vue";
|
|
|
import Sort from "@/components/Adult/inputModules/Sort.vue";
|
|
|
+import CourseStart from "@/components/Adult/inputModules/CourseStart.vue";
|
|
|
+import RecordControl from "@/components/Adult/inputModules/RecordControl.vue";
|
|
|
|
|
|
import Textdes from "@/components/Adult/inputModules/Textdes.vue";
|
|
|
import Record from "@/components/Adult/inputModules/Record.vue";
|
|
@@ -558,6 +634,7 @@ import NewordPhraseview from "@/components/Adult/preview/WordPhrase.vue";
|
|
|
import UploadControlView from "@/components/Adult/preview/UploadControlView.vue";
|
|
|
|
|
|
import DialogueAnswerViewChs from "@/components/Adult/preview/DialogueArticleViewChs/DialogueAnswerViewChs.vue";
|
|
|
+import Clauseresult from "@/components/Adult/inputModules/SentenceSegwordChs/components/ClauseresultChs.vue";
|
|
|
import Preview from "@/components/Adult/Preview.vue";
|
|
|
import fn from "@/components/Adult/common/data.js";
|
|
|
import { getContent, getStaticContent } from "@/api/ajax";
|
|
@@ -615,6 +692,8 @@ export default {
|
|
|
Drag,
|
|
|
SelfAssessment,
|
|
|
Sort,
|
|
|
+ CourseStart,
|
|
|
+ RecordControl,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -629,6 +708,17 @@ export default {
|
|
|
{
|
|
|
name: "tab1",
|
|
|
title: "第1页",
|
|
|
+ detailList: [
|
|
|
+ {
|
|
|
+ type: "detail",
|
|
|
+ pyPosition: "top", //top 拼音在上面;bottom 拼音在下面
|
|
|
+ sentence: "", //句子
|
|
|
+ segList: [], //分词结果
|
|
|
+ seg_words: "",
|
|
|
+ wordsList: [],
|
|
|
+ },
|
|
|
+ ], //目录分词
|
|
|
+ classTopic: "", //课题
|
|
|
cur_fn_data: [],
|
|
|
},
|
|
|
], // 总的数据列表
|
|
@@ -636,6 +726,17 @@ export default {
|
|
|
{
|
|
|
name: "tab1",
|
|
|
title: "第1页",
|
|
|
+ detailList: [
|
|
|
+ {
|
|
|
+ type: "detail",
|
|
|
+ pyPosition: "top", //top 拼音在上面;bottom 拼音在下面
|
|
|
+ sentence: "", //句子
|
|
|
+ segList: [], //分词结果
|
|
|
+ seg_words: "",
|
|
|
+ wordsList: [],
|
|
|
+ },
|
|
|
+ ], //目录分词
|
|
|
+ classTopic: "", //课题
|
|
|
cur_fn_data: [],
|
|
|
},
|
|
|
], // 总的数据列表
|
|
@@ -697,6 +798,26 @@ export default {
|
|
|
activated() {},
|
|
|
// 方法集合
|
|
|
methods: {
|
|
|
+ // 增加当前页的分词
|
|
|
+ addDetail(index) {
|
|
|
+ let obj = {
|
|
|
+ type: "detail",
|
|
|
+ pyPosition: "top", //top 拼音在上面;bottom 拼音在下面
|
|
|
+ sentence: "", //句子
|
|
|
+ segList: [], //分词结果
|
|
|
+ seg_words: "",
|
|
|
+ wordsList: [],
|
|
|
+ };
|
|
|
+ this.question_list[index].detailList.push(obj);
|
|
|
+ },
|
|
|
+ // 删除当前页的分词
|
|
|
+ deleteDetail(index, fcindex) {
|
|
|
+ if (this.question_list[index].detailList.length <= 1) {
|
|
|
+ this.$message.warning("至少要保留一一个");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.question_list[index].detailList.splice(fcindex, 1);
|
|
|
+ },
|
|
|
// 随意插入模板获取位置
|
|
|
changeSite(x, y) {
|
|
|
this.bgControlX = x;
|
|
@@ -718,6 +839,7 @@ export default {
|
|
|
let arr = {
|
|
|
z_title: "",
|
|
|
f_title: "",
|
|
|
+ number: "",
|
|
|
is_bg: false, // 是否有背景色
|
|
|
is_layout: false, // 是不是按背景图布局
|
|
|
table_list: [],
|
|
@@ -815,6 +937,17 @@ export default {
|
|
|
name: `tab${leg + 1}`,
|
|
|
title: `第${leg + 1}页`,
|
|
|
cur_fn_data: [],
|
|
|
+ detailList: [
|
|
|
+ {
|
|
|
+ type: "detail",
|
|
|
+ pyPosition: "top", //top 拼音在上面;bottom 拼音在下面
|
|
|
+ sentence: "", //句子
|
|
|
+ segList: [], //分词结果
|
|
|
+ seg_words: "",
|
|
|
+ wordsList: [],
|
|
|
+ },
|
|
|
+ ], //目录分词
|
|
|
+ classTopic: "", //课题
|
|
|
};
|
|
|
this.question_list.push(obj);
|
|
|
}
|
|
@@ -1205,5 +1338,17 @@ export default {
|
|
|
margin-right: 10px;
|
|
|
}
|
|
|
}
|
|
|
+ .addoption {
|
|
|
+ width: 200px;
|
|
|
+ height: 40px;
|
|
|
+ margin-bottom: 15px;
|
|
|
+ background: #f3f3f3;
|
|
|
+ border: 1px dashed rgba(0, 0, 0, 0.15);
|
|
|
+ box-sizing: border-box;
|
|
|
+ border-radius: 4px;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 40px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|