| | |
| | | component.set('v.allselectlist',res.allselectlist); |
| | | component.set('v.doclist',res.doclist); |
| | | // PIPL update Yin Mingjie 21/02/2022 start |
| | | // component.find('select_agency_person').set('v.options', this.conv_selected(res.allselectlist.AgencyPerson__c)); |
| | | this.search_contact(component, event, helper,res.allselectlist.AgencyPerson__c); |
| | | component.find('select_agency_person').set('v.options', this.conv_selected(res.allselectlist.AgencyPerson__c)); |
| | | // this.search_contact(component, event, helper,res.allselectlist.AgencyPerson__c); |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | component.find('select_department').set('v.options', this.conv_selected(res.allselectlist.Department_Cateogy__c)); |
| | | component.find('select_purpose_type').set('v.options', this.conv_selected(res.allselectlist.Purpose_Type__c)); |
| | |
| | | var searchUrl = result.searchUrl; |
| | | this.search_core(token,searchUrl,payload,(result)=>{ |
| | | if(result.status == '0'){ |
| | | this.to_contact_list(result,contactData,component); |
| | | if(result.object != null){ |
| | | this.to_contact_list(result,contactData,component); |
| | | }else{ |
| | | component.set('v.login',false); |
| | | } |
| | | }else{ |
| | | this.error('AWS search status : ' + result.status); |
| | | component.set('v.login',false); |
| | |
| | | |
| | | get_agency_person_name : function(component, agency_person_value) { |
| | | // PIPL update Yin Mingjie 21/02/2022 start |
| | | // var allselectlist = component.get('v.allselectlist.AgencyPerson__c'); |
| | | var allselectlist = component.get('v.allselectlistAgencyPerson'); |
| | | var allselectlist = component.get('v.allselectlist.AgencyPerson__c'); |
| | | // var allselectlist = component.get('v.allselectlistAgencyPerson'); |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | var new_label = ''; |
| | | for (var i = 0; i < allselectlist.length; i++) { |