| | |
| | | * @description 搜索条件编辑,获取搜索条件表单信息 |
| | | */ |
| | | handleSearch = (cell) => { |
| | | const { menu } = this.props |
| | | const { card } = this.state |
| | | let linkableFields = [] |
| | | |
| | |
| | | this.setState({ |
| | | visible: true, |
| | | editcard: cell, |
| | | formlist: getSearchForm(cell, menu.sysRoles, linkableFields) |
| | | formlist: getSearchForm(cell, linkableFields) |
| | | }) |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | render() { |
| | | const { menu } = this.props |
| | | const { dict, card, visible, sqlVerifing } = this.state |
| | | |
| | | return ( |
| | |
| | | <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> |