Index: ssts-web/src/main/webapp/disinfectsystem/deviceMaintenance/deviceMaintenanceCostomInsForm.js =================================================================== diff -u -r41390 -r41398 --- ssts-web/src/main/webapp/disinfectsystem/deviceMaintenance/deviceMaintenanceCostomInsForm.js (.../deviceMaintenanceCostomInsForm.js) (revision 41390) +++ ssts-web/src/main/webapp/disinfectsystem/deviceMaintenance/deviceMaintenanceCostomInsForm.js (.../deviceMaintenanceCostomInsForm.js) (revision 41398) @@ -276,7 +276,6 @@ columnWidth : .5, layout : 'form', labelWidth : 90, - hidden:hideElement, id:'hideElement'+id, style:'margin-top:10px', items : [{ @@ -287,7 +286,14 @@ name : 'configItemOption'+id, allowBlank : allowBlank, value : value, - anchor : '100%' + anchor : '100%', + listeners:{ + render:function(){ + if(hideElement){ + top.Ext.getCmp("hideElement" + id).hide(); + } + } + } }] }; }else if(type == '文本框'){ @@ -336,7 +342,6 @@ layout : 'form', style:'margin-top:10px', labelWidth : 90, - hidden:hideElement, id:'hideElement'+id, items : [{ xtype : 'datefieldWithMin', @@ -348,7 +353,14 @@ readOnly : true, editable : false, allowBlank : allowBlank, - anchor : '100%' + anchor : '100%', + listeners:{ + render:function(){ + if(hideElement){ + top.Ext.getCmp("hideElement" + id).hide(); + } + } + } }] }; }else if(type == '时间段'){ @@ -380,7 +392,6 @@ columnWidth : .5, layout : 'form', labelWidth : 90, - hidden:hideElement, id:'hideElement'+id, style:'margin-top:10px', items : [{ @@ -393,7 +404,14 @@ readOnly : true, editable : false, allowBlank : allowBlank, - anchor : '100%' + anchor : '100%', + listeners:{ + render:function(){ + if(hideElement){ + top.Ext.getCmp("hideElement" + id).hide(); + } + } + } }] }; }else if(type == '单选'){ @@ -416,7 +434,6 @@ layout : 'form', labelWidth : 90, style:'margin-top:10px', - hidden:hideElement, id:'hideElement'+id, items : [{ xtype:'hidden', @@ -448,6 +465,11 @@ triggerItemAction(oldTriggerItemIds,"hide"); triggerItemAction(valueTriggerItemIds,"show"); top.Ext.getCmp("triggerItemIds" + id).setValue(valueTriggerItemIds); + }, + render:function(){ + if(hideElement){ + top.Ext.getCmp("hideElement" + id).hide(); + } } } }]