| | |
| | | param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') + '.000' |
| | | param.secretkey = Utils.encrypt(param.LText, param.timestamp) |
| | | } |
| | | |
| | | Api.genericInterface(param).then((res) => { |
| | | if (res.status) { |
| | | this.execSuccess(btn, res, _primaryId) |
| | | this.execSuccess(btn, res, _primaryId, formdata) |
| | | } else { |
| | | this.execError(res, btn) |
| | | } |
| | |
| | | return Api.genericInterface(_callbackparam) |
| | | } else { |
| | | if (response.status) { |
| | | this.execSuccess(btn, response, _primaryId) |
| | | this.execSuccess(btn, response, _primaryId, formdata) |
| | | _resolve() |
| | | } else { |
| | | this.execError(response, btn) |
| | |
| | | if (!res) return |
| | | |
| | | if (res.status) { |
| | | this.execSuccess(btn, res, _primaryId) |
| | | this.execSuccess(btn, res, _primaryId, formdata) |
| | | _resolve() |
| | | } else { |
| | | this.execError(res, btn) |
| | |
| | | * 4、模态框执行成功后是否关闭 |
| | | * 5、通知主列表刷新 |
| | | */ |
| | | execSuccess = (btn, res, primaryId) => { |
| | | execSuccess = (btn, res, primaryId, formdata) => { |
| | | if (res && res.ErrCode === 'S') { // 执行成功 |
| | | notification.success({ |
| | | top: 92, |
| | |
| | | |
| | | } |
| | | |
| | | this.props.refreshdata(btn, 'success', primaryId) |
| | | this.props.refreshdata(btn, 'success', primaryId, formdata) |
| | | } |
| | | |
| | | /** |