king
2022-10-25 5891206952e2ff63e87aed2f47df5324b019d32e
src/menu/components/card/cardcellcomponent/index.jsx
@@ -505,7 +505,6 @@
      profVisible: true,
      card: element
    })
    MKEmitter.emit('modalStatus', '验证信息')
  }
  /**
@@ -529,8 +528,6 @@
      }, () => {
        this.props.updateElement(_elements)
      })
      MKEmitter.emit('modalStatus', false)
    })
  }
@@ -563,18 +560,18 @@
    }
  }
  handleSave = (_cards, btn, modal) => {
  handleSave = (componentId, btnId, modal) => {
    const { cards } = this.props
    const { elements } = this.state
    if (cards.uuid !== _cards.uuid) return
    if (cards.uuid !== componentId) return
    
    let _index = elements.findIndex(cell => cell.uuid === btn.uuid)
    let _index = elements.findIndex(cell => cell.uuid === btnId)
    if (_index === -1) return
    let _elements = elements.map(cell => {
      if (cell.uuid === btn.uuid) {
      if (cell.uuid === btnId) {
        cell.modal = modal
      }
@@ -751,11 +748,9 @@
              if (this.verifyRef.handleCancel) {
                this.verifyRef.handleCancel().then(() => {
                  this.setState({ profVisible: false })
                  MKEmitter.emit('modalStatus', false)
                })
              } else {
                this.setState({ profVisible: false })
                MKEmitter.emit('modalStatus', false)
              }
            }}
            destroyOnClose