public with sharing class lexFollowUpHistoryController { public lexFollowUpHistoryController() { } @AuraEnabled public static InitData init(String recordId){ InitData res = new InitData(); try { List r2=[SELECT Id from Report where name='询价跟进历史 -询价按钮-']; res.reportId=r2.get(0).Id; } catch (Exception e) { return res; } return res; } public class InitData{ @AuraEnabled public String reportId; } }