Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8a8cb159
authored
May 30, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【增加】Image card 组件增加异常展示
parent
87ffd38d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
src/views/ai/image/ImageTaskCard.vue
+2
-1
No files found.
src/views/ai/image/ImageTaskCard.vue
View file @
8a8cb159
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div>
<div>
<el-button
type=
""
text
bg
v-if=
"imageDetail.status === '10'"
>
生成中
</el-button>
<el-button
type=
""
text
bg
v-if=
"imageDetail.status === '10'"
>
生成中
</el-button>
<el-button
type=
""
text
bg
v-else-if=
"imageDetail.status === '20'"
>
已完成
</el-button>
<el-button
type=
""
text
bg
v-else-if=
"imageDetail.status === '20'"
>
已完成
</el-button>
<el-button
type=
"
"
text
bg
v-else-if=
"imageDetail.status === '30'"
>
已完成
</el-button>
<el-button
type=
"
danger"
text
bg
v-else-if=
"imageDetail.status === '30'"
>
异常
</el-button>
</div>
</div>
<div>
<div>
<el-button
class=
"btn"
text
:icon=
"Download"
<el-button
class=
"btn"
text
:icon=
"Download"
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
</div>
</div>
<div
class=
"image-wrapper"
ref=
"cardImageRef"
>
<div
class=
"image-wrapper"
ref=
"cardImageRef"
>
<img
class=
"image"
:src=
"imageDetail?.picUrl"
/>
<img
class=
"image"
:src=
"imageDetail?.picUrl"
/>
<div
v-if=
"imageDetail.status === '30'"
>
{{
imageDetail
.
errorMessage
}}
</div>
</div>
</div>
</el-card>
</el-card>
</
template
>
</
template
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment