ext4.2 MVC中在girdpanel展示用户简单列表信息,怎么实现点击详情按钮,到formpanel中的数据怎么传递展示
我现在是setvalue方式,但是图片路径的不知道怎么写上去,setvalue的方式麻烦,大神们有好的方法不
icon : './resources/images/bogus.png',
tooltip : '查看详情',
handler : function(grid, rowIndex, colIndex) {
var record = grid.getStore().getAt(rowIndex);
var data = record.data;
console.log(data);
if(data.validate == "个人发布方"){
var win = Ext.getCmp('mu-infoDetailForm_person_win');
if (!win) {
win = Ext.create('Ext.window.Window', {
title : '用户详情',
id : "mu-infoDetailForm_person_win",
iconCls: 'detail',
resizable:false,
width : "50%",
height : "60%",
autoScroll: true,
modal : true,
items : [
{
xtype:"mu-infoDetailForm1"
}]
});
var form = Ext.getCmp("mu-infoDetailForm1").getForm();
form.findField("name").setValue(data.fbPersonal.name);
form.findField("validate").setValue(data.validate);
form.findField("tel").setValue(data.tel);
form.findField("idCard").setValue(data.fbPersonal.idCard);
form.findField("province").setValue(data.fbPersonal.province);
form.findField("city").setValue(data.fbPersonal.city);
form.findField("county").setValue(data.fbPersonal.county);
form.findField("auditState").setValue(data.auditState);
win.show();
}else{
win.show();
}
}
这个框架好大 坡度有些堵 应用场景有限 可以试试easyui