king
2020-01-09 f068c617b918fc7817c11724424cb1a9149ec3a2
src/templates/modalviewconfig/tabform/index.jsx
@@ -1,6 +1,7 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import { Form, Row, Col, Input, Select, Icon, Tooltip } from 'antd'
import { formRule } from '@/utils/option.js'
import Utils from '@/utils/utils.js'
import './index.scss'
@@ -84,18 +85,6 @@
          })
        })
      })
      // this.setState({
      //   formlist: this.state.formlist.map(form => {
      //     return form
      //   })
      // }, () => {
      //   this.setState({
      //     formlist: this.state.formlist.map(form => {
      //       return form
      //     })
      //   })
      // })
    }
  }
@@ -116,6 +105,10 @@
                  {
                    required: !!item.required,
                    message: this.props.dict['form.required.input'] + item.label + '!'
                  },
                  {
                    max: formRule.input.max,
                    message: formRule.input.message
                  }
                ]
              })(<Input placeholder="" autoComplete="off" disabled={item.readonly} />)}