king
2021-04-07 f3167f8371d19d0ea8fe7d0e7af5517ff0b08cd2
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)