|
@@ -14,16 +14,19 @@
|
|
|
show-word-limit
|
|
|
></el-input>
|
|
|
</div> -->
|
|
|
- <SentenceSegwordChs :curQue="curQue.conDetail" name='标题' :type="'NewWord_chs'" />
|
|
|
+ <SentenceSegwordChs
|
|
|
+ :curQue="curQue.conDetail"
|
|
|
+ name="标题"
|
|
|
+ :type="'NewWord_chs'"
|
|
|
+ />
|
|
|
<div class="adult-book-input-item">
|
|
|
- <span class="adult-book-lable">预览展开:</span>
|
|
|
+ <span class="adult-book-lable">预览展开:</span>
|
|
|
<div class="adult-book-main">
|
|
|
<el-radio-group v-model="curQue.isWordShow">
|
|
|
<el-radio :label="true">是</el-radio>
|
|
|
- <el-radio :label="false">否</el-radio> </el-radio-group
|
|
|
- >
|
|
|
+ <el-radio :label="false">否</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
<div
|
|
|
class="Big-Book-main"
|
|
@@ -66,7 +69,7 @@
|
|
|
placeholder="请输入内容"
|
|
|
v-model="curQueItem.interpret"
|
|
|
@blur="onBlur(curQueItem, 'interpret')"
|
|
|
- maxlength="200"
|
|
|
+ maxlength="500"
|
|
|
show-word-limit
|
|
|
></el-input>
|
|
|
</div>
|
|
@@ -112,20 +115,20 @@ export default {
|
|
|
fileCon: [
|
|
|
{
|
|
|
img_list: [],
|
|
|
- mp3_list: [],
|
|
|
- },
|
|
|
+ mp3_list: []
|
|
|
+ }
|
|
|
],
|
|
|
data_structure: {
|
|
|
type: "notes_chs",
|
|
|
name: "注释",
|
|
|
title: "",
|
|
|
- conDetail:{
|
|
|
+ conDetail: {
|
|
|
type: "detail",
|
|
|
pyPosition: "top", //top 拼音在上面;bottom 拼音在下面
|
|
|
sentence: "", //句子
|
|
|
segList: [], //分词结果
|
|
|
seg_words: "",
|
|
|
- wordsList: [],
|
|
|
+ wordsList: []
|
|
|
},
|
|
|
isWordShow: true,
|
|
|
option: [
|
|
@@ -134,10 +137,10 @@ export default {
|
|
|
con: "", //内容
|
|
|
interpret: "", //翻译
|
|
|
note: "", //注释详情
|
|
|
- img_list: [],
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
+ img_list: []
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
@@ -153,29 +156,28 @@ export default {
|
|
|
this.curQue.option.push(obj);
|
|
|
},
|
|
|
deleteGroup(index) {
|
|
|
- this.$confirm("确定要删除吗?", "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- if (this.curQue.option.length == 1) {
|
|
|
- this.$message.warning("至少剩余1个,不能全部删除");
|
|
|
- return;
|
|
|
- }
|
|
|
- this.curQue.option.splice(index, 1);
|
|
|
- })
|
|
|
+ this.$confirm("确定要删除吗?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ if (this.curQue.option.length == 1) {
|
|
|
+ this.$message.warning("至少剩余1个,不能全部删除");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.curQue.option.splice(index, 1);
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
changeImage(fileList, duration, index) {
|
|
|
const articleImgList = JSON.parse(JSON.stringify(fileList));
|
|
|
const articleImgRes = [];
|
|
|
- articleImgList.forEach((item) => {
|
|
|
+ articleImgList.forEach(item => {
|
|
|
if (item.response) {
|
|
|
const obj = {
|
|
|
name: item.name,
|
|
|
url: item.response.file_info_list[0].file_url,
|
|
|
- id: "[FID##" + item.response.file_info_list[0].file_id + "##FID]",
|
|
|
+ id: "[FID##" + item.response.file_info_list[0].file_id + "##FID]"
|
|
|
};
|
|
|
articleImgRes.push(obj);
|
|
|
}
|
|
@@ -183,7 +185,7 @@ export default {
|
|
|
this.curQue.option[index].img_list = JSON.parse(
|
|
|
JSON.stringify(articleImgRes)
|
|
|
);
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
|
created() {},
|
|
@@ -194,7 +196,7 @@ export default {
|
|
|
this.changeCurQue(res_data);
|
|
|
} else {
|
|
|
let fileCon = [];
|
|
|
- this.curQue.option.forEach((item) => {
|
|
|
+ this.curQue.option.forEach(item => {
|
|
|
let obj = { img_list: item.img_list };
|
|
|
fileCon.push(obj);
|
|
|
});
|
|
@@ -204,13 +206,13 @@ export default {
|
|
|
}
|
|
|
if (!this.curQue.hasOwnProperty("conDetail")) {
|
|
|
let obj = {
|
|
|
- type: "detail",
|
|
|
- pyPosition: "top", //top 拼音在上面;bottom 拼音在下面
|
|
|
- sentence: this.curQue.title, //句子
|
|
|
- segList: [], //分词结果
|
|
|
- seg_words: "",
|
|
|
- wordsList: [],
|
|
|
- }
|
|
|
+ type: "detail",
|
|
|
+ pyPosition: "top", //top 拼音在上面;bottom 拼音在下面
|
|
|
+ sentence: this.curQue.title, //句子
|
|
|
+ segList: [], //分词结果
|
|
|
+ seg_words: "",
|
|
|
+ wordsList: []
|
|
|
+ };
|
|
|
this.$set(this.curQue, "conDetail", obj);
|
|
|
}
|
|
|
}
|
|
@@ -221,10 +223,10 @@ export default {
|
|
|
updated() {}, //生命周期 - 更新之后
|
|
|
beforeDestroy() {}, //生命周期 - 销毁之前
|
|
|
destroyed() {}, //生命周期 - 销毁完成
|
|
|
- activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
+ activated() {} //如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
};
|
|
|
</script>
|
|
|
-<style lang='scss' scope>
|
|
|
+<style lang="scss" scope>
|
|
|
//@import url(); 引入公共css类
|
|
|
.Big-Book-Single {
|
|
|
&-content {
|
|
@@ -271,5 +273,4 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
</style>
|
|
|
-<style lang="scss">
|
|
|
-</style>
|
|
|
+<style lang="scss"></style>
|