|
@@ -146,7 +146,7 @@
|
|
|
<a size="medium" @click="compareTime('文字')">校对文字字幕时间</a>
|
|
<a size="medium" @click="compareTime('文字')">校对文字字幕时间</a>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-else>
|
|
<template v-else>
|
|
|
- <a v-if="!isWordTime" size="medium" @click="createWordTime">自动生成字幕节点</a>
|
|
|
|
|
|
|
+ <a v-if="!isWordTime" size="medium" @click="createWordTimes">自动生成字幕节点</a>
|
|
|
<p v-else>字幕节点生成中...请等待</p>
|
|
<p v-else>字幕节点生成中...请等待</p>
|
|
|
</template>
|
|
</template>
|
|
|
<el-button @click="handleMultilingual">课文多语言</el-button>
|
|
<el-button @click="handleMultilingual">课文多语言</el-button>
|
|
@@ -710,12 +710,29 @@ export default {
|
|
|
this.data.detail[paraIndex].wordsList[sentenceIndex][wordIndex].pinyin = pinyin;
|
|
this.data.detail[paraIndex].wordsList[sentenceIndex][wordIndex].pinyin = pinyin;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- saveStyle(paraIndex, sentenceIndex, wordIndex, fontFamily, textDecoration, fontWeight, border, color) {
|
|
|
|
|
|
|
+ saveStyle(
|
|
|
|
|
+ paraIndex,
|
|
|
|
|
+ sentenceIndex,
|
|
|
|
|
+ wordIndex,
|
|
|
|
|
+ fontFamily,
|
|
|
|
|
+ textDecoration,
|
|
|
|
|
+ fontWeight,
|
|
|
|
|
+ border,
|
|
|
|
|
+ color,
|
|
|
|
|
+ matchWords,
|
|
|
|
|
+ matchNotes,
|
|
|
|
|
+ img,
|
|
|
|
|
+ imgPosition,
|
|
|
|
|
+ ) {
|
|
|
this.data.detail[paraIndex].wordsList[sentenceIndex][wordIndex].fontFamily = fontFamily;
|
|
this.data.detail[paraIndex].wordsList[sentenceIndex][wordIndex].fontFamily = fontFamily;
|
|
|
this.data.detail[paraIndex].wordsList[sentenceIndex][wordIndex].textDecoration = textDecoration;
|
|
this.data.detail[paraIndex].wordsList[sentenceIndex][wordIndex].textDecoration = textDecoration;
|
|
|
this.data.detail[paraIndex].wordsList[sentenceIndex][wordIndex].fontWeight = fontWeight;
|
|
this.data.detail[paraIndex].wordsList[sentenceIndex][wordIndex].fontWeight = fontWeight;
|
|
|
this.data.detail[paraIndex].wordsList[sentenceIndex][wordIndex].border = border;
|
|
this.data.detail[paraIndex].wordsList[sentenceIndex][wordIndex].border = border;
|
|
|
this.data.detail[paraIndex].wordsList[sentenceIndex][wordIndex].color = color;
|
|
this.data.detail[paraIndex].wordsList[sentenceIndex][wordIndex].color = color;
|
|
|
|
|
+ this.data.detail[paraIndex].wordsList[sentenceIndex][wordIndex].matchWords = matchWords;
|
|
|
|
|
+ this.data.detail[paraIndex].wordsList[sentenceIndex][wordIndex].matchNotes = matchNotes;
|
|
|
|
|
+ this.data.detail[paraIndex].wordsList[sentenceIndex][wordIndex].img = img;
|
|
|
|
|
+ this.data.detail[paraIndex].wordsList[sentenceIndex][wordIndex].imgPosition = imgPosition;
|
|
|
},
|
|
},
|
|
|
// 保存校对
|
|
// 保存校对
|
|
|
saveCompare() {
|
|
saveCompare() {
|
|
@@ -763,7 +780,7 @@ export default {
|
|
|
_this.data.detail.forEach((item) => {
|
|
_this.data.detail.forEach((item) => {
|
|
|
if (item.type === 'text') {
|
|
if (item.type === 'text') {
|
|
|
verseList = verseList.concat(item.sentences);
|
|
verseList = verseList.concat(item.sentences);
|
|
|
- text += item.sentences;
|
|
|
|
|
|
|
+ text += item.sentences.join('');
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
if (verseList.length > 0) {
|
|
if (verseList.length > 0) {
|
|
@@ -771,6 +788,8 @@ export default {
|
|
|
let data = {
|
|
let data = {
|
|
|
audio_file_id: _this.data.mp3_list[0].file_id,
|
|
audio_file_id: _this.data.mp3_list[0].file_id,
|
|
|
text: text,
|
|
text: text,
|
|
|
|
|
+ text_type: 'line_text_list',
|
|
|
|
|
+ line_text_list: verseList,
|
|
|
};
|
|
};
|
|
|
getWordTimes(data).then((res) => {
|
|
getWordTimes(data).then((res) => {
|
|
|
_this.data.wordTime = res.data.result;
|
|
_this.data.wordTime = res.data.result;
|