123456789101112131415161718192021222324252627282930313233343536373839404142 |
-
-
- if((window.location.href).indexOf('?')>-1){
- fd_id = (window.location.href).split('?')[1];
- }else{
-
- }
-
-
- //取值,取列表页面传过来的预案主键的ID
- function addTransferDaily(){
- if((window.location.href).indexOf('?')>-1){
- var fd_id = (window.location.href).split('?')[1];
- }
- $form = $('#fillForm');
- var url = $.pathname() + '/ws/crud/CRUDService/create';
- $.ajax({
- url : url,
- type : 'post',
- data : $form.serialize(),
- dataType : 'text',
- timeout : 60000,
- success : function(data){
- //goBack();
- $.messager.alert("保存成功",null,null,null,1);
- },
- error : function(){
- $.messager.alert('操作失败');
- }
- });
- }
-
-
- function goBack() {
- /*var url = "/nwyj/page/business/am/contingencyPlan/"+"PlanGrade.jsp";
- window.parent.document.getElementById("frmright").setAttribute("src", ""+encodeURI(url));*/
- //获取iframe中的元素值
- var iframe =parent.document.getElementsByName("frmright")[0];
- iframe.src = "/nwyj/page/business/em/report/Report_main.jsp";
-
- }
|