king
2021-11-17 fe5dc955911feb6c376298e618de673da166fcab
src/templates/formtabconfig/actionform/index.jsx
@@ -79,8 +79,7 @@
    let _options = this.getOptions(card.btnType, _intertype)
    this.setState({
      formlist: this.props.formlist.map(item => {
    let formlist = this.props.formlist.map(item => {
        if (item.key === 'class') {
          item.options = btnClasses
        } else if (item.key === 'icon') {
@@ -114,7 +113,36 @@
        item.hidden = !_options.includes(item.key)
        return item
      })
    })
    formlist.push({
      type: 'radio',
      key: 'afterExecSuccess',
      label: '成功后',
      initVal: card.afterExecSuccess || 'close',
      required: true,
      options: [{
        value: 'close',
        text: '关闭'
      }, {
        value: 'notclose',
        text: '不关闭'
      }]
    },
    {
      type: 'radio',
      key: 'afterExecError',
      label: '失败后',
      initVal: card.afterExecError || 'notclose',
      required: true,
      options: [{
        value: 'close',
        text: '关闭'
      }, {
        value: 'notclose',
        text: '不关闭'
      }]
    },)
    this.setState({formlist})
  }
  componentDidMount () {