Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
4304ccaf
Commit
4304ccaf
authored
Oct 28, 2024
by
shirlyn.guo
🤡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 应用布局优化
parent
e9a133f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
17 deletions
+40
-17
personal-app.vue
src/views/personal-space/personal-app/personal-app.vue
+40
-17
No files found.
src/views/personal-space/personal-app/personal-app.vue
View file @
4304ccaf
...
@@ -52,7 +52,7 @@ const publishStatusOptions = [
...
@@ -52,7 +52,7 @@ const publishStatusOptions = [
const
pagingInfo
=
ref
<
PaginationInfo
>
({
const
pagingInfo
=
ref
<
PaginationInfo
>
({
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
1
2
,
pageSize
:
1
6
,
totalPages
:
0
,
totalPages
:
0
,
totalRows
:
0
,
totalRows
:
0
,
})
})
...
@@ -196,7 +196,7 @@ function handleAnalysisPersonalApp(personalApp: PersonalAppConfigState) {
...
@@ -196,7 +196,7 @@ function handleAnalysisPersonalApp(personalApp: PersonalAppConfigState) {
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"h-full"
>
<div
class=
"h-full
min-w-[900px]
"
>
<div
class=
"mb-[13px] flex justify-between"
>
<div
class=
"mb-[13px] flex justify-between"
>
<n-space
vertical
class=
"w-[118px]"
>
<n-space
vertical
class=
"w-[118px]"
>
<n-select
<n-select
...
@@ -224,25 +224,28 @@ function handleAnalysisPersonalApp(personalApp: PersonalAppConfigState) {
...
@@ -224,25 +224,28 @@ function handleAnalysisPersonalApp(personalApp: PersonalAppConfigState) {
</NInput>
</NInput>
</div>
</div>
<div
ref=
"cardContentWrapRef"
class=
"h-full
max-h-[650px]
overflow-y-auto pb-[16px]"
style=
"scrollbar-width: none"
>
<div
ref=
"cardContentWrapRef"
class=
"h-full
w-full
overflow-y-auto pb-[16px]"
style=
"scrollbar-width: none"
>
<div
class=
"flex justify-center"
>
<div
class=
"flex justify-center"
>
<n-spin
v-show=
"agentAppListLoading"
size=
"large"
/>
<n-spin
v-show=
"agentAppListLoading"
size=
"large"
/>
</div>
</div>
<div
v-show=
"!agentAppListLoading"
>
<div
v-show=
"!agentAppListLoading"
>
<div
v-if=
"agentAppList.length"
class=
"flex flex-wrap justify-start"
>
<n-grid
v-if=
"agentAppList.length"
cols=
"l:3 xl:4"
responsive=
"screen"
>
<div
v-for=
"item in agentAppList"
:key=
"item.baseInfo.agentId"
class=
"mb-[18px] mr-[15px]"
>
<n-grid-item
v-for=
"item in agentAppList"
:key=
"item.baseInfo.agentId"
class=
"mb-[20px] mr-[15px]"
>
<n-card
class=
"rounded-[10px]! w-[381px] shadow-[0_4px_10px_0px_rgba(103,103,103,.3)]"
>
<n-card
class=
"rounded-[10px]! max-w-[380px] shadow-[0_4px_10px_0px_rgba(103,103,103,.3)]"
>
<div
class=
"mt-[6px] flex cursor-pointer"
@
click=
"handleEditPersonalApp(item.baseInfo.agentId)"
>
<div
<div
class=
"mr-[22px] text-[14px]"
>
class=
"mt-[6px] flex cursor-pointer justify-between"
@
click=
"handleEditPersonalApp(item.baseInfo.agentId)"
>
<div
class=
"mr-[20px] text-[14px]"
>
<n-popover
trigger=
"hover"
>
<n-popover
trigger=
"hover"
>
<
template
#
trigger
>
<
template
#
trigger
>
<div
class=
"h-[23px]
w-[205
px] cursor-pointer truncate font-medium text-[#333333]"
>
<div
class=
"h-[23px]
max-w-[140
px] cursor-pointer truncate font-medium text-[#333333]"
>
{{
item
.
baseInfo
.
agentTitle
||
'--'
}}
{{
item
.
baseInfo
.
agentTitle
||
'--'
}}
</div>
</div>
</
template
>
</
template
>
<span>
{{ item.baseInfo.agentTitle || '--' }}
</span>
<span>
{{ item.baseInfo.agentTitle || '--' }}
</span>
</n-popover>
</n-popover>
<div
class=
"my-[18px] h-[44px]
w-[196
px] text-[#999999]"
>
<div
class=
"my-[18px] h-[44px]
max-w-[180
px] text-[#999999]"
>
<n-ellipsis
:line-clamp=
"2"
>
<n-ellipsis
:line-clamp=
"2"
>
{{ item.baseInfo.agentDesc }}
{{ item.baseInfo.agentDesc }}
</n-ellipsis>
</n-ellipsis>
...
@@ -260,11 +263,13 @@ function handleAnalysisPersonalApp(personalApp: PersonalAppConfigState) {
...
@@ -260,11 +263,13 @@ function handleAnalysisPersonalApp(personalApp: PersonalAppConfigState) {
}}
</n-button
}}
</n-button
>
>
</div>
</div>
<div><img
:src=
"item.baseInfo.agentAvatar"
width=
"101"
height=
"99"
/></div>
<div
class=
"h-[99px] w-[101px]"
>
<img
:src=
"item.baseInfo.agentAvatar"
class=
"h-[99px] min-w-[101px]"
/>
</div>
</div>
</div>
<
template
#
footer
>
<
template
#
footer
>
<div
class=
"flex
h-[25px]
justify-between"
>
<div
class=
"flex justify-between"
>
<div
class=
"
line-height-[25px] text-[14
px] text-[#999999]"
>
<div
class=
"
text-[12
px] text-[#999999]"
>
{{
t
(
'personal_space_module.agent_module.agent_list_module.modified_time'
)
}}
{{
t
(
'personal_space_module.agent_module.agent_list_module.modified_time'
)
}}
{{
formatDateTime
(
item
.
modifiedTime
)
}}
{{
formatDateTime
(
item
.
modifiedTime
)
}}
</div>
</div>
...
@@ -272,7 +277,7 @@ function handleAnalysisPersonalApp(personalApp: PersonalAppConfigState) {
...
@@ -272,7 +277,7 @@ function handleAnalysisPersonalApp(personalApp: PersonalAppConfigState) {
<Star
<Star
v-show=
"item.baseInfo.agentPublishStatus !== 'draft'"
v-show=
"item.baseInfo.agentPublishStatus !== 'draft'"
theme=
"two-tone"
theme=
"two-tone"
size=
"
24
"
size=
"
18
"
:fill=
"item.isCollect === 'Y' ? ['#ffc06d', '#ffc06d'] : ['#333', '#fff']"
:fill=
"item.isCollect === 'Y' ? ['#ffc06d', '#ffc06d'] : ['#333', '#fff']"
:stroke-width=
"2"
:stroke-width=
"2"
class=
"cursor-pointer transition-all delay-150 duration-300 ease-in-out"
class=
"cursor-pointer transition-all delay-150 duration-300 ease-in-out"
...
@@ -287,7 +292,7 @@ function handleAnalysisPersonalApp(personalApp: PersonalAppConfigState) {
...
@@ -287,7 +292,7 @@ function handleAnalysisPersonalApp(personalApp: PersonalAppConfigState) {
<template
#
trigger
>
<template
#
trigger
>
<More
<More
theme=
"outline"
theme=
"outline"
size=
"
24
"
size=
"
18
"
fill=
"#333"
fill=
"#333"
:stroke-width=
"2"
:stroke-width=
"2"
class=
"ml-[12px] cursor-pointer"
class=
"ml-[12px] cursor-pointer"
...
@@ -342,11 +347,11 @@ function handleAnalysisPersonalApp(personalApp: PersonalAppConfigState) {
...
@@ -342,11 +347,11 @@ function handleAnalysisPersonalApp(personalApp: PersonalAppConfigState) {
</div>
</div>
</template>
</template>
</n-card>
</n-card>
</
div
>
</
n-grid-item
>
<div
v-for=
"item in 4"
v-show=
"agentAppListBottomLoadingMore"
:key=
"item"
class=
"w-[380px]"
>
<div
v-for=
"item in 4"
v-show=
"agentAppListBottomLoadingMore"
:key=
"item"
class=
"w-[380px]"
>
<n-skeleton
text
:repeat=
"12"
/>
<n-skeleton
text
:repeat=
"12"
/>
</div>
</div>
</
div
>
</
n-grid
>
<div
v-else
>
<div
v-else
>
<div
class=
"flex h-[650px] w-[full] items-center justify-center"
>
<div
class=
"flex h-[650px] w-[full] items-center justify-center"
>
<div
class=
"flex flex-col items-center justify-center"
>
<div
class=
"flex flex-col items-center justify-center"
>
...
@@ -385,3 +390,21 @@ function handleAnalysisPersonalApp(personalApp: PersonalAppConfigState) {
...
@@ -385,3 +390,21 @@ function handleAnalysisPersonalApp(personalApp: PersonalAppConfigState) {
/>
/>
</div>
</div>
</template>
</template>
<
style
lang=
"scss"
scoped
>
:deep
(
.n-card
)
{
>
.n-card__content
{
&
:first-child
{
padding-top
:
13px
!
important
;
padding-bottom
:
19px
!
important
;
}
}
>
.n-card__footer
{
&
:first-child
{
padding-top
:
13px
!
important
;
padding-bottom
:
19px
!
important
;
}
}
}
</
style
>
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