Index: ssts-web/src/main/webapp/disinfectsystem/reportforms/supplyRoomQualityQuota.js =================================================================== diff -u -r33826 -r33848 --- ssts-web/src/main/webapp/disinfectsystem/reportforms/supplyRoomQualityQuota.js (.../supplyRoomQualityQuota.js) (revision 33826) +++ ssts-web/src/main/webapp/disinfectsystem/reportforms/supplyRoomQualityQuota.js (.../supplyRoomQualityQuota.js) (revision 33848) @@ -176,26 +176,6 @@ anchor: '95%', value: defaultQureyDateType, listeners: { - render: function () { - setTimeout(function () { - if (defaultQureyDateType == '日期范围') { - Ext.getCmp('yearSearch_id').hide(); - Ext.getCmp('monthSearch_id').hide(); - Ext.getCmp('startDate_id').show(); - Ext.getCmp('endDate_id').show(); - } else if(defaultQureyDateType == '月份'){ - Ext.getCmp('yearSearch_id').hide(); - Ext.getCmp('monthSearch_id').show(); - Ext.getCmp('startDate_id').hide(); - Ext.getCmp('endDate_id').hide(); - } else { - Ext.getCmp('yearSearch_id').show(); - Ext.getCmp('monthSearch_id').hide(); - Ext.getCmp('startDate_id').hide(); - Ext.getCmp('endDate_id').hide(); - } - }, 200); - }, select: function () { if ('年份' == this.value) { Ext.getCmp('yearSearch_id').show(); @@ -360,7 +340,29 @@ margins : '0 0 0 0', layout : 'fit', items : reportForm - }] + }], + listeners:{ + render: function () { + setTimeout(function () { + if (defaultQureyDateType == '日期范围') { + Ext.getCmp('yearSearch_id').hide(); + Ext.getCmp('monthSearch_id').hide(); + Ext.getCmp('startDate_id').show(); + Ext.getCmp('endDate_id').show(); + } else if(defaultQureyDateType == '月份'){ + Ext.getCmp('yearSearch_id').hide(); + Ext.getCmp('monthSearch_id').show(); + Ext.getCmp('startDate_id').hide(); + Ext.getCmp('endDate_id').hide(); + } else { + Ext.getCmp('yearSearch_id').show(); + Ext.getCmp('monthSearch_id').hide(); + Ext.getCmp('startDate_id').hide(); + Ext.getCmp('endDate_id').hide(); + } + }, 400); + } + } }); }); \ No newline at end of file