forked from huge/frontEnd/hugeOA

Mr Ke
2020-05-27 fa71559c92ce8f7429971370ca4bd1139c903621
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* 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>
    )
  }
}