EOS删除选中行

function doRemove(){
        nui.confirm("是否删除选中数据?", "警告⚠️", function(e){
            if("ok"==e){
                var rows=grid.getSelecteds();
       if(rows.length!=0){
           $.ajax({
               url:"com.pttl.bps.pact.sell.sellContract.removeContract.biz.ext",
               type:'POST',
               data:nui.encode({cons:rows}),
               cache: false,
               contentType:'text/json',
               success:function(text){
                   var returnJson = nui.decode(text);
                   if(returnJson.exception == null){
                       nui.alert("删除成功", "提示");
                       nui.get("doRemove").disable();
                       grid.reload();
                    }
               }
           });
       }else{
           nui.alert("请选择数据", "提示");
       }
            }
        });
    }    

猜你喜欢

转载自blog.csdn.net/fxiaoyaole/article/details/72845158