binxie
2024-01-22 102afa21c115e8c8b9333a326c3d1af08fe76faf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
({
    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');
    }
})