标签:
<tr id="list" class="dblclick" code="#vc_code#" addtabs="1234567" title="查看合同" url="" >
$(".dblclick").unbind().dblclick(function(e){
alert(2)
var vc_code=$(this).attr(‘code‘);
var thisobj = $(this);
e.preventDefault();
thisobj.unbind();
thisobj.attr(‘url‘,$Base64.encode("/action/project/erpClub/mbCsMngSys/entranceMng/mbInforDetail/menu/crud?vc_code="+vc_code));
thisobj.addtabs();
thisobj.click();
});
<tbody id="datagridTemplate" style="display: none" code="#vc_cardcode#" addtabs="#vc_cardcode#" url="" title="">
$(document).ready(function() {
$("#c_startdate").val("${def:date}");
$("#c_enddate").val("${def:date}");
var search=null;
this.search=search;
search=$Search({datagrid:"datagrid",formId:"searchForm",success:function(){
$("table").css("table-layout","auto");//使单元格内容不溢出
$("#datagrid").find("tr").unbind().dblclick(function(e){
var thisobj = $(this);
var cardcode = thisobj.find("td").eq(1).text();
if( undefined != cardcode && "" != cardcode ){
e.preventDefault();
thisobj.attr(‘url‘,$Base64.encode("/action/project/erpClub/mbCsMngSys/rfQuery/rechConRecord/menu?vc_code="+cardcode));
thisobj.attr(‘title‘,"卡金额明细查询");
thisobj.attr(‘addtabs‘,cardcode);
thisobj.addtabs();
thisobj.click();
}
});
}}).initSearchBtn().searchData(1);
标签:
原文地址:http://www.cnblogs.com/prefect/p/5700240.html