Index: ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/sterilizationRecordPic.js =================================================================== diff -u -r15671 -r15672 --- ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/sterilizationRecordPic.js (.../sterilizationRecordPic.js) (revision 15671) +++ ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/sterilizationRecordPic.js (.../sterilizationRecordPic.js) (revision 15672) @@ -437,12 +437,13 @@ currentRotateHeight = 0; continueRotateCount = 0; var imageBrowse = Ext.get(currentImageId); + +// if(lastRotateIndex == 1 || lastRotateIndex == 3){ +// // 已经旋转过图片,宽高需要互换 +// Ext.get(currentImageId).parent.switchHeightWidth(imageBrowse); +// } // 还原大小 - Ext.get(currentImageId).parent.restore(imageBrowse); - if(lastRotateIndex == 1 || lastRotateIndex == 3){ - // 已经旋转过图片,宽高需要互换 - Ext.get(currentImageId).parent.switchHeightWidth(imageBrowse); - } + Ext.get(currentImageId).parent.restore(imageBrowse); var url = WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!getSterilizationRecordPic.do?id=' + id + '&page=' + page + '&rotateIndex=' + curRotateIndex + '&time='+new Date(); var image = imageBrowse.dom; image.src = url;// 覆盖原来的图片 @@ -465,12 +466,12 @@ currentRotateWidth = 0; currentRotateHeight = 0; continueRotateCount = 0; - // 还原大小 var imageBrowse = Ext.get(currentImageId); - if(lastRotateIndex == 1 || lastRotateIndex == 3){ - // 已经旋转过图片,宽高需要互换 - Ext.get(currentImageId).parent.switchHeightWidth(imageBrowse); - } +// if(lastRotateIndex == 1 || lastRotateIndex == 3){ +// // 已经旋转过图片,宽高需要互换 +// Ext.get(currentImageId).parent.switchHeightWidth(imageBrowse); +// } + // 还原大小 Ext.get(currentImageId).parent.restore(imageBrowse); var url = WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!getSterilizationRecordPic.do?id=' + id + '&page=' + page + '&rotateIndex=' + curRotateIndex + '&time='+new Date(); var image = imageBrowse.dom;