forked from huge/frontEnd/hugeOA

liuwh
2020-04-06 f2beb1a99946d07a6c7d17efbd0fb162bebeaf87
src/components/page/DocumentEditPage/index.jsx
@@ -99,6 +99,8 @@
      _this.setState({
        iconLoading: false,
      });
      message.success("提交成功!");
      this.props.history.goBack()
    });
    // Fetch.savePatrolCom(savedate)
    //   .then(res => {
@@ -114,9 +116,9 @@
  cancle = () => {
    // this.props.history.push("/index/workbench");
    const { id } = this.props.match.params;
    if(id){
    if (id) {
      this.props.history.goBack()
    }else {
    } else {
      this.props.history.push("/index/workbench");
    }
    // console.log(this.props)
@@ -228,8 +230,8 @@
            {savedate.documentType == 'DT00001' &&
              <Row gutter={16} >
                <Col className="gutter-row" >
                  <Upload disabled={disabled} {...props}>
                    <Button>
                  <Upload {...props}>
                    <Button disabled={disabled}>
                      <Icon type="upload" />上传文件</Button>
                  </Upload>
                </Col>