组长度超过20省略号展示,导出doLog调整

This commit is contained in:
wangxin
2019-06-15 18:20:24 +08:00
parent 1d0835a563
commit 55e2272333
3 changed files with 30 additions and 6 deletions

View File

@@ -2725,6 +2725,10 @@ public class ExportExcel {
}
}
if(ef.title().equals("do_log")
&& (Reflections.invokeGetter(e, "serviceId").toString().equals("512"))) {
val = "";
}
if(ef.title().equals("whether_area_block")&&!StringUtil.isEmpty(val)){
Integer whetherAreaBlock=Integer.parseInt(valStr);
if(whetherAreaBlock.equals(0)){

View File

@@ -407,7 +407,7 @@ public class ObjectGroupController extends BaseController {
titleList.add(entity.getMenuNameCode());
classMap.put(entity.getMenuNameCode(), ObjGroupCfg.class);
String cfgIndexInfoNoExport=",block_type,do_log,policy_name,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,&action:block_type-";
String cfgIndexInfoNoExport=",block_type,policy_name,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,&action:block_type-";
// 时间过滤
if (entity.getSearch_create_time_start() == null) {

View File

@@ -76,27 +76,47 @@
$("td[commonGroupIds]").each(function(){
for(var key in data.ipGroup){
if($(this).text().trim()==key){
if(data.ipGroup[key].length<20){
$(this).text(data.ipGroup[key]);
}else{
$(this).text(data.ipGroup[key].substring(0,20)+"...");
}
$(this).attr("title",data.ipGroup[key]);
}
}
});
$("td[urlGroup]").each(function(){
for(var key in data.urlGroup){
if($(this).text().trim()==key){
if(data.urlGroup[key].length<20){
$(this).text(data.urlGroup[key]);
}else{
$(this).text(data.urlGroup[key].substring(0,20)+"...");
}
$(this).attr("title",data.urlGroup[key]);
}
}
});
$("td[domainGroup]").each(function(){
for(var key in data.domainGroup){
if($(this).text().trim()==key){
if(data.domainGroup[key].length<20){
$(this).text(data.domainGroup[key]);
}else{
$(this).text(data.domainGroup[key].substring(0,20)+"...");
}
$(this).attr("title",data.domainGroup[key]);
}
}
});$("td[subscribeIdGroup]").each(function(){
for(var key in data.subscribeIdGroup){
if($(this).text().trim()==key){
if(data.subscribeIdGroup[key].length<20){
$(this).text(data.subscribeIdGroup[key]);
}else{
$(this).text(data.subscribeIdGroup[key].substring(0,20)+"...");
}
$(this).attr("title",data.subscribeIdGroup[key]);
}
}
});
@@ -463,7 +483,7 @@
</td>
<td>
<c:forEach items="${fns:getDictList('DO_LOG') }" var="dict">
<c:if test="${dict.itemCode eq cfg.doLog and cfg.action!=64}">
<c:if test="${dict.itemCode eq cfg.doLog and cfg.serviceId!=512}">
<spring:message code="${dict.itemValue }"/>
</c:if>
</c:forEach>