问题描述
chooseOrgTree.superclass.constructor.call(this, {width: 200, split: true,root : this.orgTreeRoot,loader: new Ext.tree.TreeLoader({ dataUrl: "/datadict/DetailPaceProjectServlet?parameter=queryRep",clearOnLoad: false,requestMethod: "GET",processResponse: function(response,node,callback,scope){ var json = response.responseText; try{ var o = eval("("+json+")"); node.beginUpdate(); for(var i = 0, len = o.length; i < len; i++){ var n = this.createNode(o[i]); if(n){ node.appendChild(n); } } node.endUpdate(event.stopEvent()); this.runCallback(callback, scope || node, [node]); }catch(e){ this.handleFailure(response); }}}),listeners: {'contextmenu':{fn: this.onContextData,scope: this}, "click": function(node){DictInfoPanel(node); } }});这样, DictInfoPanel 是这样的 ,其实DictInfoPanel这里不知道该怎么写了DictInfoPanel = function(node){ //获得右侧tab对象 Ext.Ajax.request({waitMsg : '读取数据。。。',url : "/datadict/DetailPaceProjectServlet?paraId="+node.id,method : "GET",callback : function(args, success, response) {if(success){var p = this.add(new DocPanel({ id: id, cclass : cls, html : response.responseText, iconCls: Docs.icons[cls] }));this.setActiveTab(p);}},scope: this}); var panel = Ext.getCmp("dataDictCenterPanel"); var tab = panel.findById(node.id); if(!tab){ tab = panel.add({ id: node.id, xtype:"panel", title:node.text, closable:true, layout:"fit", items:[grid] }); }panel.setActiveTab(tab); } 问题补充:Marxist_1943 写道
解决方案
加个参数params:{参数名:"参数值",参数名:"参数值"}
解决方案二:
到底在问什么呢?