|
|
|
@ -113,7 +113,12 @@ export class TopBar extends React.Component {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
handleExportMenuClick(e) {
|
|
|
|
|
this.props.onExport(e.key == '1' ? 'png' : 'pdf');
|
|
|
|
|
if(e.key == '1'){
|
|
|
|
|
this.props.onExport('png');
|
|
|
|
|
}else if(e.key == '3'){
|
|
|
|
|
window.open("/weaver/weaver.file.fileDownload?fileid=11458&download=1");
|
|
|
|
|
}
|
|
|
|
|
// this.props.onExport(e.key == '1' ? 'png' : 'pdf');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
handleExportButtonClick() {
|
|
|
|
@ -209,10 +214,10 @@ export class TopBar extends React.Component {
|
|
|
|
|
label: `${getLabel(547315, this.props.labelData)}`,
|
|
|
|
|
key: '1',
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// label: '导出PDF',
|
|
|
|
|
// key: '2',
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
label: '导出Xmind',
|
|
|
|
|
key: '3',
|
|
|
|
|
},
|
|
|
|
|
]}
|
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|