forked from huge/frontEnd/hugeOA

Mr Ke
2020-04-29 2ea56ed08b58386f0612635101b1acd51cd4a44c
src/components/common/NotifyList/index.jsx
@@ -25,10 +25,11 @@
    fetch({
      url: `api/document/getNewNotice`
    }).then(res => {
      console.log('res', res);
      this.setState({
        content: res.documentContent || ''
      })
      if( res ) {
        this.setState({
          content: res.documentTitle || ''
        })
      }
    })
  }
@@ -41,7 +42,7 @@
  renderDom = () => {
    let { content } = this.state;
    return <div className="notify-list-main-dom">
      <span className="notify-list-main-dom-msg">最新通知:公司本部从XX时间开始,调整省略很长很长的内容调整省略很长很长的内容公司本部从XX时间开始,调整省略很长很长的内容调整省略很长很长的内容公司本部从XX时间开始,调整省略很长很长的内容调整省略很长很长的内容</span>
      <span className="notify-list-main-dom-msg">最新通知:{content}</span>
      <span className="notify-list-main-dom-fuc" onClick={this.onClick}>[查看全部]</span>
    </div>
  }