| | |
| | | } |
| | | } |
| | | |
| | | // showError = () => { |
| | | // const { errorType } = this.state |
| | | |
| | | // if (errorType === 'S') { |
| | | // notification.success({ |
| | | // top: 92, |
| | | // message: '执行成功!', |
| | | // duration: 2 |
| | | // }) |
| | | // } else if (errorType === 'F') { |
| | | // notification.error({ |
| | | // className: 'notification-custom-error', |
| | | // top: 92, |
| | | // message: '执行失败!', |
| | | // duration: 15 |
| | | // }) |
| | | // } else if (errorType === 'N') { |
| | | // notification.error({ |
| | | // top: 92, |
| | | // message: '执行失败!', |
| | | // duration: 15 |
| | | // }) |
| | | // } else if (errorType === 'E') { |
| | | // Modal.error({ |
| | | // title: '执行失败!' |
| | | // }) |
| | | // } else if (errorType === 'NM') { |
| | | // message.error('执行失败!') |
| | | // } |
| | | // } |
| | | |
| | | getFields() { |
| | | const { getFieldDecorator } = this.props.form |
| | | const fields = [] |
| | |
| | | if (!err) { |
| | | values.id = this.props.card.id |
| | | values.uuid = this.props.card.uuid |
| | | values.verify = this.props.card.verify || null |
| | | |
| | | if (values.OpenType === 'excelIn' || values.OpenType === 'excelOut') { |
| | | values.position = 'toolbar' |