({ CreateRecord : function(component, event, helper){ var files = event.getSource().get("v.files"); helper.readFile(component,helper,files[0]); }, processFileContent : function(component,event,helper){ component.set("v.showErrorInfo",false); helper.saveRecords(component,event,helper); }, cancel : function(component,event,helper){ component.set("v.showMain",true); }, exportErrorInfo: function(component,event,helper){ console.log('enter exportErrorInfo'); helper.exportErrorInfoHelper(component); }, // 控制器 hideErrorToast: function(component, event, helper){ $A.util.addClass(component.find('errorDiv'), 'slds-hide'); }, hideSuccessToast01: function(component, event, helper){ $A.util.addClass(component.find('successDiv01'), 'slds-hide'); } })