| | |
| | | let _BID = this.props.BID |
| | | |
| | | let requireFields = search.filter(item => item.required && (!item.value || item.value.length === 0)) |
| | | let prex = this.props.Tab && this.props.Tab.label ? this.props.Tab.label + '-' : '' |
| | | |
| | | if (requireFields.length > 0) { |
| | | let labels = requireFields.map(item => item.label) |
| | |
| | | |
| | | notification.warning({ |
| | | top: 92, |
| | | message: this.state.dict['form.required.input'] + labels.join('、') + ' !', |
| | | message: prex + this.state.dict['form.required.input'] + labels.join('、') + ' !', |
| | | duration: 3 |
| | | }) |
| | | return |
| | |
| | | this.setState({ |
| | | loading: false |
| | | }) |
| | | let prex = this.props.Tab && this.props.Tab.label ? this.props.Tab.label + ': ' : '' |
| | | |
| | | notification.error({ |
| | | top: 92, |
| | |
| | | } else if (btn.execSuccess === 'equaltab' && type === 'success') { |
| | | this.reloadtable() |
| | | this.props.handleMainTable('equaltab') |
| | | }else if (btn.execSuccess === 'mainline' && type === 'success') { |
| | | this.props.handleMainTable('mainline') |
| | | } |
| | | } |
| | | |