| | |
| | | * @param {*} position // 刷新位置 |
| | | * @param {*} btn // 执行的按钮 |
| | | */ |
| | | refreshByButtonResult = (menuId, position, btn) => { |
| | | refreshByButtonResult = (menuId, position) => { |
| | | const { config, BID } = this.state |
| | | |
| | | if (config.uuid !== menuId) return |
| | |
| | | } |
| | | |
| | | render() { |
| | | const { config, loading, treeNodes, expandedKeys, selectedKeys } = this.state |
| | | const { BID, BData, config, loading, treeNodes, expandedKeys, selectedKeys } = this.state |
| | | |
| | | let extra = config.action && config.action.length > 0 |
| | | |
| | |
| | | <span className={'title ' + (config.wrap.searchable !== 'true' ? 'search-unable' : '')}>{config.wrap.title}</span> |
| | | {config.wrap.searchable === 'true' ? <Search allowClear onSearch={this.treeFilter} /> : null} |
| | | </div> : null} |
| | | {extra ? <MainAction |
| | | BID={BID} |
| | | setting={config.setting} |
| | | actions={config.action} |
| | | BData={BData} |
| | | columns={config.columns} |
| | | selectedData={[]} |
| | | /> : null} |
| | | {treeNodes && treeNodes.length > 0 ? <div className="tree-box" style={{height: config.wrap.contentHeight}}> |
| | | <Tree |
| | | blockNode |