king
2020-09-22 5944c2832820a8bfa86e3efb5085f5a2463897f9
src/menu/searchcomponent/index.jsx
@@ -1,6 +1,7 @@
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'
@@ -19,7 +20,7 @@
class SearchComponent extends Component {
  static propTpyes = {
    config: PropTypes.object,        // 配置信息
    sysRoles: PropTypes.array,       // 角色列表,黑名单
    // optionLibs: PropTypes.any,       // 下拉字典
    updatesearch: PropTypes.func     // 更新
  }
@@ -86,7 +87,7 @@
    this.setState({
      visible: true,
      card: card,
      formlist: getSearchForm(card, this.props.sysRoles, linkableFields)
      formlist: getSearchForm(card, this.props.menu.sysRoles, linkableFields)
    })
  }
@@ -304,4 +305,14 @@
  }
}
export default SearchComponent
const mapStateToProps = (state) => {
  return {
    menu: state.customMenu
  }
}
const mapDispatchToProps = () => {
  return {}
}
export default connect(mapStateToProps, mapDispatchToProps)(SearchComponent)