Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/deviceInterface/deviceInterfaceForm.js =================================================================== diff -u -r26637 -r27598 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/deviceInterface/deviceInterfaceForm.js (.../deviceInterfaceForm.js) (revision 26637) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/deviceInterface/deviceInterfaceForm.js (.../deviceInterfaceForm.js) (revision 27598) @@ -78,14 +78,12 @@ layout : 'form', columnWidth : 0.5, labelWidth : 70, - id:'portWrap', -// hidden: true, items : [ { xtype : 'numberfield', fieldLabel : "端口", name : "port", id : "port", - minValue: 0, + minValue: 1, maxValue: 65535, allowBlank : true, anchor : '97.5%' @@ -156,7 +154,6 @@ listeners : { select : function(thiz,record,index){ onDeviceBrandChange(); - } } }] @@ -237,6 +234,9 @@ method : 'GET', waitMsg : '正在加载数据,请稍候', success : function(form, action) { + if(action.result.data.port == 0){ + top.Ext.getCmp("port").setValue(''); + } top.Ext.getCmp("oldDeviceId").setValue(action.result.data.deviceId); if((action.result.data.deviceBrand == XINHUA || action.result.data.deviceBrand == GETINGE) && action.result.data.interfaceType == ''){ @@ -276,10 +276,10 @@ function onDeviceBrandChange(){ var deviceBrand = top.Ext.getCmp('deviceBrand').getValue(); - hideCmt('portWrap','port',true); hideCmt('deviceIdWrap','deviceId',true); hideCmt('deviceModelWrap','deviceModel',true); hideCmt('interfaceTypeWrap','interfaceType',true); + showCmt('userNameWrap','userName',false); showCmt('folderPathWrap','folderPath',false); showCmt('passwordWrap','password',false); @@ -292,7 +292,6 @@ data : [[MARGE_MODEL_120],[ MARGE_MODEL_150],[MARGE_MODEL_DRYER]] }) showCmt('deviceIdWrap','deviceId',false); - showCmt('portWrap','port',false); showCmt('deviceModelWrap','deviceModel',false,margeModelComboStore); hideCmt('userNameWrap','userName',true); @@ -316,8 +315,6 @@ }) showCmt('interfaceTypeWrap','interfaceType',true,interfaceTypeComboStore); }else{ -// top.Ext.getCmp('deviceIdWrap').hide(); -// top.Ext.getCmp('portWrap').hide(); } }