Merge branch 'master-500-dev-lushangqing' into 'master-500-dev'
【无】资源无负责人时,详情title显示undefined--更改为显示为空; 业务视图下资源动态获取字段优化 See merge request !891
Showing
2 changed files
with
3 additions
and
3 deletions
@@ -4842,7 +4842,7 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin', | @@ -4842,7 +4842,7 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin', | ||
4842 | title += '管理IP-' + manageIp + '|'; | 4842 | title += '管理IP-' + manageIp + '|'; |
4843 | } | 4843 | } |
4844 | } | 4844 | } |
4845 | - if (adminName) { | 4845 | + if (adminName && adminName!=undefined && adminName!='undefined') { |
4846 | title += adminName + '|'; | 4846 | title += adminName + '|'; |
4847 | } | 4847 | } |
4848 | if (title.length > 0) { | 4848 | if (title.length > 0) { |
@@ -447,9 +447,9 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -447,9 +447,9 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
447 | , done: function (res) { | 447 | , done: function (res) { |
448 | if (res && res.data ) { | 448 | if (res && res.data ) { |
449 | let arr=res.data; | 449 | let arr=res.data; |
450 | - if(fieldExpandArr.indexOf(resType)!=-1){ | 450 | + if(fieldExpandArr.indexOf('OperatingSystem')!=-1){ |
451 | }else{ | 451 | }else{ |
452 | - fieldExpandArr.push(resType); | 452 | + fieldExpandArr.push('OperatingSystem'); |
453 | if(arr.length>0){ | 453 | if(arr.length>0){ |
454 | arr.map(item=>{ | 454 | arr.map(item=>{ |
455 | let listStr=''; | 455 | let listStr=''; |
-
Please register or login to post a comment