king
2020-01-19 b35e3f0bacdbadf5823e06fe8dc6e047089aae38
src/tabviews/tableshare/actionList/index.jsx
@@ -12,6 +12,7 @@
class MainAction extends Component {
  static propTpyes = {
    BID: PropTypes.string,
    Tab: PropTypes.any,
    type: PropTypes.string,
    MenuID: PropTypes.string,
    actions: PropTypes.array, // 搜索条件列表
@@ -39,7 +40,16 @@
   * @description 触发按钮操作
   */
  actionTrigger = (item, record) => {
    const { setting } = this.props
    const { setting, type, Tab, BID } = this.props
    if (type === 'sub' && Tab && Tab.supMenu && !BID) {
      notification.warning({
        top: 92,
        message: '需要上级主键值!',
        duration: 10
      })
      return
    }
    let _this = this
    let data = this.props.gettableselected() || []