| | |
| | | import PropTypes from 'prop-types' |
| | | import { Form, Row, Col, Input, InputNumber } from 'antd' |
| | | import TransferForm from '../transferform' |
| | | import Utils from '@/utils/utils.js' |
| | | import './index.scss' |
| | | |
| | | class SettingForm extends Component { |
| | |
| | | let _default = config.groups[config.groups.length - 1] |
| | | let _selectds = [] |
| | | |
| | | if (config.groups.length === 1) { |
| | | if (!_default) { |
| | | _default = { |
| | | label: '未分组', |
| | | default: true, |
| | | sort: 101, |
| | | uuid: Utils.getuuid(), |
| | | sublist: [] |
| | | } |
| | | } |
| | | |
| | | if (config.groups.length === 0) { |
| | | _source = config.fields.filter(item => !item.origin) |
| | | } else { |
| | | _source = [..._default.sublist, ...group.sublist] |