| | |
| | | let param = params.shift() |
| | | let _outParam = null |
| | | let _localParam = null |
| | | let errRes = null |
| | | |
| | | if (widthNumber) { |
| | | this.setState({ |
| | |
| | | } |
| | | }).then(res => { |
| | | if (!res) return |
| | | |
| | | |
| | | if (_localParam) { |
| | | |
| | | if (!res.status) { |
| | | errRes = res |
| | | } |
| | | return Api.getLocalConfig(_localParam) |
| | | } else if (res.status) { |
| | | if (params.length === 0) { |
| | |
| | | }).then(res => { |
| | | if (!res) return |
| | | |
| | | if (res.status) { |
| | | if (res.status && !errRes) { |
| | | if (params.length === 0) { |
| | | this.execSuccess(btn, res) |
| | | _resolve() |
| | |
| | | this.outerLoopRequest(params, btn, _resolve, widthNumber) |
| | | } |
| | | } else { |
| | | this.execError(res, btn) |
| | | this.execError(errRes || res, btn) |
| | | _resolve() |
| | | } |
| | | }) |