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
146e8ef2a30e88f0e4664c4926b53b6c326aa968
1 parent
fa2215c7
fix:资源管理编辑页面,如果是cmdb过来且配置了资源类型的,需要回填数据,禅道#1428
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 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 @
146e8ef
...
...
@@ -220,6 +220,10 @@ layui.define(['table', 'form', 'laydate', 'common', 'sessions', 'laydate', 'admi
//当从cmdb同步数据,且没有配置采集协议是,可以调整资源类型
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
];
...
...
Please
register
or
login
to post a comment