【发布时间】:2016-08-18 07:29:46
【问题描述】:
单击按钮时,我将打开一个带有中止按钮的弹出窗口。并在我得到响应后向服务器发送请求,我用下载按钮打开新的弹出窗口并关闭第一个。第一次它工作正常。但第二次我的中止和下载按钮消失了。当我检查弹出窗口时,我可以看到代码端存在 abort n 下载按钮,但在用户界面上不可见。
if (_data.status == "inProcess" ) {
exportPopup.show();
} else if (_data.status == "success") {
var height= exportPopup.getHeight();
exportPopup.close();
downloadPopup = Ext.create('Ext.window.Window', {
name: 'downloadReport',
header: false,
id: 'downloadPopWin',
constrain: true,
closable: false,
width: 400,
height: height,
resizable: false,
bodyStyle: 'background-color : white;',
buttonAlign: 'center',
layout: {
type: 'hbox',
align: 'center',
pack: 'center'
},
items:
{
xtype: 'label',
itemId:'exportStatus',
margin : '50 0 0 0',
text: 'Export completed.',
//style: 'font-weight: bold;'
},
buttons:[
{
//xtype: 'button',
text: 'Download',
id: "btnDownloadReport",
//margin : '20 0 20 180',
handler: function(_button) {
downloadPopup.close();
ReportUtil.downloadReportData(me, _data);
}
}
]
});
downloadPopup.show();
}
【问题讨论】:
-
请给我小提琴,在你的问题中没有额外的弹出代码也请提供
标签: extjs4.1