Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 36 additions & 3 deletions ui/src/components/execution-detail-card/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@
fit="cover"
style="width: 40px; height: 40px; display: block"
class="border-r-6"
:preview-src-list="data.image_list.map((img: any) => img.url)"
:initial-index="i"
:zoom-rate="1.2"
:max-scale="7"
:min-scale="0.2"
/>
</template>
</el-space>
Expand All @@ -109,7 +114,7 @@
</el-space>
</div>
<div v-if="data.video_list?.length > 0">
<p class="mb-8 color-secondary">{{ $t('common.fileUpload.image') }}:</p>
<p class="mb-8 color-secondary">{{ $t('common.fileUpload.video') }}:</p>

<el-space wrap>
<template v-for="(f, i) in data.video_list" :key="i">
Expand All @@ -124,7 +129,7 @@
</el-space>
</div>
<div v-if="data.other_list?.length > 0">
<p class="mb-8 color-secondary">{{ $t('common.fileUpload.document') }}:</p>
<p class="mb-8 color-secondary">{{ $t('common.fileUpload.other') }}:</p>

<el-space wrap>
<template v-for="(f, i) in data.other_list" :key="i">
Expand Down Expand Up @@ -230,6 +235,9 @@
fit="cover"
style="width: 40px; height: 40px; display: block"
class="border-r-6 mb-8"
:zoom-rate="1.2"
:max-scale="7"
:min-scale="0.2"
/>
<video
v-else-if="item.type === 'video_url'"
Expand Down Expand Up @@ -596,6 +604,9 @@
fit="cover"
style="width: 40px; height: 40px; display: inline-block"
class="border-r-6 mr-8"
:zoom-rate="1.2"
:max-scale="7"
:min-scale="0.2"
/>

<span v-else>{{ h.text }}<br /></span>
Expand Down Expand Up @@ -626,6 +637,11 @@
fit="cover"
style="width: 40px; height: 40px; display: block"
class="border-r-6"
:preview-src-list="data.image_list.map((img: any) => img.url || (img.file_id ? `./oss/file/${img.file_id}` : ''))"
:initial-index="i"
:zoom-rate="1.2"
:max-scale="7"
:min-scale="0.2"
/>
</template>
</el-space>
Expand Down Expand Up @@ -803,6 +819,7 @@
</div>
</div>
</template>
<!-- 文生视频 -->
<template v-if="data.type == WorkflowType.TextToVideoGenerateNode">
<div class="card-never border-r-6 mt-8">
<h5 class="p-8-12">
Expand Down Expand Up @@ -837,7 +854,7 @@
</div>
</div>
</template>

<!-- 图生视频 -->
<template v-if="data.type == WorkflowType.ImageToVideoGenerateNode">
<div class="card-never border-r-6 mt-8">
<h5 class="p-8-12">
Expand Down Expand Up @@ -867,6 +884,9 @@
fit="cover"
style="width: 40px; height: 40px; display: block"
class="border-r-6"
:zoom-rate="1.2"
:max-scale="7"
:min-scale="0.2"
/>
</div>
<div v-else-if="Array.isArray(data.first_frame_url)">
Expand All @@ -878,6 +898,11 @@
fit="cover"
style="width: 40px; height: 40px; display: block"
class="border-r-6"
:preview-src-list="data.first_frame_url.map((img: any) => img.url)"
:initial-index="i"
:zoom-rate="1.2"
:max-scale="7"
:min-scale="0.2"
/>
</template>
</el-space>
Expand All @@ -896,6 +921,9 @@
fit="cover"
style="width: 40px; height: 40px; display: block"
class="border-r-6"
:zoom-rate="1.2"
:max-scale="7"
:min-scale="0.2"
/>
</div>
<div v-else-if="Array.isArray(data.last_frame_url)">
Expand All @@ -907,6 +935,11 @@
fit="cover"
style="width: 40px; height: 40px; display: block"
class="border-r-6"
:preview-src-list="data.last_frame_url.map((img: any) => img.url)"
:initial-index="i"
:zoom-rate="1.2"
:max-scale="7"
:min-scale="0.2"
/>
</template>
</el-space>
Expand Down
Loading