Index: ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/selectEndCause.jsp =================================================================== diff -u -r29513 -r30315 --- ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/selectEndCause.jsp (.../selectEndCause.jsp) (revision 29513) +++ ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/selectEndCause.jsp (.../selectEndCause.jsp) (revision 30315) @@ -62,9 +62,15 @@ alert("请选择" + optionTip); return false; } - var win = parent.Ext.getCmp('extWindow'); - win.returnValue = returnVal; - win.close(); + if(parent.Ext){ + var win = parent.Ext.getCmp('extWindow'); + win.returnValue = returnVal; + win.close(); + }else { + self.returnValue = returnVal; + self.hidden = true; + self.close(); + } }); $("#tem").on("keyup",function(){ if($("#tem").val().length >= 2000){ @@ -77,9 +83,15 @@ if($("#tem").val() != ""){ $("#tem").text(""); } - var win = parent.Ext.getCmp('extWindow'); - win.returnValue = returnVal; - win.close(); + if(parent.Ext){ + var win = parent.Ext.getCmp('extWindow'); + win.returnValue = returnVal; + win.close(); + }else { + self.returnValue = ''; + self.hidden = true; + self.close(); + } }); });