7bd3cce3e1104980919cbc761a9c485a43363b07.svn-base 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. if((window.location.href).indexOf('?')>-1){
  2. fd_id = (window.location.href).split('?')[1];
  3. }else{
  4. }
  5. //取值,取列表页面传过来的预案主键的ID
  6. function addTransferDaily(){
  7. if((window.location.href).indexOf('?')>-1){
  8. var fd_id = (window.location.href).split('?')[1];
  9. }
  10. $form = $('#fillForm');
  11. var url = $.pathname() + '/ws/crud/CRUDService/create';
  12. $.ajax({
  13. url : url,
  14. type : 'post',
  15. data : $form.serialize(),
  16. dataType : 'text',
  17. timeout : 60000,
  18. success : function(data){
  19. //goBack();
  20. $.messager.alert("保存成功",null,null,null,1);
  21. },
  22. error : function(){
  23. $.messager.alert('操作失败');
  24. }
  25. });
  26. }
  27. function goBack() {
  28. /*var url = "/nwyj/page/business/am/contingencyPlan/"+"PlanGrade.jsp";
  29. window.parent.document.getElementById("frmright").setAttribute("src", ""+encodeURI(url));*/
  30. //获取iframe中的元素值
  31. var iframe =parent.document.getElementsByName("frmright")[0];
  32. iframe.src = "/nwyj/page/business/em/report/Report_main.jsp";
  33. }