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
959ee908
authored
May 26, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【优化】修改 Image Task Card 按键类型
parent
cb7c5b74
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
src/views/ai/image/ImageTask.vue
+10
-1
src/views/ai/image/ImageTaskCard.vue
+2
-2
No files found.
src/views/ai/image/ImageTask.vue
View file @
959ee908
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<
template
>
<
template
>
<el-card
class=
"dr-task"
body-class=
"task-card"
shadow=
"never"
>
<el-card
class=
"dr-task"
body-class=
"task-card"
shadow=
"never"
>
<template
#
header
>
绘画任务
</
template
>
<template
#
header
>
绘画任务
</
template
>
<ImageTaskCard
v-for=
"image in imageList"
:key=
"image"
:image-detail=
"image"
/>
<ImageTaskCard
v-for=
"image in imageList"
:key=
"image"
:image-detail=
"image"
@
on-btn-click=
"handlerImageBtnClick"
/>
</el-card>
</el-card>
<!-- 图片 detail 抽屉 -->
<!-- 图片 detail 抽屉 -->
<ImageDetailDrawer
<ImageDetailDrawer
...
@@ -48,6 +48,15 @@ const getImageList = async () => {
...
@@ -48,6 +48,15 @@ const getImageList = async () => {
imageList
.
value
=
await
ImageApi
.
getImageList
({
pageNo
:
1
,
pageSize
:
20
})
imageList
.
value
=
await
ImageApi
.
getImageList
({
pageNo
:
1
,
pageSize
:
20
})
}
}
/**
* 图片 - btn click
*/
const
handlerImageBtnClick
=
async
(
type
,
imageDetail
:
ImageDetailVO
)
=>
{
if
(
type
===
'more'
)
{
await
handlerDrawerOpen
()
}
}
//
//
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
await
getImageList
()
await
getImageList
()
...
...
src/views/ai/image/ImageTaskCard.vue
View file @
959ee908
...
@@ -32,11 +32,11 @@ const props = defineProps({
...
@@ -32,11 +32,11 @@ const props = defineProps({
* 按钮 - 点击事件
* 按钮 - 点击事件
*/
*/
const
handlerBtnClick
=
async
(
type
,
imageDetail
:
ImageDetailVO
)
=>
{
const
handlerBtnClick
=
async
(
type
,
imageDetail
:
ImageDetailVO
)
=>
{
emits
(
'
handler
BtnClick'
,
type
,
imageDetail
)
emits
(
'
on
BtnClick'
,
type
,
imageDetail
)
}
}
// emits
// emits
const
emits
=
defineEmits
([
'
handler
BtnClick'
])
const
emits
=
defineEmits
([
'
on
BtnClick'
])
</
script
>
</
script
>
...
...
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