1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
-
- var fd_id="";
- var PLAN_BIAOZHI="";
- var BM_YAXHLB="";
-
- if((window.location.href).indexOf('?')>-1){
- fd_id = (window.location.href).split('?')[1];
- PLAN_BIAOZHI = (window.location.href).split('?')[2];
- BM_YAXHLB = (window.location.href).split('?')[3];
- }else{
-
- }
-
- //取值,取列表页面传过来的预案主键的ID
- function addTransferDaily(){
- if((window.location.href).indexOf('?')>-1){
- var fd_id = (window.location.href).split('?')[1];
- var PLAN_BIAOZHI = (window.location.href).split('?')[2];
- }
- $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));
- }
|