analysis.js 3.95 KB
import req from '@/api/http.js'

// analysisReport 是定义综合分析报表的接口
const analysisReport = {
    /**
     * 基础分析报表
     */
    baseAnalysis(analysisLevel, params, config) {
        return req('get', `/report/basics/${analysisLevel}`, params, config)
    },
    /**
     * 日期对比报表
     */
    dateComparedAnalysis(analysisLevel, params, config) {
        return req('get', `/report/dateCompared/${analysisLevel}`, params, config)
    },
    /**
     * 综合分析报表
     */
    synthesizeAnalysis(analysisLevel, params, config) {
        return req('get', `/report/synthesize/${analysisLevel}`, params, config)
    },
    /**
     * 活动报表
     */
    holidayObjectAnalysis(analysisLevel, params, config) {
        return req('get', `/report/holidayObject/${analysisLevel}`, params, config)
    },
    /**
     * 节假日活动报表
     */
    holidayEventAnalysis(analysisLevel, params, config) {
        return req('get', `/report/holidayeEvent/${analysisLevel}`, params, config)
    },
    /**
     * 进出客流报表
     */
    trafficInAndOutAnalysis(analysisLevel, params, config) {
        return req('get', `/report/trafficInAndOut/${analysisLevel}`, params, config)
    },
    /**
     * 主力店报表
     */
    mainZoneYOAnalysis(params, config) {
        return req('get', '/report/mainZoneYOAnalysis/zone', params, config)
    },
    /**
     * 排行榜报表
     */
    rankingAnalysis(analysisLevel, params, config) {
        return req('get', `/report/ranking/${analysisLevel}`, params, config)
    },
    /**
     * 同环比报表
     */
    yoyOrMomAnalysis(analysisLevel, params, config) {
        return req('get', `/report/yoyOrMom/${analysisLevel}`, params, config)
    },
    /**
     * 进店率报表
     */
    enteringRateAnalysis(analysisLevel, params, config) {
        return req('get', `/report/enteringRate/${analysisLevel}`, params, config)
    },
    /**
     * 时间对比报表
     */
    timeCompareAnalysis(analysisLevel, params, config) {
        return req('get', `/report/timeCompareAnalysis/${analysisLevel}`, params, config)
    },
    /**
     * 时段客流报表
     */
    thermodynamicAnalysis(analysisLevel, params, config) {
        return req('get', `/report/thermodynamic/${analysisLevel}`, params, config)
    },
    /**
     * 天气分析报表
     */
    weatherAnalysis(analysisLevel, params, config) {
        return req('get', `/report/weather/${analysisLevel}`, params, config)
    },
    /**
     * 周中周末对比报表
     */
    weekComparedAnalysis(analysisLevel, params, config) {
        return req('get', `/report/weekCompared/${analysisLevel}`, params, config)
    },
    /**
     * 获取活动对象
     */
    events(params, config) {
        return req('get', '/events/getEvent', params, config)
    },

    /**
     * 获取监控点热力数据
     */
    heatmapTraffic(params,config) {
        return req('get', '/report/heatmapTraffic/mall', params, config)
    },
    /**
     * 返店分析报表
     */
    returnshopReport(params,config) {
        return req('get', '/returnMallAnalysis/mall', params, config)
    },
    /**
     * 循环获取报表
     */
    getMultipleReport(url,params,config) {
        return req('get', url, params, config)
    },
    /**
     * 集团区域客流
     */
    blocAreaTrafficReport(params, config) {
        return req('get', '/report/region/account', params, config)
    },
    /**
     * 多次到店顾客
     */
    historyArrival(params) {
        return req('get', window._vionConfig.repeatInStoreUrl + '/api/v1/face/historyArrival', params)  
    },
    // 滞留时间统计
    residenceTime(analysisLevel, params) {
        return req('get', `/residenceTime/${analysisLevel}`, params)
    },
    retentionInAndOut(params) {
        return req('get', '/report/retentionInAndOut/mall', params)
    },
    retentionFishEye(params) {
        return req('get', '/report/retentionFishEye/mall', params)
    }
}

export default analysisReport;