| | |
| | | } |
| | | |
| | | |
| | | Api.genericInterface(param).then((res) => { |
| | | if (res.status) { |
| | | this.execSuccess(btn, res) |
| | | } else { |
| | | this.execError(res, btn) |
| | | } |
| | | _resolve() |
| | | }) |
| | | // Api.genericInterface(param).then((res) => { |
| | | // if (res.status) { |
| | | // this.execSuccess(btn, res) |
| | | // } else { |
| | | // this.execError(res, btn) |
| | | // } |
| | | // _resolve() |
| | | // }) |
| | | } else if (btn.Ot === 'required' || (btn.Ot === 'requiredOnce' && btn.OpenType === 'pop')) { |
| | | let deffers = data.map(cell => { |
| | | let param = { |
| | |
| | | _outParam = JSON.parse(JSON.stringify(res)) |
| | | |
| | | res.appkey = window.GLOB.appkey || '' // 外部请求时,统一添加appkey |
| | | |
| | | |
| | | return Api.genericInterface(res) |
| | | }).then(response => { |
| | | if (!response) return |