import request from '@/utils/request'

// 安保测试物品分类
export function securityTestItemClassification(data) {
    return request({ url: '/ledger/securityTest/securityTestItemClassification', method: 'post', data })
}

// 安保测试通过情况
export function securityTestPassingStatus(data) {
    return request({ url: '/ledger/securityTest/securityTestPassingStatus', method: 'post', data })
}

// 安保测试区域情况
export function securityTestRegion(data) {
    return request({ url: '/ledger/securityTest/securityTestRegion', method: 'post', data })
}

// 实时质控拦截物品分布
export function realtimeInterceptionItem(data) {
    return request({ url: '/ledger/realtimeInterception/realtimeInterceptionItem', method: 'post', data })
}

// 各岗位监察问题分布
export function supervisionProblemPosition(data) {
    return request({ url: '/ledger/supervisionProblem/supervisionProblemPosition', method: 'post', data })
}

// 获取部门内所有成员列表
export function getDeptMembers(data) {
    return request({ url: '/score/dept-portrait/members', method: 'post', data })
}

// 获取部门成员基本情况分布
export function getDeptMemberDistribution(data) {
    return request({ url: '/score/dept-portrait/distribution', method: 'post', data })
}

// 获取部门成员职位情况分布
export function getDeptPositionDistribution(data) {
    return request({ url: '/score/dept-portrait/position-distribution', method: 'post', data })
}

// 维度得分一览
export function getDimensionScoreOverview(data) {
    return request({ url: '/score/dept-portrait/group-portrait', method: 'post', data })
}

// 1.查询每日通道过检率
export function countLanePeakThroughput(data) {
    return request({ url: '/ledger/operationLanePeakThroughput/countLanePeakThroughput', method: 'post', data })
}
// 2.查询当天开航每小时区域过检人数
export function countStationHourlyThroughput(data) {
    return request({ url: '/ledger/operationStationHourlyThroughput/countStationHourlyThroughput', method: 'get', data })
}
// 3.查获信息展示
export function countSeizureInfoItem(data) {
    return request({ url: '/ledger/seizureStats/countSeizureInfoItem', method: 'post', data })
}
// 4.查获物品分布 
export function countSeizeSubjectCategoryQuantity(data) {
    return request({ url: '/ledger/seizureStats/countSeizeSubjectItemQuantity', method: 'post', data })
}
// 5.近30天查获数量（总表）
export function countSeizureTotalQuantity(data) {
    return request({ url: '/ledger/seizureStats/countSeizureTotalQuantity', method: 'post', data })
}
// 6.近30天查获数量（员工/小组/班组/部门）
export function countSeizureSingleQuantity(data) {
    return request({ url: '/ledger/seizureStats/countSeizureSingleQuantity', method: 'post', data })
}
// 7.查获工作区域分布
export function countSeizeAreaQuantity(data) {
    return request({ url: '/ledger/seizureStats/countSeizeAreaQuantity', method: 'post', data })
}
// 8.不安全事件物品分布
export function countSeizureStatsItem(data) {
    return request({ url: '/ledger/unsafeEvent/countSeizureStatsItem', method: 'post', data })
}
// 9.不安全事件类型分布
export function countSeizureStatsType(data) {
    return request({ url: '/ledger/unsafeEvent/countSeizureStatsType', method: 'post', data })
}
// 10.不安全事件岗位分布
export function countSeizureStatsPost(data) {
    return request({ url: '/ledger/unsafeEvent/countSeizureStatsPost', method: 'post', data })
}

//获取站级别下所有部门的团队画像统计
export function countStationTeamStats(data) {
    return request({ url: '/score/dept-portrait/station-team-stats', method: 'post', data })
}

//获取部门的团队画像统计
export function countDeptTeamStats(data) {
    return request({ url: '/score/dept-portrait/team-stats', method: 'post', data })
}
//标签得分
export function countTagScore(params) {
    return request({ url: '/ledger/scoreEmployeeAdditional/getTotalScoreByEmployee', method: 'get', params: params })
}
// ===== 员工画像 =====
export function getEmployeePortrait(params) {
    return request({ url: '/score/portrait/employee', method: 'get', params })
}
export function searchPortraitUsers(keyword) {
    return request({ url: '/score/portrait/searchUsers', method: 'get', params: { keyword } })
}