|
@@ -75,11 +75,19 @@
|
|
|
<div class="adult-book-input-item">
|
|
|
<span class="adult-book-lable"></span>
|
|
|
<span v-if="curQue.wordTime.length > 0" class="lrc">
|
|
|
- <el-input v-model="curQue.wordTime[index].bg" size="small" maxlength="200"
|
|
|
- show-word-limit />
|
|
|
+ <el-input
|
|
|
+ v-model="curQue.wordTime[index].bg"
|
|
|
+ size="small"
|
|
|
+ maxlength="200"
|
|
|
+ show-word-limit
|
|
|
+ />
|
|
|
<span> ~ </span>
|
|
|
- <el-input v-model="curQue.wordTime[index].ed" size="small" maxlength="200"
|
|
|
- show-word-limit />
|
|
|
+ <el-input
|
|
|
+ v-model="curQue.wordTime[index].ed"
|
|
|
+ size="small"
|
|
|
+ maxlength="200"
|
|
|
+ show-word-limit
|
|
|
+ />
|
|
|
{{ curQue.wordTime[index].text }}
|
|
|
</span>
|
|
|
</div>
|
|
@@ -172,11 +180,8 @@ import "tinymce/plugins/preview";
|
|
|
import "tinymce/plugins/contextmenu";
|
|
|
import "tinymce/plugins/textcolor";
|
|
|
import "tinymce/plugins/colorpicker";
|
|
|
-import {
|
|
|
- prepareTranscribe,
|
|
|
- getWordTime,
|
|
|
- getContentFile,
|
|
|
-} from "@/api/ajax";
|
|
|
+import "tinymce/plugins/preview";
|
|
|
+import { prepareTranscribe, getWordTime, getContentFile } from "@/api/ajax";
|
|
|
export default {
|
|
|
name: "ToneSelect",
|
|
|
props: ["curQue", "changeCurQue"],
|
|
@@ -236,8 +241,8 @@ export default {
|
|
|
height: 150,
|
|
|
width: 500,
|
|
|
plugins:
|
|
|
- "link lists image code table colorpicker textcolor wordcount contextmenu",
|
|
|
- toolbar: " forecolor",
|
|
|
+ "link lists image code table colorpicker textcolor wordcount contextmenu preview",
|
|
|
+ toolbar: " forecolor | code",
|
|
|
branding: false,
|
|
|
}, //富文本初始化
|
|
|
isWordTime: false,
|
|
@@ -367,18 +372,17 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
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);
|
|
|
+ });
|
|
|
},
|
|
|
// 上传音频文件
|
|
|
handleChange(file, fileList) {
|