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
‘superliu’
3 years ago
Commit
919db08cffb3894faf494b510f66b6c2e912371e
1 parent
be348d03
巡检选择指令-默认参数且不会初始化修改
(cherry picked from commit
bd516d29
)
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
9 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/src/controller/dirctiveIndex.js
View file @
919db08
...
...
@@ -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
=
{};
...
...
@@ -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,27 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common',
//刷新表格
function
reloadTable
()
{
var
formData
=
form
.
val
(
'dirctive-form'
);
dirctiveTable
.
reload
({
page
:
{
curr
:
1
}
,
where
:
{
access_token
:
accessToken
,
var
wheres
=
{};
if
(
xjType
==
'xjType'
){
wheres
=
{
access_token
:
accessToken
,
dirctiveName
:
$
(
"#dirctiveSearchForm"
).
find
(
"input[name='dirctiveName']"
).
val
(),
collScope
:
protocol
,
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 @
919db08
...
...
@@ -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 @
919db08
...
...
@@ -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
>
...
...
Please
register
or
login
to post a comment