81,122
社区成员




{
xtype : 'textfield',
fieldLabel : '单位logo',
id : 'logourl',
name : 'logourl',
width : 130,
height : 60,
inputType : 'image'
}
myForm.getForm().load({
url : 'order/auditOrder.do?id=' + idvalue,
waitMsg : '正在读取数据,请稍候...',
success : function(form,action){ myForm.findById('logourl').getEl().dom.src = action.result.logourl;
}
});
{
xtype : 'dataview',
fieldLabel : '广告设计',
store : new Ext.data.JsonStore({
url : 'getAttchPath.do?id='+idvalue+'&type=sheji',
root : 'root',
fields : ['attchPath', 'attchName'],
autoLoad:true
}),
tpl : new Ext.XTemplate(
'<tpl for=".">',
'<div class="ux-status-view-wrap">',
'<div class="ux-status-view-roompic"><a href={attchPath} target="_blank"><img src={attchPath} title={attchName} width="130" height = "60"></a></div>',
'</div></tpl>'),
overClass : 'x-view-over',
itemSelector : 'div.thumb-wrap',
emptyText : 'No images to display'
}
Ext.getCmp('logourl').on('click',function (){
window.open('圖片的URL');
});
或者
{
xtype : 'textfield',
fieldLabel : '单位logo',
id : 'logourl',
name : 'logourl',
width : 130,
height : 60,
inputType : 'image'
},handler:function(){
window.open('圖片的URL');
}