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
张凯
2 years ago
Commit
d7ec6aca5d0af652c8b41fa3b192a5f395e6cbd5
1 parent
7debfec4
chore:资源管理增加cmdb同步资源判定
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/resManageAdd.js
hg-monitor-web-base/src/main/resources/static/src/controller/resManageAdd.js
View file @
d7ec6ac
...
...
@@ -217,11 +217,21 @@ layui.define(['table', 'form', 'laydate', 'common', 'sessions', 'laydate', 'admi
});
var
resTypeTree
=
treeTable
.
pidToChildren
(
resTypeList
,
"value"
,
"parentId"
);
var
initValue
=
[];
//当从cmdb同步数据,且没有配置采集协议是,可以调整资源类型 joke modify 20230316
if
(
bean
.
recordWay
==
'cmdb_sync'
&&
!
bean
.
collProtocol
){
$
(
'#slt-res-manage-add-restype'
).
parents
(
'.layui-form-item'
).
removeClass
(
'hide'
);
//如果有资源类型,则回填 joke add 20230317
if
(
bean
.
resType
)
{
initValue
=
[
bean
.
resType
];
}
}
else
{
if
(
bean
.
resType
)
{
initValue
=
[
bean
.
resType
];
}
else
{
//当从资产同步的资源,可以选择资源类型
$
(
'#slt-res-manage-add-restype'
).
parents
(
'.layui-form-item'
).
removeClass
(
'hide'
);
}
}
xmSelect
.
render
({
el
:
'#slt-res-manage-add-restype'
,
name
:
"resType"
,
...
...
Please
register
or
login
to post a comment