UEP-confirm和alert弹窗

时间:2024-10-24 19:37:08
 function stuDel(){
     var ds = ajaxgrid.getCheckedRecords();
     if(ds.length==0){
         $.alert("提示信息","请选择您要删除的信息!");
         return;
     }
     $.confirm("提示信息","您是否要删除记录",
     function(){
         ajaxgrid.delCheckedRecords();
         saveDel();
         },null,300,200);
 }
 function saveDel(){
     if(ajaxgrid.isValid()){
         var gridData = ajaxgrid.collectData(false,"update") ;
         var dataArr = [] ;
         dataArr.push(gridData) ;
         $.request({
             action:"save",
             data:dataArr,
             success:function(){
                 ajaxgrid.reset();
             }
         }) ;
     }
 }