| | |
| | | * 3、设置编辑参数项-formlist |
| | | */ |
| | | handleForm = (_card) => { |
| | | const { componentConfig } = this.props |
| | | const { componentConfig, menu } = this.props |
| | | let card = fromJS(_card).toJS() |
| | | |
| | | const { config } = this.state |
| | |
| | | } |
| | | |
| | | let roleList = [] |
| | | if (this.props.sysRoles && this.props.sysRoles.length > 0) { |
| | | roleList = this.props.sysRoles.map(role => { |
| | | if (menu.sysRoles && menu.sysRoles.length > 0) { |
| | | roleList = menu.sysRoles.map(role => { |
| | | return { |
| | | uuid: role.uuid, |
| | | field: role.value, |
| | |
| | | |
| | | const mapStateToProps = (state) => { |
| | | return { |
| | | sysRoles: state.sysRoles, |
| | | menu: state.customMenu |
| | | } |
| | | } |