import request from '@/utils/request' import config from '@/utils/baseConfig' // 智慧交通专项 // 实时城市拥堵指数 export function fetchGemIndexNow () { return request({ url: 'smartTraffic/gemIndexNow', method: 'get' }) } // 实时城市交通流量指数 export function fetchFlowIndexNow () { return request({ url: 'smartTraffic/flowIndexNow', method: 'get' }) } // 实时交通违法事故指数 export function fetchCaseIndexNow () { return request({ url: 'smartTraffic/caseIndexNow', method: 'get' }) } // 各路段拥堵指数 export function fetchRoadGemIndexNow () { return request({ url: 'smartTraffic/gemIndexNowByRoad', method: 'get' }) } // 各路段交通流量指数 export function fetchRoadFlowIndexNow () { return request({ url: 'smartTraffic/gemIndexNowByRoad', // url: 'smartTraffic/flowIndexNowByRoad', method: 'get' }) } // 各路段违法事故指数 export function fetchRoadCaseIndexNow () { return request({ url: 'smartTraffic/gemIndexNowByRoad', // url: 'smartTraffic/caseIndexNowByRoad', method: 'get' }) } // 各类型违法事故排名 export function fetchCaseTypeRank () { return request({ url: 'smartTraffic/caseTypeRank', method: 'get' }) } // 各路段违法事故排行 export function fetchCaseRoadRank () { return request({ url: 'smartTraffic/caseRoadRank', method: 'get' }) } // 违章事故按区域统计 export function fetchCaseArea () { return request({ url: 'case/countByArea', // url: 'smartTraffic/caseCountByArea', method: 'get' }) } // 违章事故数据来源统计 export function fetchCaseFrom () { return request({ url: 'smartTraffic/caseCountByFrom', method: 'get' }) } // 近7日违章事故数量曲线 export function fetchCaseByDay () { return request({ url: 'smartTraffic/caseByDay', method: 'get' }) } // 摄像头数量情况 export function fetchCameraByType () { return request({ url: 'smartTraffic/cameraByType', method: 'get' }) } // 摄像头在线情况统计 export function fetchCameraByStatus () { return request({ url: 'smartTraffic/cameraByStatus', method: 'get' }) }