Authored by 王涛
@@ -661,7 +661,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions'], function @@ -661,7 +661,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions'], function
661 if(res.data && res.data.length > 0){ 661 if(res.data && res.data.length > 0){
662 $.each(res.data,function (i,v){ 662 $.each(res.data,function (i,v){
663 trs += `<tr><td>${i+1}</td><td>${v.resName}</td><td>${v.ip}</td><td>${v.adminName}</td> 663 trs += `<tr><td>${i+1}</td><td>${v.resName}</td><td>${v.ip}</td><td>${v.adminName}</td>
664 - <td>${v.resTypeName}</td><td><span id="${v.relId}" class="link resource_sublist_del">删除</span></td></tr>`; 664 + <td>${v.resTypeName}</td><td>${v.collProtocol}</td><td><span id="${v.relId}" class="link resource_sublist_del">删除</span></td></tr>`;
665 }); 665 });
666 } 666 }
667 667
@@ -677,7 +677,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions'], function @@ -677,7 +677,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions'], function
677 var trs = ''; 677 var trs = '';
678 $.each(res.data,function (i,v){ 678 $.each(res.data,function (i,v){
679 trs += `<tr><td>${i+1}</td><td>${v.resName}</td><td>${v.ip}</td><td>${v.adminName}</td> 679 trs += `<tr><td>${i+1}</td><td>${v.resName}</td><td>${v.ip}</td><td>${v.adminName}</td>
680 - <td>${v.resTypeName}</td><td><span id="${v.relId}" class="link resource_sublist_del">删除</span></td></tr>`; 680 + <td>${v.resTypeName}</td><td>${v.collProtocol}</td><td><span id="${v.relId}" class="link resource_sublist_del">删除</span></td></tr>`;
681 }); 681 });
682 var tb = ` 682 var tb = `
683 <form class="layui-form layui-card-header layuiadmin-card-header-auto" lay-filter="dyglTools-form"> 683 <form class="layui-form layui-card-header layuiadmin-card-header-auto" lay-filter="dyglTools-form">
@@ -685,7 +685,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions'], function @@ -685,7 +685,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions'], function
685 <div class="layui-inline"> 685 <div class="layui-inline">
686 <div class="layui-input-inline layui-input-inline--long"> 686 <div class="layui-input-inline layui-input-inline--long">
687 <input type="text" id="condition-resType-keyword" placeholder="输入名称,回车搜索" autocomplete="off" 687 <input type="text" id="condition-resType-keyword" placeholder="输入名称,回车搜索" autocomplete="off"
688 - lay-tips="关键字检索包含: </br>IP地址</br>资源名称</br>负责人" 688 + lay-tips="关键字检索包含: </br>IP地址</br>资源名称</br>负责人</br>采集协议"
689 class="layui-input"> 689 class="layui-input">
690 </div> 690 </div>
691 <div class="layui-input-inline layui-input-inline--long multi-query" id="dyglResListBusType"> 691 <div class="layui-input-inline layui-input-inline--long multi-query" id="dyglResListBusType">
@@ -699,7 +699,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions'], function @@ -699,7 +699,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions'], function
699 699
700 <table class="layui-table"> 700 <table class="layui-table">
701 <thead> 701 <thead>
702 - <tr> <th>序号</th><th>资源名称</th><th>IP地址</th><th>负责人</th><th>资源类型</th><th>操作</th></tr> 702 + <tr> <th>序号</th><th>资源名称</th><th>IP地址</th><th>负责人</th><th>资源类型</th><th>采集协议</th><th>操作</th></tr>
703 </thead> 703 </thead>
704 <tbody> ${trs} </tbody> 704 <tbody> ${trs} </tbody>
705 </table> 705 </table>
@@ -458,20 +458,16 @@ layui.extend({ @@ -458,20 +458,16 @@ layui.extend({
458 imgUrl="/src/style/img/fault.png"; 458 imgUrl="/src/style/img/fault.png";
459 } 459 }
460 if(toastType=='faultprogress'){ 460 if(toastType=='faultprogress'){
461 - imgUrl="/src/style/img/faultprogress.png"; 461 + imgUrl="/src/style/img/faultover.png";
462 } 462 }
463 if(toastType=='faultover'){ 463 if(toastType=='faultover'){
464 - imgUrl="/src/style/img/faultover.png"; 464 + imgUrl="/src/style/img/faultprogress.png";
465 } 465 }
466 setTimeout(function () { 466 setTimeout(function () {
467 new msgTips({ 467 new msgTips({
468 dom: ".right-bottom-tips", 468 dom: ".right-bottom-tips",
469 title: title, 469 title: title,
470 - message: `<p style="line-height: 24px;background: url(${imgUrl}) no-repeat;background-size: 100%;height: 160px;padding: 10px;background-position-x: right;padding-left: 29px;padding-top: 145px;">  
471 - <span class="title closeFault" style="position: relative;top: -75px;left: 170px;">X</span>  
472 - <span style="position: relative;left: 35px;top: -21px; font-weight: bold;">${title}</span>  
473 - ${content}  
474 - </p>`, 470 + message: `<p style="line-height: 24px;background: url(${imgUrl}) no-repeat;background-size: 100%;height: 160px;background-position-x: right;padding-left: 25px;padding-top: 145px;"><span >${content}</span><span class="title closeFault" style="position: relative;top: -126px;left: 22px;">X</span><span style="position: relative;left: -89px;top: -96px; font-weight: bold;float: right;">${title}</span></p>`,
475 duration: 10000, 471 duration: 10000,
476 space: 10, 472 space: 10,
477 firstSpace: 8, 473 firstSpace: 8,
@@ -489,7 +485,6 @@ layui.extend({ @@ -489,7 +485,6 @@ layui.extend({
489 //} 485 //}
490 } 486 }
491 }) 487 })
492 -  
493 }, delay); 488 }, delay);
494 }else{ 489 }else{
495 setTimeout(function () { 490 setTimeout(function () {
@@ -98,7 +98,7 @@ layui.define(['layer', 'laytpl', 'form'], function (exports) { @@ -98,7 +98,7 @@ layui.define(['layer', 'laytpl', 'form'], function (exports) {
98 $(options.dom).append(newContainer); 98 $(options.dom).append(newContainer);
99 } else if(options.toastType=='faultinfo'||options.toastType=='faultprogress'||options.toastType=='faultover'){ 99 } else if(options.toastType=='faultinfo'||options.toastType=='faultprogress'||options.toastType=='faultover'){
100 100
101 - var container = "<div class='fault_ez_tips "+options.toastType+"' style="+firstDirection+":"+options.margin+"px;transform:translateX("+minus+"110%);width: 226px;bottom: 8px !important; ></div>" 101 + var container = "<div class='fault_ez_tips "+options.toastType+"' style="+firstDirection+":"+options.margin+"px;transform:translateX("+minus+"110%); ></div>"
102 102
103 // var head = "<div class='faultTitle faultClearfix'><i class='faultTips_icon_l fl'></i><i class='FaultTips_icon_r close'></i></div>"; 103 // var head = "<div class='faultTitle faultClearfix'><i class='faultTips_icon_l fl'></i><i class='FaultTips_icon_r close'></i></div>";
104 var head = ""; 104 var head = "";
@@ -127,7 +127,7 @@ layui.define(['layer', 'laytpl', 'form'], function (exports) { @@ -127,7 +127,7 @@ layui.define(['layer', 'laytpl', 'form'], function (exports) {
127 'transition-timing-function':options.timingFun, 127 'transition-timing-function':options.timingFun,
128 // 'width':options.width, 128 // 'width':options.width,
129 'width':'226px', 129 'width':'226px',
130 - 'bottom':'8px' 130 + 'bottom':'620px'
131 }); 131 });
132 var height = $(newContainer).outerHeight(true); 132 var height = $(newContainer).outerHeight(true);
133 var len = $('.fault_ez_tips').size(); 133 var len = $('.fault_ez_tips').size();
@@ -46,7 +46,7 @@ @@ -46,7 +46,7 @@
46 <!--判定是否有daping角色,如果有则显示该菜单 joke add 20211203--> 46 <!--判定是否有daping角色,如果有则显示该菜单 joke add 20211203-->
47 <script type="text/html" template lay-url="{{sessionStorage.getItem('domainName')}}/api-user/users/checkHasRole?roleCode=daping"> 47 <script type="text/html" template lay-url="{{sessionStorage.getItem('domainName')}}/api-user/users/checkHasRole?roleCode=daping">
48 {{# if(d.count > 0){ }} 48 {{# if(d.count > 0){ }}
49 - <li class="layui-nav-item" lay-tips="监控一体化视图"> 49 + <li class="layui-nav-item" lay-tips="展示大屏">
50 <a href="javascript:;" layadmin-event="toBigScreen" ><img src="/src/style/img/icon-daping.png" style="width: 16px;height: 16px"></a> 50 <a href="javascript:;" layadmin-event="toBigScreen" ><img src="/src/style/img/icon-daping.png" style="width: 16px;height: 16px"></a>
51 </li> 51 </li>
52 {{# } }} 52 {{# } }}
@@ -94,15 +94,19 @@ export default { @@ -94,15 +94,19 @@ export default {
94 proxy.$global.showMsg("资源编号不存在,请确认!", "warning") 94 proxy.$global.showMsg("资源编号不存在,请确认!", "warning")
95 return; 95 return;
96 } 96 }
97 -  
98 - proxy.$http.post(`/api-web/favorites/save/res?favId=${favIds.value}&resIds=${props.resId}`, {}, function (res) {  
99 - if (res && res.code ==0) {  
100 - let msg = !res.msg ? '收藏成功!' : res.msg;  
101 - let type = !res.success ? 'warning' : 'success';  
102 - proxy.$global.showMsg(msg,type);  
103 - showDialog(false);  
104 - }  
105 - }); 97 + if (favIds.value != '' && favIds.value != null) {
  98 +
  99 + proxy.$http.post(`/api-web/favorites/save/res?favId=${favIds.value}&resIds=${props.resId}`, {}, function (res) {
  100 + if (res && res.code == 0) {
  101 + let msg = !res.msg ? '收藏成功!' : res.msg;
  102 + let type = !res.success ? 'warning' : 'success';
  103 + proxy.$global.showMsg(msg, type);
  104 + showDialog(false);
  105 + }
  106 + });
  107 + }else {
  108 + proxy.$global.showMsg('请选择收藏夹', 'warning');
  109 + }
106 } 110 }
107 111
108 112
@@ -59,7 +59,7 @@ export default { @@ -59,7 +59,7 @@ export default {
59 setInterval(function(){ 59 setInterval(function(){
60 getDateTime(); 60 getDateTime();
61 },1000); 61 },1000);
62 - document.title = '监控一体化视图' 62 + document.title = '展示大屏'
63 63
64 }) 64 })
65 let getDateTime=()=>{ 65 let getDateTime=()=>{