123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365 |
- import http from './interface'
- /**
- * 将业务所有接口统一起来便于维护
- * 如果项目很大可以将 url 独立成文件,接口分成不同的模块
- *
- */
- // 单独导出(测试接口) import {test} from '@/common/vmeitime-http/'
- export const test = (data) => {
- // http.config.baseUrl = "http://localhost:8080/api/"
- //设置请求前拦截器
- http.interceptor.request = (config) => {
- config.header = {
- // "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
- }
- }
- //设置请求结束后拦截器
- http.interceptor.response = (response) => {
- // console.log('个性化response....')
- //判断返回状态 执行相应操作
- return response;
- }
- return http.request({
- baseUrl: 'https://unidemo.dcloud.net.cn/',
- url: 'ajax/echo/text?name=uni-app',
- dataType: 'text',
- data,
- })
- }
- // 默认全部导出 import api from '@/common/vmeitime-http/'
- // export default {
- // test,
- // }
- // //方式一
- // sendRequest1(){
- // this.$api.getNavs({
- // noncestr: Date.now(),
- // user:123456,
-
- // }).then((res)=>{
- // this.res = '请求结果 : ' + JSON.stringify(res);
- // console.log('request success', res)
- // }).catch((err)=>{
- // console.log('request fail', err);
- // })
- // },
- // // 方式二
- // async sendRequest2() {
- // let res = await this.$api.getBlocksList();
- // this.res = '请求结果 : ' + JSON.stringify(res);
- // }
- // 生产数据
- // 列表页数据
- // // 井下人数
- // export const personnel_mineall_people = (data) => {
- // return http.request({
- // method:"POST",
- // url: '/personnel/mineall/people',
- // data,
- // })
- // }
- // // 安全监测今日总量
- // export const jt_safety_total_count = (data) => {
- // return http.request({
- // method:"POST",
- // url: '/jt/safety/total/count',
- // data,
- // })
- // }
- // // 当日生产
- // export const coalmine_output = (data) => {
- // return http.request({
- // url: '/coalmine/output',
- // data,
- // })
- // }
- // 人员定位
- // 当前人员统计
- export const personnel_people_now = (data) => {
- return http.request({
- method:"POST",
- url: '/personnel/people/now',
- data,
- })
- }
- // 职能科室人数统计
- export const personnel_office_total = (data) => {
- return http.request({
- method:"POST",
- url: '/personnel/office/total',
- data,
- })
- }
- // 基层区队人数统计
- export const personnel_basic_total = (data) => {
- return http.request({
- method:"POST",
- url: '/personnel/basic/total',
- data,
- })
- }
- // 今日各部门人数统计
- export const personnel_depart_today = (data) => {
- return http.request({
- method:"POST",
- url: '/personnel/depart/today',
- data,
- })
- }
- // 下井人员查询
- export const personnel_people_search = (data) => {
- return http.request({
- method:"POST",
- url: '/personnel/people/search',
- data,
- })
- }
- // 部门下井人员列表
- export const personnel_depart_people = (data) => {
- return http.request({
- method:"POST",
- url: '/personnel/depart/people',
- data,
- })
- }
- // 人员定位统计
- // 下井月份列表
- export const personnel_downwell_monthlist_once = (data) => {
- return http.request({
- method:"POST",
- url: '/personnel/downwell/monthlist/once',
- data,
- })
- }
- // 当月下井信息
- export const personnel_downwell_month_once = (data) => {
- return http.request({
- method:"POST",
- url: '/personnel/downwell/month/once',
- data,
- })
- }
- // 当月下井记录
- export const personnel_downwell_month_info = (data) => {
- return http.request({
- method:"POST",
- url: '/personnel/downwell/month/info',
- data,
- })
- }
- // 人员轨迹
- export const personnel_downwell_once_info = (data) => {
- return http.request({
- method:"POST",
- url: '/personnel/downwell/once/info',
- data,
- })
- }
- // 定位信息
- export const personnel_people_info = (data) => {
- return http.request({
- method:"POST",
- url: '/personnel/people/info',
- data,
- })
- }
- // 安全监测
- // 模拟量统计
- export const jt_safety_simulation_total = (data) => {
- return http.request({
- method:"POST",
- url: '/jt/safety/simulation/total',
- data,
- })
- }
- // 开关量统计
- export const jt_safety_sluice_total = (data) => {
- return http.request({
- method:"POST",
- url: '/jt/safety/sluice/total',
- data,
- })
- }
- // 开关量模拟量查询
- export const jt_safety_info_search = (data) => {
- return http.request({
- method:"POST",
- url: '/jt/safety/info/search',
- data,
- })
- }
- // 监测类型详情
- export const jt_safety_info_total = (data) => {
- return http.request({
- method:"POST",
- url: '/jt/safety/info/total',
- data,
- })
- }
- // 监测详情
- export const jt_safety_info_detail = (data) => {
- return http.request({
- method:"POST",
- url: '/jt/safety/info/detail',
- data,
- })
- }
- // 安全监测报警列表
- export const jt_safety_Safety_bj_info = (data) => {
- return http.request({
- method:"POST",
- url: '/jt/safety/Safety/bj/info',
- data,
- })
- }
- // 通风管理
- export const jt_safety_aerator_list = (data) => {
- return http.request({
- method:"POST",
- url: '/jt/safety/aerator/list',
- data,
- })
- }
- // 井口计量
- // 今日产量
- export const coalmine_days_output = (data) => {
- return http.request({
- url: '/coalmine/days/output',
- data,
- })
- }
- // 工作面列表
- export const coalmine_working_face = (data) => {
- return http.request({
- url: '/coalmine/working/face',
- data,
- })
- }
- // 工作面详情
- export const coalmine_working_face_info = (data) => {
- return http.request({
- url: '/coalmine/working/face/info',
- data,
- })
- }
- // 产量趋势
- export const coalmine_one_trend = (data) => {
- return http.request({
- url: '/coalmine/one/trend',
- data,
- })
- }
- // 信息中心
- // 生产数据
- // 安全监测
- // 查询各矿当日异常报警数量 当日总报警 当前报警 当日报警分布
- export const jt_safety_alarm_count = (data) => {
- return http.request({
- method: 'POST',
- url: '/jt/safety/alarm/count',
- data,
- })
- }
- // 查询全部矿异常报警总数 报警数量趋势
- export const jt_safety_alarm_total = (data) => {
- return http.request({
- method: 'POST',
- url: '/jt/safety/alarm/total',
- data,
- })
- }
- // 查询各矿传感器数量
- export const jt_safety_survey_count = (data) => {
- return http.request({
- method: 'POST',
- url: '/jt/safety/survey/count',
- data,
- })
- }
- // 煤矿名称列表查询 tab栏目
- export const jt_safety_mine_list = (data) => {
- return http.request({
- method: 'POST',
- url: '/jt/safety/mine/list',
- data,
- })
- }
- // 首页详情数据查询 安全监测页部分详情数据
- export const jt_safety_info_part = (data) => {
- return http.request({
- method: 'POST',
- url: '/jt/safety/info/part',
- data,
- })
- }
- // 分页查询异常报警列表
- export const jt_safety_alarm_list = (data) => {
- return http.request({
- method: 'POST',
- url: '/jt/safety/alarm/list',
- data,
- })
- }
- // 枣泉
- // 矿井水
- export const automate_mine_water_get_list = (data) => {
- return http.request({
- method: 'POST',
- url: '/automate/mine_water/get_list',
- data,
- })
- }
- // 信息中心 生产统计
- // 当日集团产量
- export const coalmine_output = (data) => {
- return http.request({
- url: '/coalmine/output',
- data,
- })
- }
- // 各矿产量
- export const coalmine_ratio = (data) => {
- return http.request({
- url: '/coalmine/ratio',
- data,
- })
- }
- // 周产量趋势
- export const coalmine_trend = (data) => {
- return http.request({
- url: '/coalmine/trend',
- data,
- })
- }
|