Newer
Older
HuangJiPC / src / apiData / index.js
@zhangdeliang zhangdeliang on 21 Jun 10 KB update
/**
 * @param eventName 函数名称,必须唯一 *必填项
 * @param url 请求地址 *必填项
 * @param method 请求请求方式(默认为get)
 * @param type 传参方式 1为params 默认为json
 * @param remark 备注
 * @param urlParam //url传参
 * @param isUrl //只是url地址
 * @param 特别注意:导出方式只能使用es5语法,切记
 */
const BASE_URL = '/api';

const apiList = [
  {
    eventName: 'getHistoryData',
    url: '/api/getHistoryData',
    method: 'POST',
    remark: '获取历史数据',
  },
  {
    eventName: 'getHeads',
    url: '/api/getHeads',
    method: 'POST',
    remark: '获取数据表头',
  },
  {
    eventName: 'getCurrentData',
    url: '/api/getCurrentData',
    method: 'POST',
    remark: '获取实时数据',
  },
  {
    eventName: 'huangjiList',
    url: '/api/list',
    method: 'POST',
    remark: '获取所有的站点',
  },
  {
    eventName: 'getPerformanceList',
    url: '/performance/options/list',
    method: 'POST',
    remark: '获取指标库列表',
  },
  {
    eventName: 'getTypelist',
    url: '/performance/options/typelist',
    method: 'POST',
    remark: '新增/修改指标库类型列表',
  },
  {
    eventName: 'savePormance',
    url: '/performance/options/save',
    method: 'POST',
    remark: '新增指标库',
  },
  {
    eventName: 'getStandards',
    url: '/performance/options/standards',
    method: 'GET',
    remark: '评分标准',
    urlParam: '?',
  },
  {
    eventName: 'updatePormance',
    url: '/performance/options/update',
    method: 'POST',
    remark: '修改指标库',
  },
  {
    eventName: 'deletePormance',
    url: '/performance/options/delete',
    method: 'POST',
    remark: '删除指标库',
  },
  {
    eventName: 'getRelationList',
    url: '/performance/relation/list',
    method: 'POST',
    remark: '获取指标库厂站列表',
  },
  {
    eventName: 'getOptionsTypelist',
    url: '/performance/options/typelist',
    method: 'POST',
    remark: '获取指标库关联类型列表',
  },
  {
    eventName: 'saveRelation',
    url: '/performance/relation/save',
    method: 'POST',
    remark: '指标库关联类型提交',
  },
  {
    eventName: 'getResultList',
    url: '/perform/performCount/countResult',
    method: 'POST',
    remark: '考核结果列表(新)',
  },
  {
    eventName: 'getProblemList',
    url: '/performance/problem/list',
    method: 'POST',
    remark: '问题清单列表',
  },
  {
    eventName: 'getEvaluationList',
    url: '/performance/month/list',
    method: 'POST',
    remark: '考核评价列表',
  },
  {
    eventName: 'getEvaluationDetail',
    url: '/performance/month/detail',
    method: 'GET',
    remark: '考核评价详情列表',
    urlParam: '?monthScoreId=1',
  },
  {
    eventName: 'getProblemDetailList',
    url: '/performance/problem/detail',
    method: 'POST',
    remark: '考核评价问题详情',
  },
  {
    eventName: 'saveDetailProblem',
    url: '/performance/problem/saveDetail',
    method: 'POST',
    remark: '新增考核评价问题详情',
  },
  {
    eventName: 'deleteDetailProblem',
    url: '/performance/problem/remove',
    method: 'POST',
    remark: '删除考核评价问题详情',
  },
  {
    eventName: 'saveDetailProblemList',
    url: '/performance/month/saveDetail',
    method: 'POST',
    remark: '保存考核评价问题',
  },
  {
    eventName: 'saveAllScores',
    url: '/performance/month/save',
    method: 'POST',
    remark: '保存考核所有分数',
  },
  {
    eventName: 'analysisData1',
    url: '/performance/analysis/fiveYearScore',
    method: 'POST',
    remark: '绩效统计分析数据1',
  },
  {
    eventName: 'analysisData2',
    url: '/performance/analysis/scoreLevel',
    method: 'POST',
    remark: '绩效统计分析数据2',
  },
  {
    eventName: 'getSettingList',
    url: '/sys/site/listStationBaseWithPage',
    method: 'post',
    remark: '获取报警配置列表',
  },
  {
    eventName: 'getWarnConfigList',
    url: '/warn/config/listWarnConfig',
    method: 'post',
    remark: '获取报警配置阈值配置列表',
  },
  {
    eventName: 'getWarnNonList',
    url: '/warn/config/listNonConfig',
    method: 'post',
    remark: '获取报警配置因子列表',
  },
  {
    eventName: 'addWarnConfig',
    url: '/warn/config/insertWarnConfig',
    method: 'post',
    remark: '新增阈值',
  },
  {
    eventName: 'editWarnConfig',
    url: '/warn/config/updateWarnConfig',
    method: 'post',
    remark: '修改阈值',
  },
  {
    eventName: 'deleteWarnConfig',
    url: '/warn/config/deleteWarnConfig',
    method: 'post',
    remark: '删除阈值',
  },
  {
    eventName: 'getWarnLog',
    url: '/warn/log/listWarnLog',
    method: 'post',
    remark: '获取报警日志列表历史',
  },
  {
    eventName: 'warntempSearch',
    url: '/nfWarnalarm/warntemp/queryPage',
    method: 'post',
    remark: '获取报警日志列表实时-查询',
  },
  {
    eventName: 'warntempDetail',
    url: '/nfWarnalarm/warntemp/alarmReminderWorkorderInfo',
    method: 'post',
    remark: '获取报警日志列表实时-查询报警提醒工单详细信息',
  },
  {
    eventName: 'warntempHistory',
    url: '/nfWarnalarm/warntemp/alarmReminderWorkorderProcessHistory',
    method: 'post',
    remark: '获取报警日志列表实时-查询报警提醒工单流程历史记录',
  },
  {
    eventName: 'queryAlarmReminderListHistory',
    url: '/nfWarnalarm/warntemp/queryAlarmReminderListHistory',
    method: 'post',
    remark: '获取报警日志列表实时-报警提醒详细历史记录',
  },
  {
    eventName: 'getPushRule',
    url: '/warn/rule/listPushRule',
    method: 'post',
    remark: '获取推送规则列表',
  },
  {
    eventName: 'addPushRule',
    url: '/warn/rule/insertWarnPushRule',
    method: 'post',
    remark: '新增推送规则',
  },
  {
    eventName: 'editPushRule',
    url: '/warn/rule/updateWarnPushRule',
    method: 'post',
    remark: '修改推送规则',
  },
  {
    eventName: 'deletePushRule',
    url: '/warn/rule/deleteWarnPushRule',
    method: 'post',
    remark: '删除推送规则',
  },
  {
    eventName: 'selectSiteNoByGroupsNo',
    url: '/groups/selectSiteNoByGroupsNo',
    method: 'get',
    urlParam: "?platformCode=''",
    remark: '实时监测左侧列表',
  },
  {
    eventName: 'getSiteHeads',
    url: '/site/getHeads',
    method: 'get',
    urlParam: '?siteNo=',
    remark: '实时监测右侧上方表格表头',
  },
  {
    eventName: 'selectSiteSiteManBySerial',
    url: '/data/selectSiteSiteManBySerial',
    method: 'get',
    urlParam: '?stCode=',
    remark: '实时监测右侧上方表格数据',
  },
  {
    eventName: 'selectSiteSiteManHistoryData',
    url: '/data/selectSiteSiteManHistoryDataMongoBySerial',
    method: 'get',
    urlParam: '?dName=',
    remark: '实时监测右侧tab表格数据',
  },
  {
    eventName: 'selectSitePropertyList',
    url: '/site/selectSitePropertyList',
    method: 'get',
    urlParam: '?siteNo=',
    remark: '实时监测右侧tab图表因子列表',
  },
  {
    eventName: 'siteDataEchat',
    url: '/data/siteDataEchat',
    method: 'get',
    urlParam: '?dName=',
    remark: '实时监测右侧tab图表echarts数据',
  },
  {
    eventName: 'selectStationData',
    url: '/data/selectStationBaseStatisticsHistoryDataMongodb',
    method: 'post',
    remark: '实时监测右侧tab数据统计列表',
  },
  {
    eventName: 'stationbaseList',
    url: '/sys/stationbase/listExtend',
    method: 'post',
    remark: '站点管理表格',
  },
  {
    eventName: 'stationbaseSaveOrUpdate',
    url: '/sys/stationbase/saveOrupdate',
    method: 'post',
    remark: '站点管理保存',
  },
  {
    eventName: 'equipConfigList',
    url: '/sys/equipconfig/list',
    method: 'post',
    remark: '因子管理列表',
  },
  {
    eventName: 'equipConfigUpdate',
    url: '/sys/equipconfig/update',
    method: 'post',
    remark: '因子管理更新',
  },
  {
    eventName: 'fileUpload',
    url: '/ftp/file/uploadFileCloud',
    method: 'post',
    remark: '文件上传接口',
    timeout: 60000,
  },
  {
    eventName: 'fileDelete',
    url: '/ftp/file/deleteFileCloud',
    method: 'post',
    remark: '文件删除接口',
  },
  {
    eventName: 'sysDicList',
    url: '/sys/sysdic/list',
    method: 'post',
    type: 1,
    remark: '站点类型字典',
  },
  {
    eventName: 'sysStationbaseSaveOrupdate',
    url: '/sys/stationbase/saveOrupdate',
    method: 'post',
    remark: '添加和保存站点弹框的信息',
  },
  {
    eventName: 'getServerManagerList',
    url: '/configure/selectConfig',
    method: 'post',
    remark: '获取服务器管理列表',
  },
  {
    eventName: 'queryIp',
    url: '/exe/queryIp',
    method: 'post',
    remark: '获取服务器ip列表',
  },
  {
    eventName: 'queryByIp',
    url: '/exe/queryByIP',
    method: 'post',
    remark: '获取服务器ip名称列表',
  },
  {
    eventName: 'selectExeManage',
    url: '/bindding/selectExeManage',
    method: 'post',
    remark: '获取用户绑定列表',
  },
  {
    eventName: 'insertExeManage',
    url: '/bindding/insertExeManage',
    method: 'post',
    remark: '新增用户绑定',
  },
  {
    eventName: 'updateExeManage',
    url: '/bindding/updateExeManage',
    method: 'post',
    remark: '修改用户绑定',
  },
  {
    eventName: 'deleteExeManage',
    url: '/bindding/deleteExeManage',
    method: 'post',
    remark: '删除用户绑定',
    urlParam: '?',
  },
  {
    eventName: 'detailsInfoList',
    url: '/exe/queryList',
    method: 'post',
    remark: '数据服务详情服务应用列表',
  },
  {
    eventName: 'queryDetail',
    url: '/exe/queryDetail',
    method: 'post',
    remark: '数据服务详情服务应用查看详情',
  },
  {
    eventName: 'getCameraTree',
    url: '/hkview/getCameraTree',
    method: 'post',
    remark: '获取所有摄像头',
  },
  {
    eventName: 'pageQueryCamerPictureInfos',
    url: '/hkview/pageQueryCamerPictureInfos',
    method: 'post',
    remark: '分页查询监控点抓拍图片',
  },
  {
    eventName: 'rainFeatures',
    url: '/oneMapApi/rainFeatures2',
    method: 'post',
    remark: '未来气象信息',
  },
  {
    eventName: 'rainFeaturesStationCollect',
    url: '/oneMapApi/rainFeaturesStationCollect',
    method: 'post',
    remark: '降雨数据采集',
  },
  
];

module.exports = {
  BASE_URL,
  apiList,
};