|
|
@@ -445,16 +445,7 @@ import { getArticleData, roleDefaultColorList } from '@/views/book/courseware/da
|
|
|
import { fileUpload, TextToAudioFile } from '@/api/app';
|
|
|
import { toolGetWordPinyinCorrectionList } from '@/api/pinyinCorrection';
|
|
|
import { getRandomNumber } from '@/utils';
|
|
|
-import {
|
|
|
- segSentences,
|
|
|
- BatchSegContent,
|
|
|
- getWordTime,
|
|
|
- prepareTranscribe,
|
|
|
- fileToBase64Text,
|
|
|
- getWordTimes,
|
|
|
-} from '@/api/article';
|
|
|
-const Base64 = require('js-base64').Base64;
|
|
|
-import cnchar from 'cnchar';
|
|
|
+import { BatchSegContent, getWordTime, prepareTranscribe, fileToBase64Text, getWordTimes } from '@/api/article';
|
|
|
|
|
|
export default {
|
|
|
name: 'DialogueArticlePage',
|
|
|
@@ -511,7 +502,6 @@ export default {
|
|
|
['n', 'ń', 'ň', 'ǹ', 'n'],
|
|
|
['m̄', 'ḿ', 'm', 'm̀', 'm'],
|
|
|
],
|
|
|
- toneList: [' ', 'ˉ', 'ˊ', 'ˇ', 'ˋ'],
|
|
|
pinyinList: [], // 拼音校正列表
|
|
|
};
|
|
|
},
|
|
|
@@ -1034,9 +1024,8 @@ export default {
|
|
|
chsBg: '#988ed6',
|
|
|
enBg: '#fff',
|
|
|
},
|
|
|
- paraIndex: index,
|
|
|
sentences: sentenceList,
|
|
|
- segList: segList,
|
|
|
+ segList,
|
|
|
seg_words: [],
|
|
|
wordsList,
|
|
|
timeList: [],
|
|
|
@@ -1456,7 +1445,7 @@ export default {
|
|
|
for (let i = 0; i < valArr.length; i++) {
|
|
|
let item = valItem[i];
|
|
|
if (reg.test(item)) {
|
|
|
- let numIndex = numList.length == 0 ? 0 : numList[numList.length - 1].index;
|
|
|
+ let numIndex = numList.length === 0 ? 0 : numList[numList.length - 1].index;
|
|
|
let con = valItem.substring(numIndex, i);
|
|
|
con = con.replace(/\d/g, '');
|
|
|
let obj = {
|
|
|
@@ -1471,7 +1460,7 @@ export default {
|
|
|
} else {
|
|
|
numList = [];
|
|
|
}
|
|
|
- if (numList.length == 0) {
|
|
|
+ if (numList.length === 0) {
|
|
|
this.resArr.push([{ con: valItem }]);
|
|
|
} else {
|
|
|
this.resArr.push(numList);
|