queueManagementApi.js 3.08 KB
import req from '@/api/httpqueueManagement.js'
const queueManagementApi = {
    // 区域管理
    getAreaList(params, config) {
        return req('get', `/b-cashier-area/list`, params, config)
    },
    addArea(params, config) {
        return req('POST', `/b-cashier-area`, params, config)
    },
    updateArea(params, config) {
        return req('PUT', `/b-cashier-area/${params.id}`, params, config)
    },
    deleteArea(params, config) {
        return req('DELETE', `/b-cashier-area/${params.id}`, params, config)
    },
    // 获取绑定的设备
    getDevices(params, config) {
        return req('GET', `/b-cashier-area/devices`, params, config)
    },
    bindDevices(params, config) {
        return req('POST', `/b-cashier-area/bind`, params, config)
    },
    // 通道管理
    getChannelList(params, config) {
        return req('get', `/b-cashier-channel/list`, params, config)
    },
    addChannel(params, config) {
        return req('POST', `/b-cashier-channel`, params, config)
    },
    updateChannel(params, config) {
        return req('PUT', `/b-cashier-channel/${params.id}`, params, config)
    },
    deleteChannel(params, config) {
        return req('DELETE', `/b-cashier-channel/${params.id}`, params, config)
    },
    // 相机位置标定
    demarcateFun(params, config) {
        return req('POST', `/b-cashier-area/demarcate`, params, config)
    },
    //排队实况
    //统计数据和按通道统计排队情况
    getStatistics(params, config) {
        return req('get', `/queuing/statistics`, params, config)
    },
    //主页大屏人员点位分布
    getdistribution(params, config) {
        return req('get', `/queuing/distribution`, params, config)
    },
    //数据回放图表
    getchart(params, config) {
        return req('get', `/queuing/chart`, params, config)
    },
    // 基础客流
    getCustomersOverview(params, config) {
        return req('get', `/queuing/customers-overview/chart`, params, config)
    },
    // 快照预测
    getSnapshotChart(params, config) {
        return req('get', `/queuing/snapshot/chart`, params, config)
    },
    // 时刻回放
    getDistributionDetail(params, config) {
        return req('get', `/queuing/distribution/detail`, params, config)
    },
    getCountData(params, config) {
        return req('get', `/queuing/countData`, params, config)
    },
    // 营业时间设置
    getOpentimeList(params, config) {
        return req('get', `/b-queue-mall-opentime/list`, params, config)
    },
    addOpentime(params, config) {
        return req('POST', `/b-queue-mall-opentime`, params, config)
    },
    updateOpentime(params, config) {
        return req('PUT', `/b-queue-mall-opentime/${params.id}`, params, config)
    },
    deleteOpentime(params, config) {
        return req('DELETE', `/b-queue-mall-opentime/${params.id}`, params, config)
    },
    getRecognition(params, config) {
        return req('get', `/d-queue-recognition/page`, params, config)
    },
    getTrajectory(params, config) {
        return req('get', `/queuing/person/trajectory`, params, config)
    },
}


export default queueManagementApi;