| | |
| | | }) |
| | | }) |
| | | } |
| | | console.log(_config) |
| | | |
| | | if (menu && menu.LongParam && menu.LongParam.columns) { |
| | | columns = menu.LongParam.columns |
| | |
| | | |
| | | if (modaltype === 'search') { |
| | | this.modalFormRef.handleConfirm().then(res => { |
| | | if (config.setting.primaryKey && config.setting.primaryKey.toLowerCase() === res.field.toLowerCase()) { |
| | | let _config = JSON.parse(JSON.stringify(config)) |
| | | |
| | | if (_config.setting.primaryKey && _config.setting.primaryKey.toLowerCase() === res.field.toLowerCase()) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: '表单中字段名不可与主键重复!', |
| | |
| | | let fieldrepet = false // 字段重复 |
| | | |
| | | if (card.iscopy) { |
| | | _groups = config.groups.map(group => { |
| | | _groups = _config.groups.map(group => { |
| | | let _index = null |
| | | group.sublist.forEach((item, index) => { |
| | | if (item.uuid === card.originUuid) { |
| | |
| | | return group |
| | | }) |
| | | } else { |
| | | _groups = config.groups.map(group => { |
| | | _groups = _config.groups.map(group => { |
| | | group.sublist = group.sublist.map(item => { |
| | | if (item.uuid !== res.uuid && item.field === res.field) { |
| | | fieldrepet = true |
| | |
| | | } |
| | | |
| | | this.setState({ |
| | | config: {...config, groups: _groups}, |
| | | config: {..._config, groups: _groups}, |
| | | optionLibs: optionLibs, |
| | | modaltype: '' |
| | | }) |
| | |
| | | handleList={this.handleList} |
| | | handleMenu={this.handleTab} |
| | | deleteMenu={this.deleteElement} |
| | | doubleClickCard={(tab) => this.setSubConfig(tab, 'tab')} |
| | | placeholder={this.state.dict['header.form.tab.placeholder']} |
| | | /> |
| | | </div>) |