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
977f53b8
Commit
977f53b8
authored
Nov 13, 2024
by
shirlyn.guo
👌🏻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 搜索框空内容加载全部数据
parent
27e291f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
24 deletions
+12
-24
applications-square.vue
src/views/applications-square/applications-square.vue
+6
-12
personal-app.vue
src/views/personal-space/personal-app/personal-app.vue
+6
-12
No files found.
src/views/applications-square/applications-square.vue
View file @
977f53b8
...
...
@@ -155,16 +155,11 @@ function handleAddAgentApplications() {
function
handleEnterKeypress
(
event
:
KeyboardEvent
)
{
if
(
event
.
code
===
'Enter'
&&
!
event
.
shiftKey
)
{
event
.
preventDefault
()
handleGetAgentApplicationList
(
true
,
true
,
true
)
}
}
function
handleSearchGetApplicationList
(
clear
=
false
)
{
if
(
clear
)
{
searchQuery
.
value
=
''
handleGetAgentApplicationList
(
true
,
true
)
}
else
{
handleGetAgentApplicationList
(
true
,
true
,
true
)
if
(
searchQuery
.
value
!==
''
)
{
handleGetAgentApplicationList
(
true
,
true
,
true
)
}
else
{
handleGetAgentApplicationList
(
true
,
true
)
}
}
}
</
script
>
...
...
@@ -185,11 +180,10 @@ function handleSearchGetApplicationList(clear = false) {
:placeholder=
"t('common_module.search')"
class=
"search-input rounded-[26px]! text-[16px]! leading-[32px]! border-[#9ea3ff]! border-[1px] py-[6px] shadow-[0_4px_10px_0px_rgba(103,103,103,.1)]"
clearable
:on-clear=
"() => handleSearchGetApplicationList(true)"
@
keyup
.
enter=
"handleEnterKeypress"
>
<template
#
prefix
>
<div
@
click=
"() => handle
SearchGetApplicationList(fals
e)"
>
<div
@
click=
"() => handle
GetAgentApplicationList(true, true, tru
e)"
>
<img
src=
"@/assets/images/search.png"
width=
"14"
height=
"14"
class=
"mr-[5px] cursor-pointer"
/>
</div>
</
template
>
...
...
src/views/personal-space/personal-app/personal-app.vue
View file @
977f53b8
...
...
@@ -189,19 +189,14 @@ function handleSelectAddType() {
router
.
push
({
name
:
'PersonalAppSetting'
})
}
function
handleSearchGetApplicationList
(
clear
=
false
)
{
if
(
clear
)
{
agentSearchInputValue
.
value
=
''
getApplicationList
()
}
else
{
getApplicationList
(
false
,
true
)
}
}
function
handleEnterKeypress
(
event
:
KeyboardEvent
)
{
if
(
event
.
code
===
'Enter'
&&
!
event
.
shiftKey
)
{
event
.
preventDefault
()
getApplicationList
(
false
,
true
)
if
(
agentSearchInputValue
.
value
!==
''
)
{
getApplicationList
(
false
,
true
)
}
else
{
getApplicationList
()
}
}
}
...
...
@@ -236,7 +231,6 @@ const handleCardContentScrollDebounce = debounce(
:placeholder=
"t('common_module.search')"
class=
"w-[256px]! h-[32px]!"
clearable
:on-clear=
"() => handleSearchGetApplicationList(true)"
@
keypress=
"handleEnterKeypress"
>
<template
#
suffix
>
...
...
@@ -246,7 +240,7 @@ const handleCardContentScrollDebounce = debounce(
fill=
"#999"
:stroke-width=
"3"
class=
"ml-[10px] cursor-pointer text-base"
@
click=
"() =>
handleSearchGetApplicationList(fals
e)"
@
click=
"() =>
getApplicationList(false, tru
e)"
/>
</
template
>
</NInput>
...
...
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