king
2020-06-12 89e7167a83e0d8409ca87698e4c08651a37cc26e
src/tabviews/verupmanage/actionList/index.jsx
@@ -23,7 +23,7 @@
    setting: PropTypes.any,           // 页面通用设置
    ContainerId: PropTypes.any,       // tab页面ID,用于弹窗控制
    refreshdata: PropTypes.func,      // 执行完成后数据刷新
    gettableselected: PropTypes.func  // 获取表格中数据
    selectedData: PropTypes.array     // 表格选中数据
  }
  state = {
@@ -45,7 +45,7 @@
   * @description 触发按钮操作
   */
  actionTrigger = (item, record) => {
    const { setting, type, Tab, BID } = this.props
    const { setting, type, Tab, BID, selectedData } = this.props
    if (type === 'sub' && Tab && Tab.supMenu && !BID) {
      notification.warning({
@@ -57,7 +57,7 @@
    }
    let _this = this
    let data = this.props.gettableselected() || []
    let data = selectedData || []
    
    if (record) { // 表格中触发按钮
      data = [record]