保安服务企业管理项目备份
zhongrj
2024-05-24 f2a74b0b28b74dc29be85ec8e6328bdd262f84b9
src/api/securityAnalysis/securityAnalysis.js
@@ -1,7 +1,6 @@
import request from '@/router/axios';
import request from '@/router/axios'
export const getinformationselectExtype = (deptid) => { //保安员审查情况统计  只需要公司的deptid
    console.log(deptid)
export const getinformationselectExtype = (deptid, jurisdiction) => { //保安员审查情况统计  只需要公司的deptid
    return request({
        url: '/api/information/selectExtype',
@@ -9,63 +8,129 @@
        method: 'post',
        params: {
            deptid: deptid,
            jurisdiction: jurisdiction,
        }
    })
}
export const getinformationselectHold = (deptid) => { //保安员持证  只需要公司的deptid
    console.log(deptid)
export const getinformationselectHold = (deptid, jurisdiction) => { //保安员持证  只需要公司的deptid
    return request({
        url: '/api/information/selectHold',
        // url: 'http://192.168.0.109:81/information/selectExtype',
        method: 'post',
        params: {
            deptid: deptid,
            jurisdiction: jurisdiction,
        }
    })
}
export const getinformationselectDis = (deptid) => { //派遣服务单位  只需要公司的deptid
    console.log(deptid)
export const getinformationselectDis = (deptid, jurisdiction) => { //派遣服务单位  只需要公司的deptid
    return request({
        url: '/api/information/selectDis',
        url: '/api/information/queryYearKh',
        // url: 'http://192.168.0.109:81/information/selectExtype',
        method: 'post',
        params: {
            deptid: deptid,
            jurisdiction: jurisdiction,
        }
    })
}
export const getinformationselectDisp = (deptid) => { //保安派遣数量  只需要公司的deptid
    console.log(deptid)
export const getinformationselectDisp = (deptid, jurisdiction) => { //保安派遣数量  只需要公司的deptid
    return request({
        url: '/api/information/selectDisp',
        // url: 'http://192.168.0.109:81/information/selectExtype',
        method: 'post',
        params: {
            deptid: deptid,
            jurisdiction: jurisdiction,
        }
    })
}
export const getinformationselectSoil = (deptid) => { //社保缴纳情况统计  只需要公司的deptid
    console.log(deptid)
export const getinformationselectSoil = (deptid, jurisdiction) => { //社保缴纳情况统计  只需要公司的deptid
    return request({
        url: '/api/information/selectSoil',
        // url: 'http://192.168.0.109:81/information/selectExtype',
        method: 'post',
        params: {
            deptid: deptid,
            jurisdiction: jurisdiction,
        }
    })
}
export const getinformationstatistics = (deptid) => { //保安员考试情况统计  只需要公司的deptid
    console.log(deptid)
export const getinformationstatistics = (deptid, jurisdiction) => { //保安员考试情况统计  只需要公司的deptid
    return request({
        url: '/api/examScore/score-statistics',
        // url: 'http://192.168.0.109:81/information/selectExtype',
        method: 'get',
        params: {
            deptid: deptid,
            jurisdiction: jurisdiction,
        }
    })
}
export const getExamStatisInfo = (deptid, jurisdiction) => { //保安员考试情况统计  只需要公司的deptid
    return request({
        url: '/api/examScore/getExamStatisInfo',
        method: 'get',
        params: {
            deptid: deptid,
            jurisdiction: jurisdiction,
        }
    })
}
export const getEducationStatistics = (deptid, jurisdiction) => {
    return request({
        url: '/api/information/getEducationStatistics',
        method: 'post',
        params: {
            deptid: deptid,
            jurisdiction: jurisdiction,
        }
    })
}
export const getAgeStatistics = (deptid, jurisdiction) => {
    return request({
        url: '/api/blade-user/getAgeStatistics',
        method: 'post',
        params: {
            deptId: deptid,
            jurisdiction: jurisdiction,
        }
    })
}
export const getinformationstatisticsXX = (current, size, params) => { //保安员考试情况统计 详细信息  只需要公司的deptid
    return request({
        url: '/api/examScore/score-page',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}
export const getLoginDataStatistics = (jurisdiction) => {
    return request({
        url: '/api/loginRecord/getLoginDataStatistics',
        method: 'get',
        params: {
            jurisdiction: jurisdiction,
        }
    })
}
export const getPQStatistics = (params) => {
    return request({
        url: '/api/dispatcher/getStatistics',
        method: 'get',
        params: {
            ...params
        }
    })
}