EasyUI多选的获取

Posted ynhk

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了EasyUI多选的获取相关的知识,希望对你有一定的参考价值。

	function deletePRE() {
			var rows = $(‘#dg‘).datagrid(‘getSelections‘);
		        var ids = [];
		        var other_ids = [];
		        $.each(rows, function(index, item){
		        	var  id=item.id;
		        	var  upload=item.upload;
		        	var  checks=item.checks;
				if(upload==0||upload==1&&checks==3){
					ids.push(id);
				}else{
					other_ids.push(id);
				}
		        }
			); 
		        if(ids == "" ||ids == null ){
					url="";
					$.messager.alert(‘系统提示‘, ‘请选择可以删除的记录!‘, ‘error‘);
				}else {
					url="${path}/manifest/premanifestCheckDelete.do?ids="+ids;
					$("#dlg_delete").dialog("open").dialog("setTitle", "删除这条信息!");  
				}
		} 

  

以上是关于EasyUI多选的获取的主要内容,如果未能解决你的问题,请参考以下文章