| | |
| | | import React, {Component} from 'react' |
| | | import PropTypes from 'prop-types' |
| | | import { is, fromJS } from 'immutable' |
| | | import {connect} from 'react-redux' |
| | | import { Modal, notification } from 'antd' |
| | | import moment from 'moment' |
| | | |
| | |
| | | class SearchComponent extends Component { |
| | | static propTpyes = { |
| | | config: PropTypes.object, // 配置信息 |
| | | sysRoles: PropTypes.array, // 角色列表,黑名单 |
| | | // optionLibs: PropTypes.any, // 下拉字典 |
| | | updatesearch: PropTypes.func // 更新 |
| | | } |
| | | |
| | |
| | | this.setState({ |
| | | visible: true, |
| | | card: card, |
| | | formlist: getSearchForm(card, this.props.sysRoles, linkableFields) |
| | | formlist: getSearchForm(card, this.props.menu.sysRoles, linkableFields) |
| | | }) |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | export default SearchComponent |
| | | const mapStateToProps = (state) => { |
| | | return { |
| | | menu: state.customMenu |
| | | } |
| | | } |
| | | |
| | | const mapDispatchToProps = () => { |
| | | return {} |
| | | } |
| | | |
| | | export default connect(mapStateToProps, mapDispatchToProps)(SearchComponent) |