|
@@ -255,7 +255,7 @@
|
|
|
<span>+</span>
|
|
<span>+</span>
|
|
|
<div>AI应用</div>
|
|
<div>AI应用</div>
|
|
|
</div>
|
|
</div>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<div class="pta_ba_item pta_ba_item4" @click.stop="openVideoUploadDialog()">
|
|
<div class="pta_ba_item pta_ba_item4" @click.stop="openVideoUploadDialog()">
|
|
|
<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
|
<rect width="19" height="19" fill="url(#pattern0_158_1455)"/>
|
|
<rect width="19" height="19" fill="url(#pattern0_158_1455)"/>
|
|
@@ -2357,7 +2357,7 @@
|
|
|
<CodeEditor ref="CodeEditorRef" @success="addHtmlSuccess"></CodeEditor>
|
|
<CodeEditor ref="CodeEditorRef" @success="addHtmlSuccess"></CodeEditor>
|
|
|
<InteractiveToolDialog ref="InteractiveToolDialogRef" @addTool="addTool"/>
|
|
<InteractiveToolDialog ref="InteractiveToolDialogRef" @addTool="addTool"/>
|
|
|
<VideoUploadDialog ref="VideoUploadDialogRef" @uploadLocalVideo="handleLocalVideoUpload" @uploadProgress="handleUploadProgress" @searchBilibili="handleBilibiliSearch"/>
|
|
<VideoUploadDialog ref="VideoUploadDialogRef" @uploadLocalVideo="handleLocalVideoUpload" @uploadProgress="handleUploadProgress" @searchBilibili="handleBilibiliSearch"/>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<!-- Bilibili视频检索弹窗 -->
|
|
<!-- Bilibili视频检索弹窗 -->
|
|
|
<BilibiliSearchDialog
|
|
<BilibiliSearchDialog
|
|
|
:visible.sync="dialogVisibleBilibiliSearch"
|
|
:visible.sync="dialogVisibleBilibiliSearch"
|
|
@@ -2365,7 +2365,7 @@
|
|
|
:grade="selectedGradeName"
|
|
:grade="selectedGradeName"
|
|
|
@addVideo="handleBilibiliVideoAdd"
|
|
@addVideo="handleBilibiliVideoAdd"
|
|
|
/>
|
|
/>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<!-- 视频预览弹窗 -->
|
|
<!-- 视频预览弹窗 -->
|
|
|
<el-dialog
|
|
<el-dialog
|
|
|
:visible.sync="dialogVisibleVideoPreview"
|
|
:visible.sync="dialogVisibleVideoPreview"
|
|
@@ -2398,7 +2398,7 @@
|
|
|
></iframe>
|
|
></iframe>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<!-- 右下角上传进度显示 -->
|
|
<!-- 右下角上传进度显示 -->
|
|
|
<div class="upload-progress-container" v-if="uploadProgressList.length > 0">
|
|
<div class="upload-progress-container" v-if="uploadProgressList.length > 0">
|
|
|
<div class="upload-progress-header" @click="toggleProgressExpand">
|
|
<div class="upload-progress-header" @click="toggleProgressExpand">
|
|
@@ -2413,9 +2413,9 @@
|
|
|
{{item.status === 'uploading' ? '上传中' : item.status === 'completed' ? '已完成' : '上传失败'}}
|
|
{{item.status === 'uploading' ? '上传中' : item.status === 'completed' ? '已完成' : '上传失败'}}
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
- <el-progress
|
|
|
|
|
|
|
+ <el-progress
|
|
|
v-if="item.status === 'uploading'"
|
|
v-if="item.status === 'uploading'"
|
|
|
- :percentage="item.progress"
|
|
|
|
|
|
|
+ :percentage="item.progress"
|
|
|
:status="item.status === 'error' ? 'exception' : ''"
|
|
:status="item.status === 'error' ? 'exception' : ''"
|
|
|
:stroke-width="8"
|
|
:stroke-width="8"
|
|
|
style="margin-top: 8px;"
|
|
style="margin-top: 8px;"
|
|
@@ -2777,8 +2777,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 动态生成PPT iframe的URL
|
|
// 动态生成PPT iframe的URL
|
|
|
pptIframeUrl() {
|
|
pptIframeUrl() {
|
|
|
- const baseUrl = this.isBetaEnv
|
|
|
|
|
- ? 'https://beta.ppt.cocorobo.cn'
|
|
|
|
|
|
|
+ const baseUrl = this.isBetaEnv
|
|
|
|
|
+ ? 'https://beta.ppt.cocorobo.cn'
|
|
|
: 'https://ppt.cocorobo.cn';
|
|
: 'https://ppt.cocorobo.cn';
|
|
|
return `${baseUrl}/?mode=editor&courseid=${this.cid}`;
|
|
return `${baseUrl}/?mode=editor&courseid=${this.cid}`;
|
|
|
},
|
|
},
|
|
@@ -8187,7 +8187,7 @@ export default {
|
|
|
// 添加新的进度项
|
|
// 添加新的进度项
|
|
|
this.uploadProgressList.push(progressData);
|
|
this.uploadProgressList.push(progressData);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 如果上传完成,3秒后移除
|
|
// 如果上传完成,3秒后移除
|
|
|
if (progressData.status === 'completed') {
|
|
if (progressData.status === 'completed') {
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -8216,7 +8216,7 @@ export default {
|
|
|
};
|
|
};
|
|
|
this.pptCourseJson.toolsList.push(videoItem);
|
|
this.pptCourseJson.toolsList.push(videoItem);
|
|
|
this.setPPtToolList();
|
|
this.setPPtToolList();
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 更新进度状态为已完成
|
|
// 更新进度状态为已完成
|
|
|
const progressIndex = this.uploadProgressList.findIndex(item => item.id === videoData.id);
|
|
const progressIndex = this.uploadProgressList.findIndex(item => item.id === videoData.id);
|
|
|
if (progressIndex !== -1) {
|
|
if (progressIndex !== -1) {
|
|
@@ -8538,7 +8538,9 @@ export default {
|
|
|
}, 500);
|
|
}, 500);
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
-
|
|
|
|
|
|
|
+ // 清空
|
|
|
|
|
+ this.pptCourseJson.toolsList = [];
|
|
|
|
|
+ this.setPPtToolList()
|
|
|
// iframe页面加载完成
|
|
// iframe页面加载完成
|
|
|
this.$refs.pptIframeRef.onload = () => {
|
|
this.$refs.pptIframeRef.onload = () => {
|
|
|
console.log("iframe页面加载完成");
|
|
console.log("iframe页面加载完成");
|