Newer
Older
operation_web / src / util / interface.js
@zhangqy zhangqy on 28 Dec 2019 1 KB 发布修改
import CHGTwo from './CHGTwo';
import project from './project';
import NF from './NF';
import SJFX from './SJFX';
import led from './led';
// import task from './apiField/task';
// import dataSource from './apiField/dataSource';

let host = '/Api';
let nozzle = {
  'login': '/sys/login', //登录页
  'logout': '/logout', //注销
  'sysMenuList': '/sys/menu/list', //获取菜单路由
  'userGroupRelaGetGroups': '/userGroupRela/getGroups', //新烽查询系统分组信息查询
  'siteGetHeads': '/site/getHeads', //新烽查询系统 根据站点编号查询表头
  'dataSelectSitePropertyList': '/site/selectSitePropertyList', //获取站点分配的因子
  'dataSiteDataEchat': '/data/siteDataEchat', //获取站点历史图表
};

// for (let items in department) {
//     nozzle[items] = department[items];
// }
for (let item in nozzle) {
  nozzle[item] = host + nozzle[item];
}
nozzle = Object.assign(nozzle, project);
nozzle = Object.assign(nozzle, CHGTwo);
nozzle = Object.assign(nozzle, NF);
nozzle = Object.assign(nozzle, SJFX);
nozzle = Object.assign(nozzle, led);
// nozzle = Object.assign(nozzle, dataSource);
export default nozzle;