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
0a9882e9
authored
May 28, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【增加】Ai Image 抽屉显示详细信息
parent
c8d26db4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
3 deletions
+50
-3
src/views/ai/image/ImageDetailDrawer.vue
+50
-3
No files found.
src/views/ai/image/ImageDetailDrawer.vue
View file @
0a9882e9
...
...
@@ -16,6 +16,21 @@
<ImageTaskCard
:image-detail=
"imageDetail"
/>
</div>
</div>
<!-- 时间 -->
<div
class=
"item"
>
<div
class=
"tip"
>
时间
</div>
<div
class=
"body"
>
<div>
提交时间:
{{
imageDetail
.
createTime
}}
</div>
<div>
生成时间:
{{
imageDetail
.
updateTime
}}
</div>
</div>
</div>
<!-- 模型 -->
<div
class=
"item"
>
<div
class=
"tip"
>
模型
</div>
<div
class=
"body"
>
{{
imageDetail
.
model
}}
</div>
</div>
<!-- 提示词 -->
<div
class=
"item"
>
<div
class=
"tip"
>
提示词
</div>
...
...
@@ -23,6 +38,27 @@
{{
imageDetail
.
prompt
}}
</div>
</div>
<!-- 风格 -->
<div
class=
"item"
>
<div
class=
"tip"
>
风格
</div>
<div
class=
"body"
>
{{
imageDetail
.
style
}}
</div>
</div>
<!-- 地址 -->
<div
class=
"item"
>
<div
class=
"tip"
>
地址
</div>
<div
class=
"body"
>
{{
imageDetail
.
picUrl
}}
</div>
</div>
<!-- 生成地址 -->
<div
class=
"item"
>
<div
class=
"tip"
>
生成地址
</div>
<div
class=
"body"
>
{{
imageDetail
.
originalPicUrl
}}
</div>
</div>
</el-drawer>
</
template
>
...
...
@@ -39,6 +75,10 @@ const props = defineProps({
type
:
Boolean
,
require
:
true
,
default
:
false
},
id
:
{
type
:
Number
,
required
:
true
}
})
...
...
@@ -64,17 +104,24 @@ const handlerTaskDetail = async () => {
showDrawer
.
value
=
true
}
// watch
// watch
show
const
{
show
}
=
toRefs
(
props
)
watch
(
show
,
async
(
newValue
,
oldValue
)
=>
{
showDrawer
.
value
=
newValue
as
boolean
})
// watch id
const
{
id
}
=
toRefs
(
props
)
watch
(
id
,
async
(
newVal
,
oldVal
)
=>
{
console
.
log
(
'newVal'
,
newVal
)
if
(
newVal
)
{
await
getImageDetail
(
newVal
)
}
})
//
const
emits
=
defineEmits
([
'handlerDrawerClose'
])
//
onMounted
(
async
()
=>
{
await
getImageDetail
(
1
)
})
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
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