Index: ssts-web/src/main/webapp/systemmanage/orgUnitExt.js =================================================================== diff -u -r17564 -r17763 --- ssts-web/src/main/webapp/systemmanage/orgUnitExt.js (.../orgUnitExt.js) (revision 17564) +++ ssts-web/src/main/webapp/systemmanage/orgUnitExt.js (.../orgUnitExt.js) (revision 17763) @@ -412,11 +412,13 @@ method:'POST', waitMsg:'正在保存数据,请稍候', waitTitle:'提交表单', + scope : this, success:function(form,action){ history.go(-1); }, failure:function(form, action){ - alert('failure = '+action.failureType); + showResult('保存失败!请联系系统管理员'); + this.enable(); } }); } @@ -436,13 +438,15 @@ method:'POST', waitMsg:'正在保存数据,请稍候', waitTitle:'提交表单', + scope : this, success:function(form,action){ var barcodeStr = action.result.barcode; history.go(-1); printBarcode(barcodeStr,0); }, failure:function(form, action){ - alert('failure = '+action.failureType); + showResult('保存失败!请联系系统管理员'); + this.enable(); } }); @@ -464,11 +468,13 @@ method:'POST', waitMsg:'正在保存数据,请稍候', waitTitle:'提交表单', + scope : this, success:function(form,action){ location.href=WWWROOT + "/systemmanage/orgUnitExt.jsp?parentId="+parentId+"&editMode=true"; }, failure:function(form, action){ - alert('failure = '+action.failureType); + showResult('保存失败!请联系系统管理员'); + this.enable(); } }); }