Index: ssts-web/src/main/webapp/disinfectsystem/routineMonitoring/routineMonitoringView.js =================================================================== diff -u -r14974 -r14980 --- ssts-web/src/main/webapp/disinfectsystem/routineMonitoring/routineMonitoringView.js (.../routineMonitoringView.js) (revision 14974) +++ ssts-web/src/main/webapp/disinfectsystem/routineMonitoring/routineMonitoringView.js (.../routineMonitoringView.js) (revision 14980) @@ -1692,12 +1692,18 @@ waitMsg : '正在保存数据,请稍候', waitTitle : '提交表单', success : function(form, action) { - showResult('保存成功'); + var result = top.Ext.decode(action.response.responseText); + showResult(result.message); top.Ext.getCmp('routineMonitoringWin').close(); grid.dwrReload(); }, failure : function(form, action) { - alert('failure = ' + action.failureType); + if(action.response != null && action.response.responseText != null){ + var result = top.Ext.decode(action.response.responseText); + showResult(result.message); + }else{ + alert("连接服务器出错"); + } thiz.enable(); } });