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
袁晋鹏
3 years ago
Commit
ba403026a8b209d688d20db21c54db9859c1ba55
1 parent
6cb5d363
文档管理---在搜索框不输入任何字符点击页面展示左侧树中的搜索文件夹
输入空、空格不进行搜索,提示请输入搜索内容
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/document/index.html
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/document/index.js
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/document/index.html
View file @
ba40302
...
...
@@ -41,7 +41,7 @@
<div
style=
"width: calc(100% - 150px);padding-left: 6px;text-align: left;"
>
<el-input
:size=
"$global.elementConfig.size.input"
@
keydown
.
enter
.
native=
"searchFile"
clearable
placeholder=
"请输入关键字"
style=
"width: 220px;margin-right:10px"
v-model
=
"keyWord"
/>
style=
"width: 220px;margin-right:10px"
v-model
.
trim
=
"keyWord"
/>
<el-button
:size=
"$global.elementConfig.size.button"
@
click=
"searchFile"
>
<i
class=
"iconfont icon-sousuo"
></i>
搜索
</el-button>
...
...
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/document/index.js
View file @
ba40302
...
...
@@ -652,10 +652,10 @@ export default {
*/
let
searchFile
=
()
=>
{
let
keyWords
=
keyWord
.
value
;
// if (keyWords == '') {
// proxy.$global.showMsg("请输入关键字!", "warning")
// return;
// }
if
(
keyWords
==
''
)
{
proxy
.
$global
.
showMsg
(
"请输入关键字!"
,
"warning"
)
return
;
}
getPage
(
props
.
viewTypeId
);
}
...
...
Please
register
or
login
to post a comment