| | |
| | | |
| | | componentDidMount() { } |
| | | |
| | | cancle = (id) => { |
| | | console.log(id) |
| | | // // this.props.history.push("/document/create?id=" + id); |
| | | this.props.history.push({ pathname: "/document/create" }); |
| | | } |
| | | |
| | | renderColumns = () => { |
| | | return [ |
| | | { title: '通知标题', dataIndex: 'documentItle;' }, |
| | | { title: '通知标题', dataIndex: 'documentTitle' }, |
| | | { 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 href="" onClick={() => this.cancle(record.id)}>查看</a> } |
| | | ]; |
| | | } |
| | | |
| | |
| | | formData={formData} |
| | | setFormData={this.setFormData} |
| | | data={[ |
| | | { type: 'input', name: '标题', label: '标题', key: 'title' }, |
| | | { type: 'input', name: '标题', label: '标题', key: 'documentTitle' }, |
| | | { |
| | | type: 'rangePicker', |
| | | label: '发布时间', |
| | |
| | | render() { |
| | | return ( |
| | | <div className="System-main"> |
| | | <BreadcrumbView data={[{ name: '工作制度' }]} /> |
| | | <BreadcrumbView data={[{ name: '规章制度' }]} /> |
| | | {/* <SystemPage /> */} |
| | | <RulesList {...this.prosp} /> |
| | | <RulesList {...this.props} /> |
| | | </div> |
| | | ) |
| | | } |