Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
IT-monitor
Project
Project
Details
Activity
Releases
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
张伯涛
IT-monitor
Commits
e844981e
Commit
e844981e
authored
May 19, 2022
by
Asjoker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 综合监控-自动发现 & 日志监控 修复
parent
b42290b2
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
412 additions
and
13 deletions
+412
-13
autoSearch.vue
src/views/IntegratedMonitor/autoSearch.vue
+22
-7
snmpTrapJournal.vue
src/views/IntegratedMonitor/logMonitor/snmpTrapJournal.vue
+5
-3
sylogJournal.vue
src/views/IntegratedMonitor/logMonitor/sylogJournal.vue
+5
-3
realTimeReport.vue
...ews/IntegratedMonitor/reportStatistics/realTimeReport.vue
+380
-0
No files found.
src/views/IntegratedMonitor/autoSearch.vue
View file @
e844981e
...
...
@@ -98,8 +98,8 @@
</el-dialog>
<el-dialog
:visible
.
sync=
"PasswordOpen"
:title=
"passwordTitle"
width=
"600px"
>
<el-form
label-width=
"1
0
0px"
>
<div
style=
"padding-right: 80px"
>
<el-form
label-width=
"1
1
0px"
>
<div
v-if=
"dialogFlag !== 'snmp'"
style=
"padding-right: 80px"
>
<el-form-item
label=
"用户名"
>
<el-input
value=
"root"
...
...
@@ -112,7 +112,7 @@
/>
</el-form-item>
</div>
<div
v-for=
"item in addPassword"
:key=
"item.id"
>
<div
v-
if=
"dialogFlag !== 'snmp'"
v-
for=
"item in addPassword"
:key=
"item.id"
>
<div
style=
"width: calc(100% - 80px);display: inline-block"
>
<el-form-item
label=
"用户名"
>
<el-input
/>
...
...
@@ -125,7 +125,20 @@
</div>
<el-button
type=
"text"
@
click=
"deleteAccount(item.id)"
>
删除
</el-button>
</div>
<el-button
type=
"text"
@
click=
"addAccount"
>
添加一组用户名和密码
</el-button>
<el-button
v-if=
"dialogFlag !== 'snmp'"
type=
"text"
@
click=
"addAccount"
>
添加一组用户名和密码
</el-button>
<el-form-item
v-if=
"dialogFlag === 'oracle'"
label=
"SID"
>
<el-input
value=
"ORCLDB"
/>
</el-form-item>
<el-form-item
v-if=
"dialogFlag === 'snmp'"
label=
"可读共同体名称"
>
<el-input
type=
"password"
value=
"ORCLDB"
/>
</el-form-item>
<el-form-item
v-if=
"dialogFlag === 'snmp'"
label=
"版本"
>
<el-select
value=
"V2"
>
<el-option
value=
"V1"
></el-option>
<el-option
value=
"V2"
></el-option>
<el-option
value=
"V3"
></el-option>
</el-select>
</el-form-item>
</el-form>
</el-dialog>
...
...
@@ -151,6 +164,7 @@ export default {
open
:
false
,
PasswordOpen
:
false
,
passwordTitle
:
''
,
dialogFlag
:
'mysql'
,
addPassword
:
[],
// 表单参数
form
:
{},
...
...
@@ -229,17 +243,17 @@ export default {
logContent
:
'1'
},
{
software
:
'
agent
'
,
software
:
'
oracle
'
,
createTime
:
'1521'
,
logContent
:
'1'
},
{
software
:
'
agent
'
,
software
:
'
snmp
'
,
createTime
:
'161'
,
logContent
:
'1'
},
{
software
:
'
agent
'
,
software
:
'
ssh
'
,
createTime
:
'22'
,
logContent
:
'1'
}
...
...
@@ -290,6 +304,7 @@ export default {
changeSenior
(
row
)
{
this
.
PasswordOpen
=
true
this
.
passwordTitle
=
row
.
software
+
'--高级'
this
.
dialogFlag
=
row
.
software
},
addAccount
()
{
this
.
addPassword
.
push
({
...
...
src/views/IntegratedMonitor/logMonitor/snmpTrapJournal.vue
View file @
e844981e
...
...
@@ -45,7 +45,7 @@
<el-form-item>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleQuery"
>
查询
</el-button>
</el-form-item>
<el-button
id=
"fullScreen"
style=
"float: right;margin: 0 10px"
>
全屏
</el-button>
<el-button
id=
"fullScreen"
style=
"float: right;margin: 0 10px"
>
{{
isScreen
?
'退出全屏'
:
'全屏'
}}
</el-button>
</el-form>
<div
class=
"placeholder"
/>
<div
style=
"padding: 10px"
>
...
...
@@ -133,7 +133,7 @@ export default {
// 表单参数
form
:
{},
// 表单参数
isScreen
:
screenfull
.
isEnabled
,
isScreen
:
false
,
// 查询参数
queryParams
:
{
page
:
1
,
...
...
@@ -223,8 +223,10 @@ export default {
handleExpand
()
{
const
element
=
document
.
getElementById
(
'sylog-container'
)
// 指定全屏区域元素
document
.
getElementById
(
'fullScreen'
).
addEventListener
(
'click'
,
()
=>
{
if
(
screenfull
.
isEnabled
)
{
if
(
screenfull
.
isEnabled
&&
this
.
isScreen
===
false
)
{
screenfull
.
request
(
element
)
}
else
{
screenfull
.
exit
()
}
})
// 实现模块全屏
},
...
...
src/views/IntegratedMonitor/logMonitor/sylogJournal.vue
View file @
e844981e
...
...
@@ -45,7 +45,7 @@
<el-form-item>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleQuery"
>
查询
</el-button>
</el-form-item>
<el-button
id=
"fullScreen"
style=
"float: right;margin: 0 10px"
>
全屏
</el-button>
<el-button
id=
"fullScreen"
style=
"float: right;margin: 0 10px"
>
{{
isScreen
?
'退出全屏'
:
'全屏'
}}
</el-button>
</el-form>
<div
class=
"placeholder"
/>
<div
style=
"padding: 10px"
>
...
...
@@ -133,7 +133,7 @@ export default {
// 表单参数
form
:
{},
// 表单参数
isScreen
:
screenfull
.
isEnabled
,
isScreen
:
false
,
// 查询参数
queryParams
:
{
page
:
1
,
...
...
@@ -223,8 +223,10 @@ export default {
handleExpand
()
{
const
element
=
document
.
getElementById
(
'sylog-container'
)
// 指定全屏区域元素
document
.
getElementById
(
'fullScreen'
).
addEventListener
(
'click'
,
()
=>
{
if
(
screenfull
.
isEnabled
)
{
if
(
screenfull
.
isEnabled
&&
this
.
isScreen
===
false
)
{
screenfull
.
request
(
element
)
}
else
{
screenfull
.
exit
()
}
})
// 实现模块全屏
},
...
...
src/views/IntegratedMonitor/reportStatistics/realTimeReport.vue
0 → 100644
View file @
e844981e
This diff is collapsed.
Click to expand it.
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