tour.js 2.08 KB
let http = require('../utils/request');
import _ from 'underscore';
module.exports = {
    handle(params,config){
        return http.post(`/patrol/patrolRecord/handle`, params,config);  
    },
    tourUserList(params){
        return http.get(`/patrol/s-user/mall/${params.mallId}`, params);
    },
    uploadFile(params){
        return http.post(`/report/file`, params);
    },
    /**
     * 用户列表
     */
    userList(params) {
        return http.get('/report/users', params);
    },
    /**
     * 用户所属的商场
     */
    userMall(params) {
        return http.get('/report/userMalls', params);
    },
    //巡店记录
    getPatrolRecordList(params) {
        return http.get('/patrol/patrolRecord/list', params);
    },
    getPatrolSopTypeTree(params) {
        return http.get('/patrol/patrolSopType/tree', params);
    },
    // 查看巡店详情
    getPatrolRecordDetail(params,config) {
        return http.get(`/patrol/patrolRecord/${params.id}`, params);
    },
    // 待点检任务
    getPatrolCaptureRecordList(params){
        return http.get(`/patrol/patrolCaptureRecord/list`,params)
    },
    // 定时抓怕配置
    getRuleList(params){
       return http.get(`/patrol/b-patrol-rule/list`, params)
    },
    //提交巡店记录
    confirmPatrolRecord(params,config) {
        return http.post(`/patrol/patrolRecord`, params,config);
    },
    /**
     * 获取监控点列表
     */
    getPatrolGateList(params) {
        return http.get('/patrol/patrolGate/list', params);
    },
    getPatrolGate(params) {
        return http.get(`/patrol/patrolGate/${params.id}`, params)
    },
    getLiveAddress(params) {
        return http.get(`/patrol/patrolDeviceChannel/getLiveAddress/${params.id}`, params);
    },
    // 截图
    getCapture(params) {
        return http.get(`/patrol/patrolDeviceChannel/capture/${params.id}`, params);
    },
    getBase64(params){
        return http.get(`/patrol/file`, params)
    },
    // 获取监控点关联sop
    getPatrolGateSopProjectList(params) {
        return http.get(`/patrol/patrolGateSopProject/list`, params);
    },
}