| | |
| | | if (_config.groups.length > 0) { |
| | | _config.groups.forEach(group => { |
| | | group.sublist.forEach(item => { |
| | | fields.push(item.field.toLowerCase()) |
| | | item.field && fields.push(item.field.toLowerCase()) |
| | | labels.push(item.label) |
| | | }) |
| | | if (group.default) { |
| | |
| | | }) |
| | | } else { |
| | | _config.fields.forEach(item => { |
| | | fields.push(item.field.toLowerCase()) |
| | | item.field && fields.push(item.field.toLowerCase()) |
| | | labels.push(item.label) |
| | | }) |
| | | _config.fields.push(res) |
| | | } |
| | | |
| | | if (fields.includes(res.field.toLowerCase())) { |
| | | if (res.field && fields.includes(res.field.toLowerCase())) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: '字段已存在!', |