| | |
| | | $A.enqueueAction(action); |
| | | }, |
| | | // fy 调用pi改造的 获取.客户人员的方法 |
| | | search_core : function(token,searchUrl,payload,callback,component) { |
| | | search_core: function (token, searchUrl, payload, callback, component) { |
| | | console.log('searchUrl = ' + searchUrl); |
| | | fetch(searchUrl, { |
| | | method: 'POST', |
| | | body: payload, |
| | |
| | | component.set('v.login',false); |
| | | if(callback)callback(result); |
| | | }).catch(error => { |
| | | console.log('AWS search error = ' + JSON.stringify(error)); |
| | | component.set('v.errorMessage', 'AWS search error.'); |
| | | this.showErrorToast01(component); |
| | | component.set('v.login',false); |