| | |
| | | key: formData.__key, |
| | | columns: this.renderColumns(), |
| | | extraFromData: { |
| | | type: '', |
| | | type: 'DT00002', |
| | | }, |
| | | setFormData: this.setFormData |
| | | } |
| | |
| | | _this.setState({ |
| | | iconLoading: false, |
| | | }); |
| | | message.success("提交成功!"); |
| | | this.props.history.goBack() |
| | | }); |
| | | // Fetch.savePatrolCom(savedate) |
| | | // .then(res => { |
| | |
| | | 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) |
| | |
| | | { title: '通知内容', dataIndex: 'documentContent' }, |
| | | { title: '接受情况', dataIndex: 'groupType', render: (cur, item) => <span>{item.readNumber || 0}/{item.noticeNumber || 0}</span> }, |
| | | { title: '发布时间', dataIndex: 'createTime', render: (cur, item) => cur !== "" && cur != null ? moment(cur).format("YYYY-MM-DD HH:mm") : "" }, |
| | | { title: '操作', render: (text, record) => <a >下载</a> } |
| | | { title: '操作', render: (text, record) => <a onClick={() => this.cancle(record.id)}>查看</a> } |
| | | ]; |
| | | } |
| | | |
| | |
| | | key: formData.__key, |
| | | columns: this.renderColumns(), |
| | | extraFromData: { |
| | | type: '', |
| | | type: 'DT00001', |
| | | }, |
| | | setFormData: this.setFormData |
| | | } |