/* eslint-disable */
|
/**柯礼钦
|
* 4/6/2020, 10:16:55 AM
|
* doc comment for the file goes here
|
*/
|
|
/** 首页 -- 工作台 */
|
import React, { ReactNode, ReactEventHandler, Component } from 'react';
|
import BreadcrumbView from '../../../components/common/BreadcrumbView';
|
import WorkbenchPage from '../../../components/oa/index/workbench'
|
|
export default class Workbench extends Component {
|
constructor(props) {
|
super(props);
|
this.config = {
|
};
|
this.state = {
|
};
|
}
|
|
componentWillMount() { }
|
|
componentDidMount() {
|
// let _this = this;
|
|
// this.iframeWin = this.refs.iframe.contentWindow;
|
// this.refs.iframe && this.refs.iframe.addEventListener("load", function () {
|
// //代码能执行到这里说明已经载入成功完毕了
|
// console.log('执行完');
|
// //这里是回调函数
|
// _this.iframeWin.postMessage({
|
// token: window.localStorage.getItem('token') || undefined
|
// }, '*');
|
// }, false);
|
}
|
|
componentDidShow() { }
|
|
render() {
|
return (
|
<div className="workbench-page-main flex-box-column">
|
<div className="flex-1">
|
<WorkbenchPage {...this.props} />
|
{/* <iframe
|
className="h-100"
|
style={{ width: '100%' }}
|
onLoad={() => { }}
|
ref="iframe"
|
src={'http://localhost:3000/#/index'}
|
width="100%"
|
height={this.state.iFrameHeight}
|
scrolling="no"
|
frameBorder="0"
|
/> */}
|
|
</div>
|
</div>
|
)
|
}
|
}
|