| | |
| | | columns={logcolumns} |
| | | selectedData={[data]} |
| | | ContainerId={ContainerId} |
| | | updateStatus={this.updateStatus} |
| | | updateStatus={this.props.refreshdata} |
| | | /> |
| | | ) |
| | | } else if (item.OpenType === 'popview') { |
| | |
| | | BData={BData} |
| | | setting={setting} |
| | | selectedData={[data]} |
| | | updateStatus={this.updateStatus} |
| | | updateStatus={this.props.refreshdata} |
| | | /> |
| | | ) |
| | | } else if (item.OpenType === 'tab' || item.OpenType === 'blank') { |
| | |
| | | MenuID={MenuID} |
| | | setting={setting} |
| | | selectedData={[data]} |
| | | updateStatus={this.updateStatus} |
| | | updateStatus={this.props.refreshdata} |
| | | /> |
| | | ) |
| | | } else if (item.OpenType === 'innerpage' || item.OpenType === 'outerpage') { |
| | |
| | | show={show} |
| | | setting={setting} |
| | | selectedData={[data]} |
| | | updateStatus={this.updateStatus} |
| | | updateStatus={this.props.refreshdata} |
| | | /> |
| | | ) |
| | | } else if (item.OpenType === 'funcbutton') { |
| | |
| | | show={show} |
| | | setting={setting} |
| | | selectedData={[data]} |
| | | updateStatus={this.updateStatus} |
| | | updateStatus={this.props.refreshdata} |
| | | /> |
| | | ) |
| | | } else if (item.funcType === 'print') { |
| | |
| | | setting={setting} |
| | | selectedData={[data]} |
| | | ContainerId={ContainerId} |
| | | updateStatus={this.updateStatus} |
| | | updateStatus={this.props.refreshdata} |
| | | /> |
| | | ) |
| | | } |
| | |
| | | |
| | | return null |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * @description 操作完成后,数据刷新 |
| | | */ |
| | | updateStatus = (type, positon) => { |
| | | if (type === 'refresh') { |
| | | this.props.refreshdata(positon) |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | columns={this.props.logcolumns} |
| | | selectedData={[]} |
| | | ContainerId={this.props.ContainerId} |
| | | updateStatus={this.updateStatus} |
| | | updateStatus={this.props.refreshdata} |
| | | /> |
| | | </div> |
| | | </Card> : null} |
| | |
| | | this.props.handleTableId(this.props.tableId, _id, data) |
| | | } |
| | | |
| | | /** |
| | | * @description 操作完成后,数据刷新 |
| | | */ |
| | | updateStatus = (type, positon, btn) => { |
| | | if (type === 'refresh') { |
| | | this.props.refreshdata(positon, btn) |
| | | } |
| | | } |
| | | |
| | | render() { |
| | | const { plot, data, loading, BID, BData, Tab, MenuID, config, logcolumns, ContainerId, MenuName } = this.props |
| | | const { card, colMap, selectKey, actionList } = this.state |
| | |
| | | show="icon" |
| | | MenuName={MenuName} |
| | | setting={config.setting} |
| | | updateStatus={() => {}} |
| | | updateStatus={this.updateStatus} |
| | | /> |
| | | ) |
| | | } else { |
| | |
| | | MenuName={MenuName} |
| | | setting={config.setting} |
| | | getexceloutparam={this.props.getexceloutparam} |
| | | updateStatus={() => {}} |
| | | updateStatus={this.updateStatus} |
| | | /> |
| | | ) |
| | | } |
| | |
| | | setting={config.setting} |
| | | ContainerId={ContainerId} |
| | | switchCard={this.switchCard} |
| | | refreshdata={this.props.refreshdata} |
| | | refreshdata={this.updateStatus} |
| | | /> |
| | | )) |
| | | } |
| | |
| | | setting={config.setting} |
| | | ContainerId={ContainerId} |
| | | switchCard={() => {}} |
| | | refreshdata={this.props.refreshdata} |
| | | refreshdata={this.updateStatus} |
| | | /> : null |
| | | } |
| | | {(loading || !card.insertAction) && (!data || data.length === 0) ? <Empty description={false}/> : null} |