| | |
| | | > |
| | | {{t('myCourse.downloadVideo')}} |
| | | </el-button> |
| | | <el-button |
| | | v-if="scope.row.subtitlesUrl" |
| | | link |
| | | type="primary" |
| | | @click="handleDownload(scope.row.subtitlesUrl,scope.row.courseName)" |
| | | > |
| | | {{t('myCourse.downloadSubtitles')}} |
| | | </el-button> |
| | | |
| | | </template> |
| | | <template v-if=" scope.row.status == 3"> |
| | | <el-button |
| | |
| | | {{t('myCourse.resynthesize')}} |
| | | </el-button> |
| | | </template> |
| | | <template v-if="scope.row.status == 2"> |
| | | <el-button |
| | | link |
| | | type="primary" |
| | |
| | | > |
| | | 字幕 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <el-button |
| | | link |
| | | type="danger" |
| | |
| | | resize="none" |
| | | /> |
| | | <el-button |
| | | style="margin-top: 20px;float: right;margin-left: 20px" |
| | | type="primary" |
| | | :disabled="!subtitleForm.subtitlesUrl" |
| | | @click="handleDownload(subtitleForm.subtitlesUrl,subtitleForm.courseName)" |
| | | > |
| | | {{t('myCourse.downloadSubtitles')}} |
| | | </el-button> |
| | | <el-button |
| | | style="margin-top: 20px;float: right" |
| | | type="primary" |
| | | @click="saveSubtitles" |
| | |
| | | > |
| | | 保存字幕 |
| | | </el-button> |
| | | |
| | | </div> |
| | | |
| | | </el-form-item> |
| | |
| | | } |
| | | if (videoDetail.subtitlesStatus === 2) { // 2 表示字幕已生成 |
| | | if (videoDetail.subtitlesUrl) { |
| | | subtitleForm.subtitlesUrl = videoDetail.subtitlesUrl |
| | | subtitleForm.courseName=videoDetail.courseName |
| | | try { |
| | | // 尝试从URL获取字幕内容 |
| | | const response = await fetch(videoDetail.subtitlesUrl) |