king
2021-01-15 76a4300654a18d228838c3f27455dc8e7a8cd616
src/tabviews/zshare/actionList/newpagebutton/index.jsx
@@ -17,7 +17,6 @@
    btn: PropTypes.object,            // 按钮
    selectedData: PropTypes.any,      // 子表中选择数据
    setting: PropTypes.any,           // 页面通用设置
    updateStatus: PropTypes.func,     // 按钮状态更新
  }
  state = {
@@ -49,7 +48,6 @@
   */
  actionTrigger = (triggerId, record) => {
    const { setting, btn, selectedData } = this.props
    const _this = this
    if (triggerId && btn.uuid !== triggerId) return
@@ -128,10 +126,11 @@
        okText: '支付成功',
        cancelText: '支付遇到问题',
        onOk() {
          _this.props.updateStatus('refresh', 'grid')
          // 支付后刷新界面
          MKEmitter.emit('refreshByButtonResult', btn.$menuId, 'grid', btn)
        },
        onCancel() {
          _this.props.updateStatus('refresh', 'grid')
          MKEmitter.emit('refreshByButtonResult', btn.$menuId, 'grid', btn)
        },
      })
      window.open(url)
@@ -170,6 +169,7 @@
      return (
        <Button
          type="link"
          title={show === 'icon' ? btn.label : ''}
          style={btn.btnstyle}
          icon={show === 'text' ? '' : (btn.icon || '')}
          onClick={(e) => {e.stopPropagation(); this.actionTrigger()}}