OperateLog.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. var bathval = "";
  2. var mnu;
  3. $(function () {
  4. mnu = $.SystemGeneral.getUrlParam("MNU");
  5. $('#dgLogList').cmsXDataTable('load', $("#formQuery").getFormParams());
  6. });
  7. function reload() {
  8. $("#dgLogList").cmsXDataTable("load", $("#formQuery").getFormParams());
  9. }
  10. //获取选中的数据
  11. function validChoose() {
  12. var d = [];
  13. $.each($("#dgLogList").cmsXDataTable("getSelections"), function (index) {
  14. d.push(this.OperateID);
  15. });
  16. return d;
  17. }
  18. //删除
  19. function OperateLog_Delete() {
  20. var d = validChoose().join(',');
  21. if (d == "") {
  22. $.messager.alert("系统提示", "请选择您要删除的信息。");
  23. return;
  24. }
  25. $.messager.confirm("系统提示", "您确定要删除选择的信息?", function (r) {
  26. if (r) {
  27. $.post(CMS_SystemConfig.VirtualDirectoryPath + '/OperateLog/Delete', { operateLogIDs: d }, function (data) {
  28. if (data == "删除成功。") {
  29. $.messager.alert("系统提示", data);
  30. reload();
  31. } else {
  32. $.messager.alert("系统提示", data);
  33. }
  34. });
  35. }
  36. });
  37. }
  38. //Excel导出
  39. function OperateLog_Export() {
  40. $(document.forms[0]).submit();
  41. }