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
XuHaoJie
3 years ago
Commit
495c211276f976b13211afd4e7a106279d35eb52
1 parent
79a38507
通用-端口侦测-端口侦测细节优化
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
6 deletions
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/table-page/index.js
hg-monitor-web-base/src/main/resources/static/vue3/src/views/portSense/index.html
hg-monitor-web-base/src/main/resources/static/vue3/src/views/portSense/index.js
hg-monitor-web-base/src/main/resources/static/vue3/src/views/portSenseConfig/index.js
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/table-page/index.js
View file @
495c211
...
...
@@ -159,7 +159,7 @@ export default {
let
prePage
=
(
val
)
=>
{
// console.log(`当前页: ${val}`)
// props.currentPage = val - 1;
currentPage
.
value
=
val
;
currentPage
.
value
=
val
-
1
;
callback
();
}
...
...
@@ -167,7 +167,7 @@ export default {
let
nextPage
=
(
val
)
=>
{
// console.log(`当前页: ${val}`)
// props.currentPage = val + 1;
currentPage
.
value
=
val
;
currentPage
.
value
=
val
+
1
;
callback
();
}
...
...
hg-monitor-web-base/src/main/resources/static/vue3/src/views/portSense/index.html
View file @
495c211
...
...
@@ -5,7 +5,7 @@
<el-row
style=
"margin-bottom: 5px;margin-top: 5px"
>
<el-col
:span=
"24"
>
<div
class=
"flex-div-start margin-top-bottom-10"
>
<el-tooltip
placement=
"right-end"
>
<el-tooltip
>
<template
#
content
>
关键字检索包含
<br
/>
资源名称
<br
/>
IP地址
</template>
<el-input
style=
"width:160px;margin-left: 10px;float: left;"
class=
"margin-right-10"
v-model=
"keyWords"
...
...
@@ -57,9 +57,12 @@
<template
#
default=
"{row,prop,column}"
>
<div
v-if=
"prop == 'resName'"
>
<!-- 资源名称点击事件 -->
<el-button
type=
"text"
size=
"small"
@
click
.
prevent=
"resourceClick(row)"
>
<span
class=
""
>
{{row.resName}}
</span>
</el-button>
<el-tooltip
placement=
"top"
>
<el-button
type=
"text"
size=
"small"
@
click
.
prevent=
"resourceClick(row)"
>
<span
class=
""
>
{{row.resName}}
</span>
</el-button>
<template
#
content
>
{{row.resName}}
</template>
</el-tooltip>
</div>
</template>
<template
#
tools=
"{scope}"
>
...
...
hg-monitor-web-base/src/main/resources/static/vue3/src/views/portSense/index.js
View file @
495c211
...
...
@@ -129,6 +129,22 @@ export default {
let
onBtnSearch
=
()
=>
{
loadTableDataList
({
page
:
1
,
limit
:
pageSize
.
value
});
}
// 切换页码
let
prePage
=
(
val
)
=>
{
// console.log(`当前页: ${val}`)
// props.currentPage = val - 1;
currentPage
.
value
=
val
;
callback
();
}
// 切换页码
let
nextPage
=
(
val
)
=>
{
// console.log(`当前页: ${val}`)
// props.currentPage = val + 1;
currentPage
.
value
=
val
;
callback
();
}
// 重置
let
onReset
=
()
=>
{
keyWords
.
value
=
''
;
...
...
hg-monitor-web-base/src/main/resources/static/vue3/src/views/portSenseConfig/index.js
View file @
495c211
...
...
@@ -202,6 +202,14 @@ export default {
}
else
{
if
([
'protocolType'
,
'portDesc'
].
indexOf
(
e
.
prop
)
===
-
1
&&
!
/^
\d
+$/
.
test
(
item
[
e
.
prop
]))
{
msg
=
e
.
label
+
'请输入数字'
;
}
else
{
if
([
'protocolType'
,
'portDesc'
].
indexOf
(
e
.
prop
)
===
-
1
&&
item
[
e
.
prop
].
length
>=
8
){
msg
=
e
.
label
+
'不能超过8位'
;
}
else
{
if
([
'protocolType'
,
'portDesc'
].
indexOf
(
e
.
prop
)
===
-
1
&&
item
[
e
.
prop
]
<=
0
){
msg
=
e
.
label
+
'只能大于零'
;
}
}
}
}
})
...
...
Please
register
or
login
to post a comment