king
2025-03-21 fdce913ce7b9d55c34a2abd7a94ee377a4869b9a
src/templates/sharecomponent/actioncomponent/index.jsx
@@ -53,15 +53,17 @@
  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
@@ -384,7 +386,7 @@
    this.setState = () => {
      return
    }
    // MKEmitter.removeListener('revert', this.revert)
    MKEmitter.removeListener('revert', this.revert)
    MKEmitter.removeListener('pasteButton', this.pasteButton)
  }