Skip to content

Commit ad10328

Browse files
committed
【增加】AI Image 列表增加状态切换
1 parent 0b8301c commit ad10328

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/views/ai/image/ImageTaskCard.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11

22
<template>
3-
<el-card body-class="" class="image-card" >
3+
<el-card body-class="" class="image-card" v-loading="imageDetail.status === 'in_progress'" >
44
<div class="image-operation">
55
<div>
6-
<el-button type="" text bg >已完成</el-button>
6+
<el-button type="" text bg v-if="imageDetail.status === 'in_progress'">生成中</el-button>
7+
<el-button type="" text bg v-else-if="imageDetail.status === 'fail'">已完成</el-button>
8+
<el-button type="" text bg v-else-if="imageDetail.status === 'complete'">已完成</el-button>
79
</div>
810
<div>
911
<el-button class="btn" text :icon="Download" @click="handlerBtnClick('download', imageDetail)" />

0 commit comments

Comments
 (0)