king
2020-11-25 42fae277ae5ebe794fc070bf38482a919eb661fc
src/templates/modalconfig/index.jsx
@@ -436,21 +436,10 @@
      card.linkSubField = card.linkSubField.filter(item => fields.includes(item))
    }
    let roleList = []
    if (this.props.sysRoles && this.props.sysRoles.length > 0) {
      roleList = this.props.sysRoles.map(role => {
        return {
          uuid: role.uuid,
          field: role.value,
          label: role.text
        }
      })
    }
    this.setState({
      visible: true,
      card: card,
      formlist: getModalForm(card, _inputfields, _linkableFields, _linksupFields, !!this.props.editTab, roleList)
      formlist: getModalForm(card, _inputfields, _linkableFields, _linksupFields, !!this.props.editTab)
    })
  }
@@ -1311,10 +1300,8 @@
  }
}
const mapStateToProps = (state) => {
  return {
    sysRoles: state.sysRoles
  }
const mapStateToProps = () => {
  return {}
}
const mapDispatchToProps = () => {