ztree複選框選中事件
callback: {
//樹複選框選中事件
onCheck: zTreeOnCheck
}
//統計申請份數
function zTreeOnCheck(event, treeId, treeNode){
var userTreeObj=$.fn.zTree.getZTreeObj("treeDemo11");
var userNodes=userTreeObj.getCheckedNodes(true);
var secUsers= JSON.stringify(userNodes);
$.ajax({
url: '<%=basePath %>qsddms/qsDocumentsIssued/ajaxGetSelectReceiveUsers.do',
type: "POST",
data: {
applyFileReceiveUserName:secUsers
},
contentType: "application/x-www-form-urlencoded; charset=utf-8",
dataType: 'json',
async : false,
success: function(data){
if (data.success){
$("#applyFileNums").val(data.userNums);
}
}
});
}