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
Plain Diff
Browse Files
Authored by
xwx
3 years ago
Commit
e3bdf29d053f82cb7a628802d88a35a76e94aecf
2 parents
0fc8cd2e
d3677dfe
Merge branch 'master' of
http://113.200.75.45:82/monitor_v3/hg-monitor-web
into master-v32-xwx
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
11 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/dirctiveIndex.js
hg-monitor-web-base/src/main/resources/static/src/controller/inspectiontaskEdit.js
hg-monitor-web-base/src/main/resources/static/src/views/inspectiontask/index.html
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/dateRange/indexInflux.js
hg-monitor-web-zj/src/main/resources/static/src/controller/arms.js
hg-monitor-web-base/src/main/resources/static/src/controller/dirctiveIndex.js
View file @
e3bdf29
...
...
@@ -15,6 +15,7 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common',
var
writeBackDirctiveList
=
(
data
&&
data
.
writeBackDirctiveList
)
?
data
.
writeBackDirctiveList
:
[];
var
systemType
=
(
data
&&
data
.
systemType
)
?
data
.
systemType
:
''
;
var
protocol
=
(
data
&&
data
.
protocol
)
?
data
.
protocol
:
''
;
var
xjType
=
(
data
&&
data
.
xjType
)
?
data
.
xjType
:
''
;
var
accessToken
=
sessions
.
getToken
()[
'access_token'
];
var
loginName
=
localStorage
.
getItem
(
"lgn"
);
var
restoreVersionTable
=
{};
...
...
@@ -107,7 +108,7 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common',
,
where
:
{
access_token
:
accessToken
,
dirctiveName
:
$
(
"#dirctiveSearchForm"
).
find
(
"input[name='dirctiveName']"
).
val
(),
collScope
:
$
(
"#dirctiveSearchForm"
).
find
(
"input[name='dirctiveProtocol']"
).
val
(),
collScope
:
(
data
&&
data
.
protocol
)
?
data
.
protocol
:
$
(
"#dirctiveSearchForm"
).
find
(
"input[name='dirctiveProtocol']"
).
val
(),
systemType
:
systemType
,
syncFlag
:
$
(
"#dirctiveSearchForm"
).
find
(
"select[name='syncFlag']"
).
val
()
}
...
...
@@ -417,6 +418,7 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common',
}).
done
(
function
(
res
)
{
xmSelect
.
render
({
el
:
'#dir_dirctiveProtocol'
,
initValue
:
protocol
.
split
(
','
)
,
filterable
:
true
,
tips
:
'=采集协议='
,
name
:
'dirctiveProtocol'
...
...
@@ -545,17 +547,29 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common',
//刷新表格
function
reloadTable
()
{
var
formData
=
form
.
val
(
'dirctive-form'
);
dirctiveTable
.
reload
({
page
:
{
curr
:
1
}
,
where
:
{
var
wheres
=
{};
if
(
xjType
==
'xjType'
){
wheres
=
{
access_token
:
accessToken
,
dirctiveName
:
$
(
"#dirctiveSearchForm"
).
find
(
"input[name='dirctiveName']"
).
val
(),
collScope
:
$
(
"#dirctiveSearchForm"
).
find
(
"input[name='dirctiveProtocol']"
).
val
(),
systemType
:
2
,
syncFlag
:
formData
.
syncFlag
}
}
else
{
wheres
=
{
access_token
:
accessToken
,
dirctiveName
:
$
(
"#dirctiveSearchForm"
).
find
(
"input[name='dirctiveName']"
).
val
(),
collScope
:
$
(
"#dirctiveSearchForm"
).
find
(
"input[name='dirctiveProtocol']"
).
val
(),
systemType
:
formData
.
systemType
,
syncFlag
:
formData
.
syncFlag
}
}
dirctiveTable
.
reload
({
page
:
{
curr
:
1
}
,
where
:
wheres
});
}
});
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/inspectiontaskEdit.js
View file @
e3bdf29
...
...
@@ -489,10 +489,12 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'setStep'
var
$that
=
$
(
this
);
var
$parent
=
$
(
$that
.
parents
(
".proto-tags-box"
))
var
protocol
=
$that
.
data
(
"protocol"
);
var
resType
=
$that
.
data
(
"restype"
);
var
params
=
{
writeBackDirctiveList
:
$
.
map
(
$parent
.
find
(
'.res-tags'
),
element
=>
$
(
element
).
data
(
'dirctiveid'
)),
systemType
:
'2'
,
protocol
:
protocol
protocol
:
protocol
,
xjType
:
'xjType'
}
$
(
'[lay-id="/baseconfig/dirctive/index"]'
).
find
(
'.layui-tab-close'
).
trigger
(
'click'
);
layer
.
open
({
...
...
hg-monitor-web-base/src/main/resources/static/src/views/inspectiontask/index.html
View file @
e3bdf29
...
...
@@ -84,7 +84,7 @@
<
/div
>
<
div
class
=
"layui-row"
style
=
"padding: 10px 0"
>
<
div
class
=
"res-tags-box"
>
<
a
class
=
"inspection-taskaddres-btn"
data
-
restype
=
"{{resType}}"
data
-
protocol
=
"{{protocol}}"
><
i
class
=
"layui-icon layui-icon-add-1"
><
/i>新增资源
</
a
>
<
a
class
=
"inspection-taskaddres-btn"
data
-
restype
=
"{{resType}}"
data
-
protocol
=
"{{protocol}}"
><
i
class
=
"layui-icon layui-icon-add-1"
><
/i>新增资源</
a
>
<
div
class
=
"div-res-tags"
>
{{
#
layui
.
each
(
e
,
function
(
j
,
k
){
}}
<
label
class
=
"res-tags"
data
-
resid
=
"{{k.resId}}"
>
{{
k
.
resName
}}
<
a
class
=
"close-icon"
><
i
class
=
"layui-icon layui-icon-close"
><
/i></
a
><
/label
>
...
...
@@ -94,7 +94,7 @@
<
/div
>
<
div
class
=
"layui-row"
style
=
"padding: 10px 0"
>
<
div
class
=
"proto-tags-box"
>
<
a
class
=
"inspection-taskaddprotocol-btn"
data
-
protocol
=
"{{protocol}}"
><
i
class
=
"layui-icon layui-icon-add-1"
><
/i>新增指令
</
a
>
<
a
class
=
"inspection-taskaddprotocol-btn"
data
-
protocol
=
"{{protocol}}"
><
i
class
=
"layui-icon layui-icon-add-1"
><
/i>新增指令
</
a
>
<
div
class
=
"div-proto-tags"
>
<
/div
>
...
...
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/dateRange/indexInflux.js
View file @
e3bdf29
...
...
@@ -51,6 +51,14 @@ export default {
},
},
{
text
:
'最近6小时'
,
value
:
()
=>
{
const
end
=
new
Date
();
const
start
=
formatDate
(
6
,
'h'
);
return
[
start
,
end
]
},
},
{
text
:
'最近1天'
,
value
:
()
=>
{
const
end
=
new
Date
();
...
...
@@ -238,7 +246,7 @@ export default {
const
oneDay
=
()
=>
{
const
end
=
getDateTime
(
new
Date
());
const
start
=
formatDate
(
1
,
'd
'
);
const
start
=
formatDate
(
6
,
'h
'
);
dateValue
.
value
=
[
start
,
end
]
changeDate
(
dateValue
.
value
)
}
...
...
hg-monitor-web-zj/src/main/resources/static/src/controller/arms.js
View file @
e3bdf29
...
...
@@ -50,7 +50,7 @@ layui.define(['commonDetail','common', 'admin'], function (exports) {
dataRenderingBase
(
"arms_time_lineChart"
,
resId
,
"KPI678F9FC3"
,
"响应时间/每分钟"
,
null
);
// Start Wang 2022/2/24 9:29 解决:arms采集结果展示(详情页面开发)
// 节点详情
commonDetail
.
renderTable
(
"arms_node_detail"
,
false
,
resId
,
"KPI452C0F78,KPI5769F327,KPI8B2CCCCF,KPI678F9FC3,KPI649E288B,KPI8DC835B1,KPI4D6871EA,KPICC063E40,KPIFC03301B"
,
'节点详情'
,
`
detail
`
,
'KPIFC03301B'
);
commonDetail
.
renderTable
(
"arms_node_detail"
,
false
,
resId
,
"KPI452C0F78,KPI5769F327,KPI8B2CCCCF,KPI678F9FC3,KPI649E288B,KPI8DC835B1,KPI4D6871EA,KPICC063E40,KPIFC03301B"
,
'节点详情'
,
`
detail
`
,
'KPIFC03301B'
,
'desc'
);
// End Wang 2022/2/24 9:30
//活动告警
commonDetail
.
renderActiveAlarms
(
"arms_active_alram"
,
resId
);
...
...
Please
register
or
login
to post a comment