king
2020-01-03 862b6cf69dc925a6138a7ebf79b782a5d7791202
src/templates/modalconfig/modalform/index.jsx
@@ -33,6 +33,8 @@
      _options = [..._options, 'resourceType', 'dataSource', 'valueField', 'valueText', 'orderBy', 'orderType']
    } else if (type === 'number') {
      _options = [..._options, 'decimal']
    } else if (type === 'fileupload') {
      _options = ['label', 'field', 'type', 'readonly', 'required']
    }
    if (type === 'select' || type === 'link') {
@@ -83,6 +85,8 @@
        _options = [..._options, 'resourceType', 'dataSource', 'valueField', 'valueText', 'orderBy', 'orderType']
      } else if (value === 'number') {
        _options = [..._options, 'decimal']
      } else if (value === 'fileupload') {
        _options = ['label', 'field', 'type', 'readonly', 'required']
      }
      if (value === 'select' || value === 'link') {
@@ -116,7 +120,7 @@
      }, () => {
        this.setState({
          formlist: this.state.formlist.map(form => {
            if (form.key === 'initval') {
            if (form.key === 'initval' && value !== 'fileupload') {
              form.hidden = false
            }
            return form