var bathval = ""; var mnu; $(function () { mnu = $.SystemGeneral.getUrlParam("MNU"); $('#dgLogList').cmsXDataTable('load', $("#formQuery").getFormParams()); }); function reload() { $("#dgLogList").cmsXDataTable("load", $("#formQuery").getFormParams()); } //获取选中的数据 function validChoose() { var d = []; $.each($("#dgLogList").cmsXDataTable("getSelections"), function (index) { d.push(this.OperateID); }); return d; } //删除 function OperateLog_Delete() { var d = validChoose().join(','); if (d == "") { $.messager.alert("系统提示", "请选择您要删除的信息。"); return; } $.messager.confirm("系统提示", "您确定要删除选择的信息?", function (r) { if (r) { $.post(CMS_SystemConfig.VirtualDirectoryPath + '/OperateLog/Delete', { operateLogIDs: d }, function (data) { if (data == "删除成功。") { $.messager.alert("系统提示", data); reload(); } else { $.messager.alert("系统提示", data); } }); } }); } //Excel导出 function OperateLog_Export() { $(document.forms[0]).submit(); }