| | |
| | | if (btn.execMode === 'pop') { |
| | | this.updateStatus('start') |
| | | this.setState({ |
| | | tabledata: data |
| | | tabledata: data, |
| | | btnconfig: btn.modal ? btn.modal : this.state.btnconfig |
| | | }, () => { |
| | | this.improveAction() |
| | | }) |
| | |
| | | loading: false |
| | | }) |
| | | |
| | | this.props.updateStatus('refresh', btn.execSuccess) |
| | | this.props.updateStatus('refresh', btn.execSuccess, btn) |
| | | } |
| | | |
| | | /** |
| | |
| | | loading: false |
| | | }) |
| | | |
| | | this.props.updateStatus('refresh', btn.execError) |
| | | this.props.updateStatus('refresh', btn.execError, btn) |
| | | } |
| | | |
| | | /** |
| | |
| | | const { loadingNumber, loading } = this.state |
| | | |
| | | if (show === 'actionList') { |
| | | return <div style={{display: 'inline-block'}}> |
| | | return <div style={{display: 'inline-block'}} onClick={(e) => e.stopPropagation()}> |
| | | <Button |
| | | icon={btn.icon} |
| | | loading={loading} |
| | |
| | | {this.getModels()} |
| | | </div> |
| | | } else { // icon、text、 all 卡片 |
| | | return <div style={{display: 'inline-block'}}> |
| | | return <div style={{display: 'inline-block'}} onClick={(e) => e.stopPropagation()}> |
| | | <Button |
| | | type="link" |
| | | loading={loading} |