From fb603dc2f40e9660b62bb64462dfcc2bbc488871 Mon Sep 17 00:00:00 2001 From: wangxin Date: Tue, 13 Mar 2018 14:42:10 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E6=96=B9=E6=B3=95=E4=B8=BApublic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/nis/domain/configuration/BaseCfg.java | 2 +- src/main/java/com/nis/domain/configuration/DnsIpCfg.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/nis/domain/configuration/BaseCfg.java b/src/main/java/com/nis/domain/configuration/BaseCfg.java index 511d91acb..e5e153481 100644 --- a/src/main/java/com/nis/domain/configuration/BaseCfg.java +++ b/src/main/java/com/nis/domain/configuration/BaseCfg.java @@ -431,7 +431,7 @@ public class BaseCfg extends BaseEntity { this.tableName = tableName; } - protected void initDefaultValue(){ + public void initDefaultValue(){ } /** diff --git a/src/main/java/com/nis/domain/configuration/DnsIpCfg.java b/src/main/java/com/nis/domain/configuration/DnsIpCfg.java index 6ef704a0e..47c304a33 100644 --- a/src/main/java/com/nis/domain/configuration/DnsIpCfg.java +++ b/src/main/java/com/nis/domain/configuration/DnsIpCfg.java @@ -226,7 +226,7 @@ public class DnsIpCfg extends BaseCfg { * @see com.nis.domain.configuration.BaseCfg#initDefaultValue() */ @Override - protected void initDefaultValue() { + public void initDefaultValue() { // TODO Auto-generated method stub super.initDefaultValue(); this.srcIp ="0.0.0.0"; From e1e340274a1fb9519f72899c0090abff8eeed4bd Mon Sep 17 00:00:00 2001 From: zhanghongqing Date: Tue, 13 Mar 2018 15:09:53 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=B7=A6=E4=B8=8A?= =?UTF-8?q?=E8=A7=92=E6=98=BE=E7=A4=BA=E5=BD=93=E5=89=8D=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/views/home.jsp | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/WEB-INF/views/home.jsp b/src/main/webapp/WEB-INF/views/home.jsp index 1f2fad137..d4bc39566 100644 --- a/src/main/webapp/WEB-INF/views/home.jsp +++ b/src/main/webapp/WEB-INF/views/home.jsp @@ -29,6 +29,22 @@ }); + //面包屑导航 + $(function(){ + + $("div ul li a").click(function(){ + if(typeof $(this).attr("id") !='undefined'){ + $("#menutwo").text($(this).text().trim()); + $("#menuthree").text(""); + }else{ + $("#menuthree").text($(this).text().trim()); + } +// var urlto=this+""; +// var ur="${ctx}"+urlto.split("nis")[1]; +// $("#menutwo").attr("href",ur); + }) +}) + @@ -39,7 +55,6 @@
- From 256c2b9f9bc01854f4b8e000d4f45bc8319b9ac2 Mon Sep 17 00:00:00 2001 From: chiguangxu Date: Tue, 13 Mar 2018 16:10:58 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=95=8C=E9=9D=A2-?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=88=97=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webapp/WEB-INF/views/cfg/requestList.jsp | 141 ++++++++++-------- .../webapp/static/global/css/components.css | 17 ++- .../Bootstrap/images/jbox-title-icon.gif | Bin 73 -> 67 bytes .../2.3/Skins/Bootstrap/jbox.min.css | 2 +- .../webapp/static/global/scripts/jeesite.js | 112 +++++++++++++- 5 files changed, 205 insertions(+), 67 deletions(-) diff --git a/src/main/webapp/WEB-INF/views/cfg/requestList.jsp b/src/main/webapp/WEB-INF/views/cfg/requestList.jsp index a0dad7780..4e40a5256 100644 --- a/src/main/webapp/WEB-INF/views/cfg/requestList.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/requestList.jsp @@ -13,7 +13,7 @@ +

@@ -41,7 +41,7 @@
- 所有状态 + @@ -50,14 +50,14 @@
- + + + + +
- +
@@ -65,28 +65,27 @@
- +
- +
- - + +
@@ -109,14 +108,14 @@
- +
- " onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
- +
- +
- " onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/> + " onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
- +
- " onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/> + " onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
@@ -147,8 +146,8 @@
- - + +
@@ -170,7 +169,7 @@ - + @@ -181,13 +180,13 @@ - +<%-- --%> - + @@ -214,30 +213,6 @@ - @@ -252,7 +227,18 @@ - + diff --git a/src/main/webapp/static/global/css/components.css b/src/main/webapp/static/global/css/components.css index 3e75e5ac9..09f9957c5 100644 --- a/src/main/webapp/static/global/css/components.css +++ b/src/main/webapp/static/global/css/components.css @@ -21557,7 +21557,22 @@ Color library demo } + .customColumnList { + padding-left:10px; + padding-top:10px; + } - +.customColumnList label { + padding-left: 4px; + cursor: pointer; + vertical-align: middle; +} +.customColumnList input { + display: inline-block; + vertical-align: middle; + margin-bottom: 4px; + margin-right: 3px; +} + diff --git a/src/main/webapp/static/global/plugins/jquery-jbox/2.3/Skins/Bootstrap/images/jbox-title-icon.gif b/src/main/webapp/static/global/plugins/jquery-jbox/2.3/Skins/Bootstrap/images/jbox-title-icon.gif index b9c772fb5dd615a76731d4c119ff9fe5ea34ea5e..75f5d6bded515c232f18c5527141a3f1e38c3f1a 100644 GIT binary patch literal 67 zcmZ?wbhEHb?c**sd)f Q5n7>}u+;R`DKQ3X01O=wvj6}9 literal 73 zcmZ?wbhEHbBe?# S{fN*C-Grs4uTF_ESOWmk-xUJ@ diff --git a/src/main/webapp/static/global/plugins/jquery-jbox/2.3/Skins/Bootstrap/jbox.min.css b/src/main/webapp/static/global/plugins/jquery-jbox/2.3/Skins/Bootstrap/jbox.min.css index 54ff94b70..0247965bd 100644 --- a/src/main/webapp/static/global/plugins/jquery-jbox/2.3/Skins/Bootstrap/jbox.min.css +++ b/src/main/webapp/static/global/plugins/jquery-jbox/2.3/Skins/Bootstrap/jbox.min.css @@ -1,4 +1,4 @@ -@charset "utf-8";*:focus{outline:0}.jbox-fade{background-color:#ccc}.jbox-drag{border:1px dashed #376ea5}div.jbox{padding:0;border:0;font-size:12px}div.jbox .jbox-border{background:none repeat scroll 0 0 #999;filter:alpha(opacity=20);-moz-opacity:.2;opacity:.2}div.jbox .jbox-container{background-color:#fff;border:1px solid #999}div.jbox .jbox-title-panel{background:#fff;border-bottom:1px solid #ccc;padding:8px 15px}div.jbox .jbox-title{font-weight:bold;color:#333;font-size:18px;line-height:27px;padding-top:0}div.jbox .jbox-title-icon{background:url(images/jbox-title-icon.gif) no-repeat scroll 3px 5px transparent}div.jbox .jbox-close,div.jbox .jbox-close-hover{background:url(images/jbox-close.gif) no-repeat scroll 0 0 transparent;margin:7px}div.jbox .jbox-close-hover{background-position:-16px 0}div.jbox .jbox-content{min-height:24px;line-height:18px;color:#444}div.jbox .jbox-content-loading{background-color:#e6e6e6}div.jbox .jbox-content-loading-image{background:url(images/jbox-content-loading.gif) no-repeat bottom center}div.jbox .jbox-button-panel{border-top:1px solid #ccc;background-color:#eee}div.jbox .jbox-bottom-text{text-indent:10px;color:#444}div.jbox .jbox-button{background:url(images/jbox-button1.png) repeat-x transparent;border:#aaa 1px solid;color:#888;border-radius:3px 3px 3px 3px;margin:1px 7px 0 0;height:20px;cursor:default}div.jbox .jbox-button-hover{background-position:0 -20px;color:#666}div.jbox .jbox-button-active{background-position:0 -40px}div.jbox-warning .jbox .jbox-button-panel{background-color:#fff}div.jbox .jbox-tip-color{background-color:#376ea5;border-color:#376ea5;border-radius:3px 3px 3px 3px;color:#fff}div.jbox span.jbox-icon{background:url(images/jbox-icons.png) no-repeat scroll 0 0 transparent;_background:url(images/jbox-icons-ie6.gif) no-repeat scroll 0 0 transparent}div.jbox span.jbox-icon-info{background-position:0 0}div.jbox span.jbox-icon-question{background-position:-36px 0}div.jbox span.jbox-icon-success{background-position:-72px 0}div.jbox span.jbox-icon-warning{background-position:-108px 0} +@charset "utf-8";*:focus{outline:0}.jbox-fade{background-color:#ccc}.jbox-drag{border:1px dashed #376ea5}div.jbox{padding:0;border:0;font-size:12px}div.jbox .jbox-border{background:none repeat scroll 0 0 #999;filter:alpha(opacity=20);-moz-opacity:.2;opacity:.2}div.jbox .jbox-container{background-color:#fff;border:1px solid #999}div.jbox .jbox-title-panel{background:#fff;border-bottom:1px solid #ccc;padding:8px 10px}div.jbox .jbox-title{font-weight:bold;color:#333;font-size:16px;line-height:27px;padding-top:0}div.jbox .jbox-title-icon{background:url(images/jbox-title-icon.gif) no-repeat scroll 3px 5px transparent}div.jbox .jbox-close,div.jbox .jbox-close-hover{background:url(images/jbox-close.gif) no-repeat scroll 0 0 transparent;margin:7px}div.jbox .jbox-close-hover{background-position:-16px 0}div.jbox .jbox-content{min-height:24px;line-height:18px;color:#444}div.jbox .jbox-content-loading{background-color:#e6e6e6}div.jbox .jbox-content-loading-image{background:url(images/jbox-content-loading.gif) no-repeat bottom center}div.jbox .jbox-button-panel{border-top:1px solid #ccc;background-color:#eee}div.jbox .jbox-bottom-text{text-indent:10px;color:#444}div.jbox .jbox-button{background:url(images/jbox-button1.png) repeat-x transparent;border:#aaa 1px solid;color:#888;border-radius:3px 3px 3px 3px;margin:1px 7px 0 0;height:20px;cursor:default}div.jbox .jbox-button-hover{background-position:0 -20px;color:#666}div.jbox .jbox-button-active{background-position:0 -40px}div.jbox-warning .jbox .jbox-button-panel{background-color:#fff}div.jbox .jbox-tip-color{background-color:#376ea5;border-color:#376ea5;border-radius:3px 3px 3px 3px;color:#fff}div.jbox span.jbox-icon{background:url(images/jbox-icons.png) no-repeat scroll 0 0 transparent;_background:url(images/jbox-icons-ie6.gif) no-repeat scroll 0 0 transparent}div.jbox span.jbox-icon-info{background-position:0 0}div.jbox span.jbox-icon-question{background-position:-36px 0}div.jbox span.jbox-icon-success{background-position:-72px 0}div.jbox span.jbox-icon-warning{background-position:-108px 0} div.jbox span.jbox-icon-error{background-position:-144px 0}div.jbox span.jbox-icon-none{display:none;overflow:hidden}div.jbox span.jbox-icon-loading{background:url(images/jbox-loading1.gif) no-repeat scroll 0 0 transparent} .jbox-container *{ diff --git a/src/main/webapp/static/global/scripts/jeesite.js b/src/main/webapp/static/global/scripts/jeesite.js index 94820ef12..64c798d47 100644 --- a/src/main/webapp/static/global/scripts/jeesite.js +++ b/src/main/webapp/static/global/scripts/jeesite.js @@ -12,8 +12,17 @@ $(document).ready(function() { $("a").bind("focus",function() { if(this.blur) {this.blur()}; }); - //所有下拉框使用select2 - 排除class为noSelect2的"; + html+="
"; + + }) + html +=""; + + $.jBox(html,{title:"Custom Columns",submit:submit}); + +} + +//自定义列初始化,先取cookie 后取table tr th +function customColumnInit() { + + var key = getLocationPathName()+"_visCols"; + var abVisCols = Cookies.get(key); + if(abVisCols != null && abVisCols.length > 0) { + + abVisCols = $.parseJSON(abVisCols); + + $(abVisCols).each(function(indexCol,col){ + if(col) { + //选中则显示 + showColumn(indexCol); + }else { + hideColumn(indexCol); + } + }) + }else { + + $(".table tr th").each(function(){ + + var indexCol = $(this).index(); + if($(this).attr("isVisible")=="false") { + hideColumn(indexCol); + }else { + //选中则显示 + showColumn(indexCol); + } + + }); + } + +} + + + +//隐藏索引列 +function hideColumn(index) { + $(".table tr").each(function() { + $(this).find("th:eq(" + index + ")").hide(); + $(this).find("td:eq(" + index + ")").hide(); + }) + +} +//显示索引列 +function showColumn(index) { + + $(".table tr").each(function() { + $(this).find("th:eq(" + index + ")").show(); + $(this).find("td:eq(" + index + ")").show(); + }) + +} + +
${requestInfo.id } ${requestInfo.requestNumber } ${requestInfo.requestOrg }${requestInfo.requestTitle } ${requestInfo.requestContent } ${requestInfo.taskName } - <%-- --%> -