import request from '@/utils/request' import config from '@/utils/baseConfig' // 城市治理接口 // 城市基本信息:area面积,region区域数量,population人口,street街道数量,community社区数量,grid网格数量 export function fetchBaseInfo (type) { return request({ baseURL: config.baseUrl, url: '/cityManage/' + type, method: 'get' }) } // 管网建设数量 export function fetchPipeCount (type) { return request({ baseURL: config.baseUrl, url: '/pipeManage/count', method: 'get' }) } // 交通设施建设数量 export function fetchTrafficCount (type) { return request({ baseURL: config.baseUrl, url: '/trafficManage/count', method: 'get' }) } // 项目建设数量 export function fetchProjectCount (type) { return request({ baseURL: config.baseUrl, url: '/projectManage/count', method: 'get' }) } // 重点青少年人数 export function fetchSpecialYoung (type) { return request({ baseURL: config.baseUrl, url: '/population/specialYoung', method: 'get' }) } // 特殊人群人数 export function fetchSpecial (type) { return request({ // baseURL: config.baseUrl, url: '/population/special', method: 'get' }) } // 不同类别人口数量 export function fetchPopulationByType (type) { return request({ baseURL: config.baseUrl, url: '/population/' + type, method: 'get' }) } // 车辆数量情况:sanitation,construction,police export function fetchCarByType (type) { return request({ url: '/car/' + type, method: 'get' }) } // 人员数量情况:patroller,receptionist,police export function fetchStaffByType (type) { return request({ url: '/staff/' + type, method: 'get' }) } // 案件来源统计 export function fetchCasebyFrom () { return request({ url: 'case/countByFrom', method: 'get' }) } // 高发案件统计 export function fetchTopTenCase () { return request({ url: 'case/topTen', method: 'get' }) } // 当日案件处理情况统计 export function fetchCaseTotal () { return request({ url: 'case/total', method: 'get' }) } // 案件日产生和处理数统计 export function fetchCaseByDay () { return request({ url: 'case/countByDay', method: 'get' }) } // 各区域案件数量统计 export function fetchCaseByArea () { return request({ url: 'case/countByArea', method: 'get' }) } // 渣土车当前位置 export function fetchConstructionCars () { return request({ url: 'car/constructionPosition', method: 'get' }) } // 志愿者当前位置 export function fetchShuangchuang () { return request({ url: 'volunteers/all', method: 'get' }) } // 志愿者当前位置 export function fetchCase () { return request({ url: 'case/mapAll', method: 'get' }) } // 智慧交通摄像机(电警) export function fetchTrafficCameras () { return request({ baseURL: config.jingyiService, url: 'services/resource/singleSearch/B-ZH-0202', params: { 'F-Auth-Key': '6R7A01XHQ0' }, data: {}, method: 'post' }) } // 停车云 // 停车场、停车位、通道、岗亭数 export function fetchSmartParkData (type) { return request({ url: '/smartPark/' + type, method: 'get' }) } // 日收入统计 export function fetchParkIncomeByDay () { return request({ // url: 'smartPark/incomeByDay', url: 'case/countByDay', method: 'get' }) } // 日流量统计 export function fetchParkFlowByDay () { return request({ // url: 'smartPark/flowByDay', url: 'case/countByDay', method: 'get' }) } // 车位占用情况 export function fetchParkOccupation () { return request({ url: 'smartPark/occupation', method: 'get' }) } // 各停车场车位占用情况 export function fetchOccupationByPark () { return request({ url: 'smartPark/occupationByPark', method: 'get' }) } // 平均停车时长 export function fetchAverageParkTime () { return request({ url: 'smartPark/averageParkTime', method: 'get' }) }