Pārlūkot izejas kodu

git-svn-id: https://192.168.57.71/svn/jsgkj@1382 931142cf-59ea-a443-aa0e-51397b428577

ld_zhoutl 8 gadi atpakaļ
vecāks
revīzija
b7c39a28a1

+ 7 - 1
gkaqv2/trunk/modules/web/src/main/webapp/static/css/common/main.css

@@ -98,7 +98,7 @@
 .p_footer{
 	text-align:center;
 	width: 100%;
-	position: absolute;
+	position: fixed;
 	bottom: 0;
 	left: 0;
 	height: 18px;
@@ -305,3 +305,9 @@ input[type=radio], input[type=checkbox] {
 	padding:0px 8px 0px 8px;
 	margin:0px auto;
 }
+
+.btn-custom {
+  color: #fff;
+  background-color: #4868c7;
+  border-color: #4868c7;
+}

BIN
gkaqv2/trunk/modules/web/src/main/webapp/static/images/list/btn_query.png


+ 17 - 2
gkaqv2/trunk/modules/web/src/main/webapp/static/js/common/grid/GridManager.js

@@ -203,9 +203,24 @@ function() {
                         d += "<td " + o + ">" + (null==c?"":c) + "</td>"
                     }),
                     d += "</tr>"
-                }), r.html(d), i.resetTd(n, !1)) : (d = '<tr emptyTemplate><td colspan="' + $('th[th-visible="visible"]', n).length + '">' + (i.emptyTemplate || '<div class="gm-emptyTemplate">数据为空</div>') + "</td></tr>", l.totals = 0, r.html(d)),
+                }), r.html(d)
+                ,i.resetTd(n, !1)) : (d = '<tr emptyTemplate><td colspan="' + $('th[th-visible="visible"]', n).length + '">' + (i.emptyTemplate || '<div class="gm-emptyTemplate">数据为空</div>') + "</td></tr>", l.totals = 0, r.html(d)),
                 i.supportAjaxPage && (i.resetPageData(n, l[i.totalsKey]), i.checkMenuPageAction()),
-                "function" == typeof e ? e() : ""
+                "function" == typeof e ? e() : "";
+                if(i.supportCheckbox) {
+                    $(r).children().each(function(){
+                        var trObj = this;
+                        var inputChk = $(trObj).find("input[type='checkbox']");
+                        $(trObj).click(function(){
+                            var chkFlg = $(inputChk).prop("checked");
+                            $(inputChk).prop("checked", !chkFlg);
+                        });
+                        $(inputChk).parent().click(function(){
+                            window.event.cancelBubble=true;
+                        });
+                        
+                    });
+                };
             }
             var i = this,
             n = $('table[grid-manager="' + i.gridManagerName + '"]'),