king
2020-11-25 42fae277ae5ebe794fc070bf38482a919eb661fc
src/menu/components/search/main-search/index.jsx
@@ -142,7 +142,6 @@
   * @description 搜索条件编辑,获取搜索条件表单信息
   */
  handleSearch = (cell) => {
    const { menu } = this.props
    const { card } = this.state
    let linkableFields = []
@@ -158,7 +157,7 @@
    this.setState({
      visible: true,
      editcard: cell,
      formlist: getSearchForm(cell, menu.sysRoles, linkableFields)
      formlist: getSearchForm(cell, linkableFields)
    })
  }
@@ -339,7 +338,6 @@
  }
  render() {
    const { menu } = this.props
    const { dict, card, visible, sqlVerifing } = this.state
    return (
@@ -354,7 +352,7 @@
        <Popover overlayClassName="mk-popover-control-wrap" mouseLeaveDelay={0.2} mouseEnterDelay={0.2} content={
          <div className="mk-popover-control">
            <Icon className="plus" title="添加" onClick={this.addSearch} type="plus" />
            <WrapComponent config={card} sysRoles={menu ? menu.sysRoles : []} updateConfig={this.updateComponent}/>
            <WrapComponent config={card} updateConfig={this.updateComponent}/>
            <Icon className="style" title="调整样式" onClick={this.changeStyle} type="font-colors" />
            <Icon className="close" title="delete" type="delete" onClick={() => this.props.deletecomponent(card.uuid)} />
          </div>