|
@@ -16,7 +16,7 @@
|
|
|
</div>
|
|
|
<div v-if="data.content" class="btn-box">
|
|
|
<a @click="checkArticle">文章校对</a>
|
|
|
- <a @click="editWordsFlag = true">编辑生词短语注释</a>
|
|
|
+ <!-- <a @click="editWordsFlag = true">编辑生词短语注释</a> -->
|
|
|
<template v-if="data.wordTime && data.wordTime.length > 0">
|
|
|
<!-- <span>已有字幕时间节点</span> -->
|
|
|
<a type="text" @click="againWordTime">重新生成字幕时间</a>
|
|
@@ -78,7 +78,14 @@ import NewWord from './NewWord.vue';
|
|
|
import Notes from './Notes.vue';
|
|
|
|
|
|
import { getArticleData } from '@/views/book/courseware/data/article';
|
|
|
-import { segSentences, BatchSegContent, GetStaticResources, getWordTime, prepareTranscribe } from '@/api/article';
|
|
|
+import {
|
|
|
+ segSentences,
|
|
|
+ BatchSegContent,
|
|
|
+ GetStaticResources,
|
|
|
+ getWordTime,
|
|
|
+ prepareTranscribe,
|
|
|
+ fileToBase64Text,
|
|
|
+} from '@/api/article';
|
|
|
const Base64 = require('js-base64').Base64;
|
|
|
import cnchar from 'cnchar';
|
|
|
|
|
@@ -384,12 +391,11 @@ export default {
|
|
|
let _this = this;
|
|
|
return new Promise(function (resolve, reject) {
|
|
|
if (_this.data.mp3_list && _this.data.mp3_list.length > 0 && _this.data.mp3_list[0].file_id) {
|
|
|
- let Mname = 'file_store_manager-GetFileByteBase64Text';
|
|
|
- let id = _this.data.mp3_list[0].file_id.replace('[FID##', '').replace('##FID]', '');
|
|
|
+ let id = _this.data.mp3_list[0].file_id;
|
|
|
let data = {
|
|
|
file_id: id,
|
|
|
};
|
|
|
- GetStaticResources(Mname, data).then((res) => {
|
|
|
+ fileToBase64Text(data).then((res) => {
|
|
|
let taskIddata = {
|
|
|
fileName: _this.data.mp3_list[0].name,
|
|
|
speechBase64: res.base64_text,
|