| | |
| | | this.setState({loading: false}) |
| | | }) |
| | | return |
| | | } else if (fields.filter(f => f.toLowerCase() === 'parentid').length > 0) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: '字段名不可使用parentid!', |
| | | duration: 5 |
| | | }) |
| | | this.setState({loading: true}, () => { |
| | | this.setState({loading: false}) |
| | | }) |
| | | return |
| | | } else if (fields.filter(f => f.toLowerCase() === 'pid').length > 0) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: '字段名不可使用pid!', |
| | | duration: 5 |
| | | }) |
| | | this.setState({loading: true}, () => { |
| | | this.setState({loading: false}) |
| | | }) |
| | | return |
| | | } |
| | | |
| | | this.setState({ data }, () => { |