用ext.getCmp方法tabpanel的引用,然后调用它的方法添加啊
var topTab = window.parent.Ext.getCmp('content-panel');
if (topTab) {
topTab.addFeed(docNo, docNo, TaskUrl);
} else {
window.location.href = TaskUrl;
}
用ext.getCmp方法tabpanel的引用,然后调用它的方法添加啊
var topTab = window.parent.Ext.getCmp('content-panel');
if (topTab) {
topTab.addFeed(docNo, docNo, TaskUrl);
} else {
window.location.href = TaskUrl;
}