queueManagementApi.js 2.27 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)
    },
    

}


export default queueManagementApi;