Authored by xwx

及时消息自定义展示内容优化

@@ -449,6 +449,12 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl @@ -449,6 +449,12 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl
449 $('#details_tags').append(details_tags); 449 $('#details_tags').append(details_tags);
450 $('#details_tags span').on('click',function (){ 450 $('#details_tags span').on('click',function (){
451 $('[name="templates"]').val($('[name="templates"]').val() + '#{'+$(this).text() + '}'); 451 $('[name="templates"]').val($('[name="templates"]').val() + '#{'+$(this).text() + '}');
  452 + if (noticeTimely.templates){
  453 + noticeTimely.templates += '#{'+$(this).text() + '}';
  454 + }else {
  455 + noticeTimely.templates = '#{'+$(this).text() + '}';
  456 + }
  457 +
452 }); 458 });
453 } 459 }
454 460
@@ -86,9 +86,9 @@ @@ -86,9 +86,9 @@
86 <select name="type" id="noticeTimely_type" lay-filter="noticeTimely_type"> 86 <select name="type" id="noticeTimely_type" lay-filter="noticeTimely_type">
87 <option value="SQL">监控数据库</option> 87 <option value="SQL">监控数据库</option>
88 <option value="TEXT">文本</option> 88 <option value="TEXT">文本</option>
89 - <!-- <option value="es">es</option>  
90 - <option value="influxdb">时序</option>  
91 - <option value="tdEngine">tdEngine</option>--> 89 + <option value="ES">es</option>
  90 + <option value="INFLUXDB">时序</option>
  91 + <!-- <option value="tdEngine">tdEngine</option>-->
92 </select> 92 </select>
93 <div style="padding: 3px"> 93 <div style="padding: 3px">
94 文本支持:#{now} 当前时间格式:yyyy-MM-dd HH:mm:ss 94 文本支持:#{now} 当前时间格式:yyyy-MM-dd HH:mm:ss