king
2020-01-16 1a67732f77de8afd138b6e75235edcc4c0e9a166
src/templates/subtableconfig/index.jsx
@@ -314,7 +314,7 @@
    this.setState({
      modaltype: type === 'copy' ? 'actionCopy' : 'actionEdit',
      card: card,
      formlist: getActionForm(card, functip, this.state.config, this.props.permFuncField, 'subtable')
      formlist: getActionForm(card, functip, this.state.config, this.props.permFuncField)
    })
  }
@@ -1033,16 +1033,15 @@
          }
        })
        let refreshtype = element.type + 'loading'
        // 删除按钮元素
        let _delActions = _this.state.delActions
        if (element.type === 'action') {
          _delActions.push(element.card.uuid)
        }
        _this.setState({
          config: _config,
          delActions: [..._this.state.delActions, element.card.uuid],
          [refreshtype]: true
        }, () => {
          _this.setState({
            [refreshtype]: false
          })
          delActions: _delActions
        })
      },
      onCancel() {}
@@ -1564,17 +1563,13 @@
    }
    this.setState({
      [addType + 'loading']: true,
      config: {...config, [addType]: items}
    }, () => {
      notification.success({
        top: 92,
        message: '操作成功',
        duration: 2
      })
      this.setState({
        [addType + 'loading']: false
      })
    })
    notification.success({
      top: 92,
      message: '操作成功',
      duration: 2
    })
  }