Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xwx
3 years ago
Commit
f259322cb4c876be7c712e96536d44a8809bcc00
1 parent
226367ee
【911】我的收藏夹导航栏增加搜索按钮
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/favorites.js
hg-monitor-web-base/src/main/resources/static/src/views/favorites/index.html
hg-monitor-web-base/src/main/resources/static/src/controller/favorites.js
View file @
f259322
...
...
@@ -27,6 +27,9 @@ layui.define(['table', 'admin', 'form', 'common', 'sessions', 'reslist', 'common
reloadFariteResList
();
}
});
$
(
'#keyword'
).
unbind
(
'click'
).
on
(
'click'
,
function
(){
reloadFariteResList
();
})
//回车搜索收藏夹
$
(
'#fav_keyword_id'
).
keydown
(
function
(
e
)
{
if
(
e
.
keyCode
===
13
)
{
...
...
@@ -34,6 +37,9 @@ layui.define(['table', 'admin', 'form', 'common', 'sessions', 'reslist', 'common
loadFavoriteList
(
parentId
)
}
});
$
(
'#fav_keyword'
).
unbind
(
'click'
).
on
(
'click'
,
function
(){
loadFavoriteList
();
})
//到达首页
$
(
"#tofavorite_home"
).
on
(
"click"
,
function
()
{
$
(
".favorite-cards"
).
show
();
...
...
@@ -467,4 +473,4 @@ layui.define(['table', 'admin', 'form', 'common', 'sessions', 'reslist', 'common
});
}
});
});
\ No newline at end of file
});
...
...
hg-monitor-web-base/src/main/resources/static/src/views/favorites/index.html
View file @
f259322
...
...
@@ -17,6 +17,12 @@
<input
type=
"text"
id=
"fav_keyword_id"
name=
"fav_keyword_id"
lay-tips=
"关键字检索包含: </br>收藏夹名称</br>资源名称"
placeholder=
"关键字,回车搜索"
autocomplete=
"off"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-inline favorite-cards"
>
<div
class=
"layui-input-inline layui-input-inline--long"
style=
"margin-top: -4px;"
>
<button
type=
"button"
id=
"fav_keyword"
class=
"layui-btn layui-btn-normal layui-btn-normal"
>
搜索
</button>
</div>
</div>
<div
class=
"layui-inline favorite-reslist"
>
<div
class=
"layui-input-inline layui-input-inline--long"
>
<input
type=
"text"
id=
"keyword_id"
name=
"keyword_id"
placeholder=
"关键字,回车搜索"
autocomplete=
"off"
class=
"layui-input"
>
...
...
@@ -46,6 +52,12 @@
</select>
</div>
</div>
<div
class=
"layui-inline favorite-reslist"
>
<div
class=
"layui-input-inline layui-input-inline--long"
style=
"margin-top: -4px;"
>
<button
type=
"button"
id=
"keyword"
class=
"layui-btn layui-btn-normal layui-btn-normal"
>
搜索
</button>
</div>
</div>
</div>
</form>
<div
class=
"favorites-header-btngroup"
>
...
...
@@ -124,4 +136,4 @@
layui
.
use
(
'favorites'
,
function
(
fn
)
{
fn
();
});
</script>
\ No newline at end of file
</script>
...
...
Please
register
or
login
to post a comment