analysis.js 6.77 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)
    },
    /**
     * 坪效排行榜报表
     */
    kpiRankingAnalysis(analysisLevel, params, config) {
        return req('get', `/report/ranking/areaEffect/${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(analysisLevel,params) {
        return req('get', `/report/retentionInAndOut/${analysisLevel}`, params)
    },
    retentionFishEye(params) {
        return req('get', '/report/retentionFishEye/mall', params)
    },

    // 获取拼接热力
    getZoneHeatMap(params) {
        return req('get', '/report/zoneHeatmap/mall', params)
    },
    // 店铺获取关联
    getzoneAssociation(params) {
        return req('get', '/report/zoneAssociation/mall', params)
    },
    // 业态获取关联
    getformatAssociation(params) {
        return req('get', '/report/formatAssociation/mall', params)
    },
    getThred(params) {
        console.log("🚀 ~ file: analysis.js ~ line 156 ~ getThred ~ params", params)
        return req('get', '/analysis/trend', params)
    },
    getCustiom(params) {
        return req('get', '/analysis/trend', params)
    },
    getstoreCapacity(params) {
        return req('get', '/analysis/storeCapacityAnalysis', params)
    },
    getstoreCapacityPercentage(params) {
        return req('get', '/analysis/storeCapacityPercentage', params)
    },
    getZoneInfo(params) {
        return req('get', '/report/zoneAssociation/zone/info', params)
    },
    getSourceList(params) {
        return req('get', '/report/zoneAssociation/zone/source', params)
    },
    getTargetList(params) {
        return req('get', '/report/zoneAssociation/zone/target', params)
    },
    // 货架统计
    getZoneStatistics(params) {
        return req('POST', '/heatMap/zoneStatistics', params)
    },
    getBoothList(params) {
        return req('get', '/booth/list', params)
    },
    // 获取人员id列表
    getPersonList(params){
      return req('POST', '/heatMap/personList', params)
    },
    // 获取人员轨迹数据
    getPersonTrackDetail(params){
      return req('POST', '/heatMap/getPersonTrack', params)
    },
    // 获取客流统计报表
    getPassengerFlowStatistics(params){
      return req('GET', '/basePassengerFlow/passengerFlow', params)
    },
    getPassengerFlowMultiMallStatistics(params){
      return req('GET', '/multiMall/passengerFlow', params)
    },
    // 获取停留时长统计报表
    getResidenceTimeStatistics(params){
      return req('GET', '/basePassengerFlow/residenceTime', params)
    },
    // 获取顾客属性统计报表
    getCustomerAgeStatistics(params){
      return req('GET', '/basePassengerFlow/customerAge', params)
    },
    getCustomerGenderStatistics(params){
      return req('GET', '/basePassengerFlow/customerGender', params)
    },
    getGroupPassengerFlowStatistics(params){
      return req('GET', '/basePassengerFlow/group', params)
    },
    getGroupPassengerFlowStatisticsTree(params){
      return req('GET', '/basePassengerFlow/group/tree', params)
    },
    getIndexMalls(params){
      return req('GET', '/report/YoYOrMoM/malls', params)
    },
}

export default analysisReport;