Newer
Older
operation_web / src / util / interface.js
@yuwj yuwj on 4 Feb 2021 1 KB 站点管理--配置因子
import CHGTwo from "./CHGTwo";
import project from "./project";
import nfQuery from "./nfQuery";
import queueadmin from "./queueadmin";
// import SJFX from "./SJFX";
import led from "./led";
import IotPc from "./IotPc";
import group from "./group";
import projectSet from "./projectSet";
import serverManage from "./serverManage";
import task from './apiField/scheduler';
import dataSource from './apiField/dataSource';
import model from './apiField/model';
import dataquality from './apiField/dataquality';
import siteconfig from './apiField/siteconfig';

let host = "/Api";
let nozzle = {
  // login: "/sys/login", //登录页
  logout: "/logout", //注销
  sysMenuList: "/sys/menu/list" ,//获取菜单路由
  getProjectName: '/user/getProductName', //平台名称
};

// 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, nfQuery);
nozzle = Object.assign(nozzle, queueadmin);
// nozzle = Object.assign(nozzle, SJFX);
nozzle = Object.assign(nozzle, led);
nozzle = Object.assign(nozzle, IotPc);
nozzle = Object.assign(nozzle, group);
nozzle = Object.assign(nozzle, projectSet);
nozzle = Object.assign(nozzle, serverManage);
nozzle = Object.assign(nozzle, dataSource);
nozzle = Object.assign(nozzle, task);
nozzle = Object.assign(nozzle, model);
nozzle = Object.assign(nozzle, dataquality);
nozzle = Object.assign(nozzle, siteconfig);

export default nozzle;