import { REPORT_LIST , REPORT_CHART_INFO } from '../common/mock' ; export async function quertyReportList ( idList ) { const list = REPORT_LIST . filter ( report => idList . includes ( report . id ) ) ; await new Promise ( resolve => { setTimeout ( resolve , 1000 ) ; } ) ; return list ; } export async function quertyReportChartInfo ( reportId ) { const chartInfo = REPORT_CHART_INFO as { [ key ] : object [ ] ; } ; await new Promise ( resolve => { setTimeout ( resolve , 1000 ) ; } ) ; return chartInfo [ reportId ] || { } ; }