| | |
| | | |
| | | componentDidMount () { |
| | | this.getBillPrintTemp() |
| | | // MKEmitter.addListener('revert', this.revert) |
| | | MKEmitter.addListener('revert', this.revert) |
| | | MKEmitter.addListener('pasteButton', this.pasteButton) |
| | | } |
| | | // dms-trans |
| | | revert = (id, type) => { |
| | | if (id !== this.props.config.uuid || type !== 'action') return |
| | | |
| | | // revert = () => { |
| | | // this.setState({ |
| | | // actionlist: fromJS(this.props.config.action).toJS() |
| | | // }) |
| | | // } |
| | | this.setState({ |
| | | actionlist: fromJS(this.props.config.action).toJS() |
| | | }) |
| | | } |
| | | |
| | | pasteButton = (MenuId, btn) => { |
| | | const { config } = this.props |
| | |
| | | this.setState = () => { |
| | | return |
| | | } |
| | | // MKEmitter.removeListener('revert', this.revert) |
| | | MKEmitter.removeListener('revert', this.revert) |
| | | MKEmitter.removeListener('pasteButton', this.pasteButton) |
| | | } |
| | | |