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
dc31aeb2
authored
Jun 18, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【优化】处理 image card 抽屉不显示问题
parent
19c752e8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
src/views/ai/image/ImageDetailDrawer.vue
+2
-9
src/views/ai/image/ImageTask.vue
+1
-1
No files found.
src/views/ai/image/ImageDetailDrawer.vue
View file @
dc31aeb2
...
@@ -47,20 +47,13 @@
...
@@ -47,20 +47,13 @@
{{
imageDetail
.
picUrl
}}
{{
imageDetail
.
picUrl
}}
</div>
</div>
</div>
</div>
<!-- 生成地址 TODO @fan:这个字段我删除了,要不干掉? -->
<div
class=
"item"
>
<div
class=
"tip"
>
生成地址
</div>
<div
class=
"body"
>
{{
imageDetail
.
originalPicUrl
}}
</div>
</div>
<!-- 风格 -->
<!-- 风格 -->
<div
class=
"item"
>
<div
class=
"item"
v-if=
"imageDetail?.options?.style"
>
<div
class=
"tip"
>
风格
</div>
<div
class=
"tip"
>
风格
</div>
<div
class=
"body"
>
<div
class=
"body"
>
<!-- TODO @fan:貌似需要把 imageStyleList 搞到 api/image/index.ts 枚举起来? -->
<!-- TODO @fan:貌似需要把 imageStyleList 搞到 api/image/index.ts 枚举起来? -->
<!-- TODO @fan:这里的展示,可能需要按照平台做区分 -->
<!-- TODO @fan:这里的展示,可能需要按照平台做区分 -->
{{
imageDetail
.
options
.
style
}}
{{
imageDetail
?.
options
?
.
style
}}
</div>
</div>
</div>
</div>
</el-drawer>
</el-drawer>
...
...
src/views/ai/image/ImageTask.vue
View file @
dc31aeb2
...
@@ -70,6 +70,7 @@ const getImageList = async () => {
...
@@ -70,6 +70,7 @@ const getImageList = async () => {
const
handlerImageBtnClick
=
async
(
type
,
imageDetail
:
ImageDetailVO
)
=>
{
const
handlerImageBtnClick
=
async
(
type
,
imageDetail
:
ImageDetailVO
)
=>
{
// 获取 image detail id
// 获取 image detail id
showImageDetailId
.
value
=
imageDetail
.
id
showImageDetailId
.
value
=
imageDetail
.
id
console
.
log
(
'type'
,
imageDetail
.
id
)
// 处理不用 btn
// 处理不用 btn
if
(
type
===
'more'
)
{
if
(
type
===
'more'
)
{
await
handlerDrawerOpen
()
await
handlerDrawerOpen
()
...
@@ -119,7 +120,6 @@ const downloadImage = async (imageUrl) => {
...
@@ -119,7 +120,6 @@ const downloadImage = async (imageUrl) => {
const
handleTabsScroll
=
async
()
=>
{
const
handleTabsScroll
=
async
()
=>
{
if
(
imageTaskRef
.
value
)
{
if
(
imageTaskRef
.
value
)
{
const
{
scrollTop
,
scrollHeight
,
clientHeight
}
=
imageTaskRef
.
value
;
const
{
scrollTop
,
scrollHeight
,
clientHeight
}
=
imageTaskRef
.
value
;
console
.
log
(
'scrollTop'
,
scrollTop
,
clientHeight
,
scrollHeight
)
if
(
scrollTop
+
clientHeight
>=
scrollHeight
-
20
&&
!
imageTaskLoading
.
value
)
{
if
(
scrollTop
+
clientHeight
>=
scrollHeight
-
20
&&
!
imageTaskLoading
.
value
)
{
console
.
log
(
'分页'
)
console
.
log
(
'分页'
)
pageNo
.
value
=
pageNo
.
value
+
1
pageNo
.
value
=
pageNo
.
value
+
1
...
...
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