import React, { Fragment } from 'react'; import { inject, observer } from 'mobx-react'; import { toJS } from 'mobx'; import { Top, Authority} from '../../../pc4backstage/hrmengine/public/valhalla/components/index.js'; import '../style/sensitiveWordProcess.less' @inject("senstiveWordProcessStore") @observer export default class SensitiveWordProcess extends React.Component { componentWillMount() { const {senstiveWordProcessStore: { setId },params:{id}} = this.props; setId(id); } componentWillReceiveProps(nextProps) { if (this.props.location.key !== nextProps.location.key) { this.init() } } componentDidMount() { this.init() } init = () => { const { senstiveWordProcessStore: { init } } = this.props; init(); } render() { const { senstiveWordProcessStore: { topStore, formStore: { form }, searchGroupProps, authorityStore } } = this.props; return (
{form.render(searchGroupProps)}
); } }