From 42fae277ae5ebe794fc070bf38482a919eb661fc Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 25 十一月 2020 14:36:02 +0800 Subject: [PATCH] 2020-11-25 --- src/menu/components/search/main-search/index.jsx | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/menu/components/search/main-search/index.jsx b/src/menu/components/search/main-search/index.jsx index 982ab49..53be372 100644 --- a/src/menu/components/search/main-search/index.jsx +++ b/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> -- Gitblit v1.8.0