king
2021-03-23 a8e94242166881639cecf3809e45ca527233ebd7
src/templates/zshare/createinterface/index.jsx
@@ -7,6 +7,7 @@
import MutilForm from './mutilform'
import Utils from '@/utils/utils.js'
import options from '@/store/options.js'
import { updateForm } from '@/utils/utils-update.js'
import Api from '@/api'
import './index.scss'
@@ -422,20 +423,14 @@
                _LongParam = ''
              }
            }
            let fields = []
            if (_LongParam && _LongParam.type === 'Modal') {
              if (_LongParam.groups.length > 0) {
                _LongParam.groups.forEach(group => {
                  fields = [...fields, ...group.sublist]
                })
              } else {
                fields = _LongParam.fields
              }
              _LongParam = updateForm(_LongParam)
            }
            if (fields && fields.length > 0) {
              formlist = fields.map(cell => {
            if (_LongParam && _LongParam.fields.length > 0) {
              _LongParam.fields.forEach(cell => {
                if (!cell.field) return
                let _fieldlen = cell.fieldlength || 50
                if (cell.type === 'textarea' || cell.type === 'fileupload' || cell.type === 'multiselect') {
@@ -471,7 +466,7 @@
                  _field.value = ''
                }
                return _field
                formlist.push(_field)
              })
            }
            resolve(true)