From 39c5e99c880e517d3668036d0fde21a878664b20 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?=
<7854742+wang_rumeng@user.noreply.gitee.com>
Date: Sun, 29 Jun 2025 01:34:20 +0800
Subject: [PATCH] =?UTF-8?q?3-=E8=B0=83=E6=95=B4=E5=8A=A8=E7=94=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/pages/style/work-flow.css | 2 +-
components/pages/work-flow.tsx | 832 ++++++++++++---------------
2 files changed, 380 insertions(+), 454 deletions(-)
diff --git a/components/pages/style/work-flow.css b/components/pages/style/work-flow.css
index f46bb30..365c211 100644
--- a/components/pages/style/work-flow.css
+++ b/components/pages/style/work-flow.css
@@ -58,7 +58,7 @@
overflow: hidden;
}
.videoContainer-qteKNi {
- flex: 3;
+ /* flex: 3; */
min-height: 0;
display: flex
;
diff --git a/components/pages/work-flow.tsx b/components/pages/work-flow.tsx
index aea2244..d17e7dd 100644
--- a/components/pages/work-flow.tsx
+++ b/components/pages/work-flow.tsx
@@ -524,46 +524,114 @@ export default function WorkFlow() {
}, [isLoading, currentStep, isGeneratingSketch, sketchCount, isGeneratingVideo, taskVideos.length, taskSketch.length]);
const renderSketchContent = () => {
- if (!taskObject) {
+
+ // 展示最终成片
+ if (Number(currentStep) === 6) {
return (
-
-
+ setShowControls(true)} onMouseLeave={() => setShowControls(false)}>
+
+ {/* 背景模糊的视频 */}
-
+
-
- 加载中...
-
-
+
+
+
+ {/* 操作按钮组 */}
+
+ {showControls && (
+ <>
+ {/* 顶部按钮组 */}
+
+ handleEditModalOpen('4')}
+ />
+
+ >
+ )}
+
+
+ {/* 视频信息浮层 */}
+
+
+
+
+ {/* 完成标记 */}
+
+ 制作完成
+
+
);
}
+ // 展示分镜视频
if (Number(currentStep) > 2 && Number(currentStep) < 6) {
return (
-
-
- 正在生成分镜草图 {sketchCount + 1}/{MOCK_SKETCH_COUNT}
-
)}
@@ -936,11 +850,6 @@ export default function WorkFlow() {
tooltip="编辑分镜"
onClick={() => handleEditModalOpen('1')}
/>
- {/* console.log('显示脚本')}
- /> */}
>
)}
@@ -968,7 +877,6 @@ export default function WorkFlow() {
-
{/* 播放进度指示器 */}
@@ -1003,67 +911,122 @@ export default function WorkFlow() {
<>
{taskObject?.projectName}:{taskObject?.taskName}
{/* 实时反馈当前 currentLoadingText */}
-
-
-
+
+
+
+ {currentLoadingText}
+
+
+
+
+ ) : (
+
- {currentLoadingText}
-
-
-
-
+
+
+ {currentLoadingText}
+
+
+
+
+ )}
>
)}
-
+
{isLoading ? (
) : (
@@ -1091,169 +1054,132 @@ export default function WorkFlow() {
onMouseUp={handleMouseUp}
onMouseLeave={() => setIsDragging(false)}
>
- {(Number(currentStep) > 2 && Number(currentStep) < 6) ? (
+ {Number(currentStep) === 6 ? null : (
<>
- {renderedVideos}
- {isGeneratingVideo && taskVideos.length < taskSketch.length && (
-
- {/* 动态渐变背景 */}
-
- {/* 动态光效 */}
-
-
-
-
2 && Number(currentStep) < 6) ? (
+ <>
+ {taskSketch.map((sketch, index) => (
+ !isDragging && setCurrentSketchIndex(index)}
+ >
+
-
-
+
+ {taskVideos[index] ? (
+
+ ) : (
+

+ )}
+
+
+
+ 场景 {index + 1}
+
-
-
- 场景 {taskVideos.length + 1}
-
-
- )}
- >
- ) : Number(currentStep) === 6 ? (
-
-
-
- 最终成片
-
-
- ) : (
- <>
- {renderedSketches}
- {isGeneratingSketch && sketchCount < MOCK_SKETCH_COUNT && (
-
- {/* 动态渐变背景 */}
-
- {/* 动态光效 */}
-
-
-
-
+ ) : (
+ <>
+ {renderedSketches}
+ {isGeneratingSketch && sketchCount < MOCK_SKETCH_COUNT && (
+
+ {/* 动态渐变背景 */}
+
-
-
-
-
-
- 场景 {sketchCount + 1}
-
-
+ />
+
+
+ 场景 {sketchCount + 1}
+
+
+ )}
+ >
)}
>
)}