|
@@ -1289,13 +1289,12 @@ CH:${_CH}
|
|
|
_result += `<tr><td>${index + 1}</td><td>${item.startTime}</td><td>${item.endTime}</td><td>${item.value}</td><td>${item.time}</td><td>${item.role}</td><td>${item.code}</td></tr>`;
|
|
|
});
|
|
|
_result += `</tbody></table>`;
|
|
|
- // this.editorBarData.content = _result;
|
|
|
- this.$forceUpdate();
|
|
|
var blob = new Blob([_result], { type: "text/plain;charset=utf-8" });
|
|
|
blob.lastModifiedDate = new Date();
|
|
|
blob.name = `classroomObservation.txt`;
|
|
|
this.uploadFileMixin(blob).then(upload => {
|
|
|
- resolve({ transcriptionContent: transcriptionContent, editorBarData: { type: "0", url: upload.Location, content: _result, tableList: textList } })
|
|
|
+ console.log("上传成功并resolve",{transcriptionContent: transcriptionContent, editorBarData: { type: "0", url: upload.Location, content: _result, tableList: textList } })
|
|
|
+ resolve({transcriptionContent: transcriptionContent, editorBarData: { type: "0", url: upload.Location, content: _result, tableList: textList } })
|
|
|
})
|
|
|
// this.wavGetTextProgress = 100;
|
|
|
// if (this.wavFileGetTextLoading) this.$message.success("转译完成");
|
|
@@ -1311,6 +1310,7 @@ CH:${_CH}
|
|
|
// this.saveEditorBar();
|
|
|
})
|
|
|
.catch(err => {
|
|
|
+ console.log("转录error",err)
|
|
|
resolve({ data: 1, transcriptionContent: null, editorBarData: null, err: err })
|
|
|
// console.log(err)
|
|
|
// this.wavGetTextLoading = false;
|