|
@@ -6,7 +6,7 @@
|
|
|
:class="[
|
|
:class="[
|
|
|
themeColor.length === 0 || themeColor === 'red'
|
|
themeColor.length === 0 || themeColor === 'red'
|
|
|
? 'serial-number'
|
|
? 'serial-number'
|
|
|
- : `serial-number-${themeColor}`
|
|
|
|
|
|
|
+ : `serial-number-${themeColor}`,
|
|
|
]"
|
|
]"
|
|
|
>
|
|
>
|
|
|
{{ curQue.voiceMatrix.audioSerialNumber }}
|
|
{{ curQue.voiceMatrix.audioSerialNumber }}
|
|
@@ -22,7 +22,7 @@
|
|
|
:class="[
|
|
:class="[
|
|
|
'Repeat-16',
|
|
'Repeat-16',
|
|
|
'audio-simple-repeat',
|
|
'audio-simple-repeat',
|
|
|
- isRepeat ? '' : 'disabled'
|
|
|
|
|
|
|
+ isRepeat ? '' : 'disabled',
|
|
|
]"
|
|
]"
|
|
|
@click="isRepeat = !isRepeat"
|
|
@click="isRepeat = !isRepeat"
|
|
|
/>
|
|
/>
|
|
@@ -35,9 +35,9 @@
|
|
|
:get-cur-time="getCurTime"
|
|
:get-cur-time="getCurTime"
|
|
|
:stop-audio="stopAudio"
|
|
:stop-audio="stopAudio"
|
|
|
:mp3-source="mp3Source"
|
|
:mp3-source="mp3Source"
|
|
|
|
|
+ :base-size-phone="baseSizePhone"
|
|
|
@handleChangeStopAudio="handleChangeStopAudio"
|
|
@handleChangeStopAudio="handleChangeStopAudio"
|
|
|
@playChange="playChange"
|
|
@playChange="playChange"
|
|
|
- :baseSizePhone="baseSizePhone"
|
|
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 语音矩阵 -->
|
|
<!-- 语音矩阵 -->
|
|
@@ -49,7 +49,7 @@
|
|
|
v-if="curQue.voiceMatrix.matrix.length > 0"
|
|
v-if="curQue.voiceMatrix.matrix.length > 0"
|
|
|
class="matrix"
|
|
class="matrix"
|
|
|
:style="{
|
|
:style="{
|
|
|
- 'grid-template': `36px repeat(${curQue.voiceMatrix.matrix.length}, auto) minmax(36px, 1fr) / 36px repeat(${curQue.voiceMatrix.matrix[0].length}, auto) minmax(36px, 1fr)`
|
|
|
|
|
|
|
+ 'grid-template': `36px repeat(${curQue.voiceMatrix.matrix.length}, auto) minmax(36px, 1fr) / 36px repeat(${curQue.voiceMatrix.matrix[0].length}, auto) minmax(36px, 1fr)`,
|
|
|
}"
|
|
}"
|
|
|
@mouseleave="clearSelectCell"
|
|
@mouseleave="clearSelectCell"
|
|
|
>
|
|
>
|
|
@@ -64,7 +64,7 @@
|
|
|
(selectColumn === i ||
|
|
(selectColumn === i ||
|
|
|
(selectedLine.type === 'column' && selectedLine.index === i))
|
|
(selectedLine.type === 'column' && selectedLine.index === i))
|
|
|
? 'read'
|
|
? 'read'
|
|
|
- : ''
|
|
|
|
|
|
|
+ : '',
|
|
|
]"
|
|
]"
|
|
|
@mouseenter="checkboxMouseenter(selectColumn === i, 'column')"
|
|
@mouseenter="checkboxMouseenter(selectColumn === i, 'column')"
|
|
|
>
|
|
>
|
|
@@ -72,15 +72,11 @@
|
|
|
v-if="
|
|
v-if="
|
|
|
row.type !== 'connection' && curQue.voiceMatrix.columnSelection
|
|
row.type !== 'connection' && curQue.voiceMatrix.columnSelection
|
|
|
"
|
|
"
|
|
|
- v-show="
|
|
|
|
|
- selectColumn === i ||
|
|
|
|
|
- (selectedLine.type === 'column' && selectedLine.index === i)
|
|
|
|
|
- "
|
|
|
|
|
:class="[
|
|
:class="[
|
|
|
`matrix-checkbox-row-${themeColor}`,
|
|
`matrix-checkbox-row-${themeColor}`,
|
|
|
selectedLine.type === 'column' && selectedLine.index === i
|
|
selectedLine.type === 'column' && selectedLine.index === i
|
|
|
? 'active'
|
|
? 'active'
|
|
|
- : ''
|
|
|
|
|
|
|
+ : '',
|
|
|
]"
|
|
]"
|
|
|
@click="selectRowOrColumn(i, 'column')"
|
|
@click="selectRowOrColumn(i, 'column')"
|
|
|
/>
|
|
/>
|
|
@@ -97,21 +93,17 @@
|
|
|
(selectRow === i ||
|
|
(selectRow === i ||
|
|
|
(selectedLine.type === 'row' && selectedLine.index === i))
|
|
(selectedLine.type === 'row' && selectedLine.index === i))
|
|
|
? 'read'
|
|
? 'read'
|
|
|
- : ''
|
|
|
|
|
|
|
+ : '',
|
|
|
]"
|
|
]"
|
|
|
@mouseenter="checkboxMouseenter(selectRow === i, 'row')"
|
|
@mouseenter="checkboxMouseenter(selectRow === i, 'row')"
|
|
|
>
|
|
>
|
|
|
<span
|
|
<span
|
|
|
v-if="curQue.voiceMatrix.rowSelection"
|
|
v-if="curQue.voiceMatrix.rowSelection"
|
|
|
- v-show="
|
|
|
|
|
- selectRow === i ||
|
|
|
|
|
- (selectedLine.type === 'row' && selectedLine.index === i)
|
|
|
|
|
- "
|
|
|
|
|
:class="[
|
|
:class="[
|
|
|
`matrix-checkbox-column-${themeColor}`,
|
|
`matrix-checkbox-column-${themeColor}`,
|
|
|
selectedLine.type === 'row' && selectedLine.index === i
|
|
selectedLine.type === 'row' && selectedLine.index === i
|
|
|
? 'active'
|
|
? 'active'
|
|
|
- : ''
|
|
|
|
|
|
|
+ : '',
|
|
|
]"
|
|
]"
|
|
|
@click="selectRowOrColumn(i, 'row')"
|
|
@click="selectRowOrColumn(i, 'row')"
|
|
|
/>
|
|
/>
|
|
@@ -135,7 +127,7 @@
|
|
|
(i === 0 && curQue.voiceMatrix.firstLineHighlight) ||
|
|
(i === 0 && curQue.voiceMatrix.firstLineHighlight) ||
|
|
|
(j === row.length - 1 && curQue.voiceMatrix.lastColumnHighlight)
|
|
(j === row.length - 1 && curQue.voiceMatrix.lastColumnHighlight)
|
|
|
? `highlight-${themeColor}`
|
|
? `highlight-${themeColor}`
|
|
|
- : ''
|
|
|
|
|
|
|
+ : '',
|
|
|
]"
|
|
]"
|
|
|
@mouseenter="matrixCellMouseenter(i, j, column.type)"
|
|
@mouseenter="matrixCellMouseenter(i, j, column.type)"
|
|
|
>
|
|
>
|
|
@@ -157,7 +149,7 @@
|
|
|
column.lrc_data.end_time === -1)
|
|
column.lrc_data.end_time === -1)
|
|
|
? 'playing'
|
|
? 'playing'
|
|
|
: '',
|
|
: '',
|
|
|
- column.isTitle ? 'title' : ''
|
|
|
|
|
|
|
+ column.isTitle ? 'title' : '',
|
|
|
]"
|
|
]"
|
|
|
@click="matrixCellClick(i, j)"
|
|
@click="matrixCellClick(i, j)"
|
|
|
>
|
|
>
|
|
@@ -171,7 +163,7 @@
|
|
|
'connection',
|
|
'connection',
|
|
|
i === 0 && curQue.voiceMatrix.firstLineHighlight
|
|
i === 0 && curQue.voiceMatrix.firstLineHighlight
|
|
|
? `highlight-bc-${themeColor}`
|
|
? `highlight-bc-${themeColor}`
|
|
|
- : ''
|
|
|
|
|
|
|
+ : '',
|
|
|
]"
|
|
]"
|
|
|
/>
|
|
/>
|
|
|
<!-- 分词 -->
|
|
<!-- 分词 -->
|
|
@@ -192,10 +184,10 @@
|
|
|
column.lrc_data.end_time === -1)
|
|
column.lrc_data.end_time === -1)
|
|
|
? 'playing'
|
|
? 'playing'
|
|
|
: '',
|
|
: '',
|
|
|
- column.isTitle ? 'title' : ''
|
|
|
|
|
|
|
+ column.isTitle ? 'title' : '',
|
|
|
]"
|
|
]"
|
|
|
:style="{
|
|
:style="{
|
|
|
- 'grid-template-columns': `repeat(${column.sentence_data.wordsList.length}, auto)`
|
|
|
|
|
|
|
+ 'grid-template-columns': `repeat(${column.sentence_data.wordsList.length}, auto)`,
|
|
|
}"
|
|
}"
|
|
|
@click="matrixCellClick(i, j)"
|
|
@click="matrixCellClick(i, j)"
|
|
|
>
|
|
>
|
|
@@ -203,13 +195,11 @@
|
|
|
v-for="({ pinyin, chs }, w) in column.sentence_data.wordsList"
|
|
v-for="({ pinyin, chs }, w) in column.sentence_data.wordsList"
|
|
|
>
|
|
>
|
|
|
<span
|
|
<span
|
|
|
- :key="
|
|
|
|
|
- `${
|
|
|
|
|
- column.sentence_data.pyPosition === 'top'
|
|
|
|
|
- ? 'pinyin'
|
|
|
|
|
- : 'chs'
|
|
|
|
|
- }-${w}`
|
|
|
|
|
- "
|
|
|
|
|
|
|
+ :key="`${
|
|
|
|
|
+ column.sentence_data.pyPosition === 'top'
|
|
|
|
|
+ ? 'pinyin'
|
|
|
|
|
+ : 'chs'
|
|
|
|
|
+ }-${w}`"
|
|
|
:class="
|
|
:class="
|
|
|
column.sentence_data.pyPosition === 'top'
|
|
column.sentence_data.pyPosition === 'top'
|
|
|
? 'pinyin'
|
|
? 'pinyin'
|
|
@@ -225,13 +215,11 @@
|
|
|
v-for="({ pinyin, chs }, w) in column.sentence_data.wordsList"
|
|
v-for="({ pinyin, chs }, w) in column.sentence_data.wordsList"
|
|
|
>
|
|
>
|
|
|
<span
|
|
<span
|
|
|
- :key="
|
|
|
|
|
- `${
|
|
|
|
|
- column.sentence_data.pyPosition === 'top'
|
|
|
|
|
- ? 'chs'
|
|
|
|
|
- : 'pinyin'
|
|
|
|
|
- }-${w}`
|
|
|
|
|
- "
|
|
|
|
|
|
|
+ :key="`${
|
|
|
|
|
+ column.sentence_data.pyPosition === 'top'
|
|
|
|
|
+ ? 'chs'
|
|
|
|
|
+ : 'pinyin'
|
|
|
|
|
+ }-${w}`"
|
|
|
:class="
|
|
:class="
|
|
|
column.sentence_data.pyPosition === 'top'
|
|
column.sentence_data.pyPosition === 'top'
|
|
|
? 'chs'
|
|
? 'chs'
|
|
@@ -262,7 +250,7 @@
|
|
|
column.lrc_data.end_time === -1)
|
|
column.lrc_data.end_time === -1)
|
|
|
? 'playing'
|
|
? 'playing'
|
|
|
: '',
|
|
: '',
|
|
|
- column.isTitle ? 'title' : ''
|
|
|
|
|
|
|
+ column.isTitle ? 'title' : '',
|
|
|
]"
|
|
]"
|
|
|
@click="matrixCellClick(i, j)"
|
|
@click="matrixCellClick(i, j)"
|
|
|
>
|
|
>
|
|
@@ -293,7 +281,7 @@
|
|
|
column.lrc_data.end_time === -1)
|
|
column.lrc_data.end_time === -1)
|
|
|
? 'playing'
|
|
? 'playing'
|
|
|
: '',
|
|
: '',
|
|
|
- column.isTitle ? 'title' : ''
|
|
|
|
|
|
|
+ column.isTitle ? 'title' : '',
|
|
|
]"
|
|
]"
|
|
|
@click="matrixCellClick(i, j)"
|
|
@click="matrixCellClick(i, j)"
|
|
|
>
|
|
>
|
|
@@ -302,7 +290,7 @@
|
|
|
:class="[
|
|
:class="[
|
|
|
getBracketsOuterTypeClass(
|
|
getBracketsOuterTypeClass(
|
|
|
column.text_brackets.brackets_outer_type
|
|
column.text_brackets.brackets_outer_type
|
|
|
- )
|
|
|
|
|
|
|
+ ),
|
|
|
]"
|
|
]"
|
|
|
>
|
|
>
|
|
|
{{ column.text_brackets.brackets_outer }}
|
|
{{ column.text_brackets.brackets_outer }}
|
|
@@ -312,7 +300,7 @@
|
|
|
:class="[
|
|
:class="[
|
|
|
column.text_brackets.brackets_inner_type === 'pinyin'
|
|
column.text_brackets.brackets_inner_type === 'pinyin'
|
|
|
? 'pinyin'
|
|
? 'pinyin'
|
|
|
- : 'english'
|
|
|
|
|
|
|
+ : 'english',
|
|
|
]"
|
|
]"
|
|
|
>
|
|
>
|
|
|
{{ column.text_brackets.brackets_inner }}
|
|
{{ column.text_brackets.brackets_inner }}
|
|
@@ -330,7 +318,7 @@
|
|
|
(selectRow === i ||
|
|
(selectRow === i ||
|
|
|
(selectedLine.type === 'row' && selectedLine.index === i))
|
|
(selectedLine.type === 'row' && selectedLine.index === i))
|
|
|
? 'read'
|
|
? 'read'
|
|
|
- : ''
|
|
|
|
|
|
|
+ : '',
|
|
|
]"
|
|
]"
|
|
|
@mouseenter="clearSelectCell"
|
|
@mouseenter="clearSelectCell"
|
|
|
/>
|
|
/>
|
|
@@ -346,7 +334,7 @@
|
|
|
(selectColumn === i ||
|
|
(selectColumn === i ||
|
|
|
(selectedLine.type === 'column' && selectedLine.index === i))
|
|
(selectedLine.type === 'column' && selectedLine.index === i))
|
|
|
? 'read'
|
|
? 'read'
|
|
|
- : ''
|
|
|
|
|
|
|
+ : '',
|
|
|
]"
|
|
]"
|
|
|
@mouseenter="clearSelectCell"
|
|
@mouseenter="clearSelectCell"
|
|
|
/>
|
|
/>
|
|
@@ -365,12 +353,12 @@
|
|
|
:select-data="selectData"
|
|
:select-data="selectData"
|
|
|
:answer-record-list="curQue.Bookanswer.recordList"
|
|
:answer-record-list="curQue.Bookanswer.recordList"
|
|
|
:task-model="TaskModel"
|
|
:task-model="TaskModel"
|
|
|
|
|
+ :base-size-phone="baseSizePhone"
|
|
|
@getWavblob="getWavblob"
|
|
@getWavblob="getWavblob"
|
|
|
@getSelectData="getSelectData"
|
|
@getSelectData="getSelectData"
|
|
|
@handleParentPlay="pauseOtherAudio"
|
|
@handleParentPlay="pauseOtherAudio"
|
|
|
@sentPause="sentPause"
|
|
@sentPause="sentPause"
|
|
|
@handleWav="handleWav"
|
|
@handleWav="handleWav"
|
|
|
- :baseSizePhone="baseSizePhone"
|
|
|
|
|
/>
|
|
/>
|
|
|
<AudioCompare
|
|
<AudioCompare
|
|
|
:style="{ flex: 1 }"
|
|
:style="{ flex: 1 }"
|
|
@@ -418,15 +406,13 @@ export default {
|
|
|
AudioLine,
|
|
AudioLine,
|
|
|
Soundrecord,
|
|
Soundrecord,
|
|
|
AudioCompare,
|
|
AudioCompare,
|
|
|
- VoiceFullscreen
|
|
|
|
|
|
|
+ VoiceFullscreen,
|
|
|
},
|
|
},
|
|
|
props: ["curQue", "themeColor", "TaskModel", "baseSizePhone"],
|
|
props: ["curQue", "themeColor", "TaskModel", "baseSizePhone"],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
// 组件id
|
|
// 组件id
|
|
|
- cid: Math.random()
|
|
|
|
|
- .toString(36)
|
|
|
|
|
- .substr(2, 10),
|
|
|
|
|
|
|
+ cid: Math.random().toString(36).substr(2, 10),
|
|
|
isFull: false,
|
|
isFull: false,
|
|
|
curTime: 0,
|
|
curTime: 0,
|
|
|
playing: false,
|
|
playing: false,
|
|
@@ -440,19 +426,19 @@ export default {
|
|
|
// 行、列选中
|
|
// 行、列选中
|
|
|
selectedLine: {
|
|
selectedLine: {
|
|
|
type: "",
|
|
type: "",
|
|
|
- index: 0
|
|
|
|
|
|
|
+ index: 0,
|
|
|
},
|
|
},
|
|
|
// 点击选中
|
|
// 点击选中
|
|
|
selectCell: {
|
|
selectCell: {
|
|
|
row: -1,
|
|
row: -1,
|
|
|
- column: -1
|
|
|
|
|
|
|
+ column: -1,
|
|
|
},
|
|
},
|
|
|
isRepeat: false,
|
|
isRepeat: false,
|
|
|
// 跟读所需属性
|
|
// 跟读所需属性
|
|
|
wavblob: null,
|
|
wavblob: null,
|
|
|
isRecord: false,
|
|
isRecord: false,
|
|
|
matrixSelectLrc: null,
|
|
matrixSelectLrc: null,
|
|
|
- refresh: true
|
|
|
|
|
|
|
+ refresh: true,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -486,7 +472,7 @@ export default {
|
|
|
type: type.length > 0 && index >= 0 ? type : "cell",
|
|
type: type.length > 0 && index >= 0 ? type : "cell",
|
|
|
index,
|
|
index,
|
|
|
row,
|
|
row,
|
|
|
- column
|
|
|
|
|
|
|
+ column,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -506,7 +492,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
fullscreenSrc() {
|
|
fullscreenSrc() {
|
|
|
return require("../../../assets/NPC/full-screen-red.png");
|
|
return require("../../../assets/NPC/full-screen-red.png");
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
hasSelectedCell() {
|
|
hasSelectedCell() {
|
|
@@ -522,11 +508,11 @@ export default {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- deep: true
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ deep: true,
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
- Bus.$on("audioPause", id => {
|
|
|
|
|
|
|
+ Bus.$on("audioPause", (id) => {
|
|
|
if (this.cid === id) return;
|
|
if (this.cid === id) return;
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
if (this.$refs.luyin?.microphoneStatus) this.$refs.luyin.microphone();
|
|
if (this.$refs.luyin?.microphoneStatus) this.$refs.luyin.microphone();
|
|
@@ -535,7 +521,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
if (!this.curQue.Bookanswer) {
|
|
if (!this.curQue.Bookanswer) {
|
|
|
let bookanswer = {
|
|
let bookanswer = {
|
|
|
- recordList: []
|
|
|
|
|
|
|
+ recordList: [],
|
|
|
};
|
|
};
|
|
|
this.$set(this.curQue, "Bookanswer", bookanswer);
|
|
this.$set(this.curQue, "Bookanswer", bookanswer);
|
|
|
}
|
|
}
|
|
@@ -588,13 +574,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
setRecordingFileName(row, column) {
|
|
setRecordingFileName(row, column) {
|
|
|
- let {
|
|
|
|
|
- type,
|
|
|
|
|
- text,
|
|
|
|
|
- sentence_data,
|
|
|
|
|
- pinyin_english_data,
|
|
|
|
|
- text_brackets
|
|
|
|
|
- } = this.curQue.voiceMatrix.matrix[row][column];
|
|
|
|
|
|
|
+ let { type, text, sentence_data, pinyin_english_data, text_brackets } =
|
|
|
|
|
+ this.curQue.voiceMatrix.matrix[row][column];
|
|
|
if (type === "text") this.fileName = text;
|
|
if (type === "text") this.fileName = text;
|
|
|
if (type === "SentenceSegwordChs") this.fileName = sentence_data.sentence;
|
|
if (type === "SentenceSegwordChs") this.fileName = sentence_data.sentence;
|
|
|
if (type === "PinyinEnglish") this.fileName = pinyin_english_data.pinyin;
|
|
if (type === "PinyinEnglish") this.fileName = pinyin_english_data.pinyin;
|
|
@@ -649,7 +630,7 @@ export default {
|
|
|
this.lrcArray = [];
|
|
this.lrcArray = [];
|
|
|
let { type, index } = this.selectedLine;
|
|
let { type, index } = this.selectedLine;
|
|
|
if (type.length > 0 && index >= 0 && type === "row") {
|
|
if (type.length > 0 && index >= 0 && type === "row") {
|
|
|
- this.curQue.voiceMatrix.matrix[index].forEach(item => {
|
|
|
|
|
|
|
+ this.curQue.voiceMatrix.matrix[index].forEach((item) => {
|
|
|
let data = this.getLrcData(item);
|
|
let data = this.getLrcData(item);
|
|
|
if (data && "begin_time" in data) this.lrcArray.push(data);
|
|
if (data && "begin_time" in data) this.lrcArray.push(data);
|
|
|
});
|
|
});
|
|
@@ -658,7 +639,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (type.length > 0 && index >= 0 && type === "column") {
|
|
if (type.length > 0 && index >= 0 && type === "column") {
|
|
|
- this.curQue.voiceMatrix.matrix.forEach(item => {
|
|
|
|
|
|
|
+ this.curQue.voiceMatrix.matrix.forEach((item) => {
|
|
|
let data = this.getLrcData(item[index]);
|
|
let data = this.getLrcData(item[index]);
|
|
|
if (data && "begin_time" in data) this.lrcArray.push(data);
|
|
if (data && "begin_time" in data) this.lrcArray.push(data);
|
|
|
});
|
|
});
|
|
@@ -681,7 +662,7 @@ export default {
|
|
|
this.$refs.audioLine.PlayAudio();
|
|
this.$refs.audioLine.PlayAudio();
|
|
|
if (end_time === -1) return;
|
|
if (end_time === -1) return;
|
|
|
let end = end_time / 1000 - 0.01;
|
|
let end = end_time / 1000 - 0.01;
|
|
|
- this.unWatch = this.$watch("curTime", val => {
|
|
|
|
|
|
|
+ this.unWatch = this.$watch("curTime", (val) => {
|
|
|
if (val >= end) {
|
|
if (val >= end) {
|
|
|
if (!this.hasSelectedCell) return this.unWatch();
|
|
if (!this.hasSelectedCell) return this.unWatch();
|
|
|
this.handleParentPlay();
|
|
this.handleParentPlay();
|
|
@@ -736,7 +717,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
let arr = [];
|
|
let arr = [];
|
|
|
if (type.length > 0 && index >= 0 && type === "row") {
|
|
if (type.length > 0 && index >= 0 && type === "row") {
|
|
|
- this.curQue.voiceMatrix.matrix[index].forEach(item => {
|
|
|
|
|
|
|
+ this.curQue.voiceMatrix.matrix[index].forEach((item) => {
|
|
|
let data = this.getLrcData(item);
|
|
let data = this.getLrcData(item);
|
|
|
if (data) arr.push(data);
|
|
if (data) arr.push(data);
|
|
|
});
|
|
});
|
|
@@ -745,7 +726,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (type.length > 0 && index >= 0 && type === "column") {
|
|
if (type.length > 0 && index >= 0 && type === "column") {
|
|
|
- this.curQue.voiceMatrix.matrix.forEach(item => {
|
|
|
|
|
|
|
+ this.curQue.voiceMatrix.matrix.forEach((item) => {
|
|
|
let data = this.getLrcData(item[index]);
|
|
let data = this.getLrcData(item[index]);
|
|
|
if (data) arr.push(data);
|
|
if (data) arr.push(data);
|
|
|
});
|
|
});
|
|
@@ -771,7 +752,7 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
begin_time: lrc_data.begin_time,
|
|
begin_time: lrc_data.begin_time,
|
|
|
end_time: this.mp3Duration,
|
|
end_time: this.mp3Duration,
|
|
|
- text: lrc_data.text
|
|
|
|
|
|
|
+ text: lrc_data.text,
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
return lrc_data;
|
|
return lrc_data;
|
|
@@ -790,7 +771,7 @@ export default {
|
|
|
audio.length > 0 &&
|
|
audio.length > 0 &&
|
|
|
window.location.href.indexOf("GCLS-Learn") == -1
|
|
window.location.href.indexOf("GCLS-Learn") == -1
|
|
|
) {
|
|
) {
|
|
|
- audio.forEach(item => {
|
|
|
|
|
|
|
+ audio.forEach((item) => {
|
|
|
item.pause();
|
|
item.pause();
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -840,7 +821,7 @@ export default {
|
|
|
// 监听是否已到结束时间,为了选中效果 - 0.01
|
|
// 监听是否已到结束时间,为了选中效果 - 0.01
|
|
|
if (end_time === -1) return;
|
|
if (end_time === -1) return;
|
|
|
let end = end_time / 1000 - 0.01;
|
|
let end = end_time / 1000 - 0.01;
|
|
|
- this.unWatch = this.$watch("curTime", val => {
|
|
|
|
|
|
|
+ this.unWatch = this.$watch("curTime", (val) => {
|
|
|
if (val >= end) {
|
|
if (val >= end) {
|
|
|
this.handleParentPlay();
|
|
this.handleParentPlay();
|
|
|
this.$refs.audioLine.onTimeupdateTime(end);
|
|
this.$refs.audioLine.onTimeupdateTime(end);
|
|
@@ -855,8 +836,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
handleWav(list, tmIndex = 0) {
|
|
handleWav(list, tmIndex = 0) {
|
|
|
this.$set(this.curQue.Bookanswer, "recordList", list);
|
|
this.$set(this.curQue.Bookanswer, "recordList", list);
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|