diff --git a/src/util/NF.js b/src/util/NF.js deleted file mode 100644 index 7e8d8d3..0000000 --- a/src/util/NF.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 项目管理相关接口 - * @exports {Object} - * 陈洪刚 - */ -let host = '/Api'; - -let nozzle = { - 'groupsSelectSiteNoByGroupsNo': '/groups/selectSiteNoByGroupsNo', //点击分组获取分组下站点 - 'dataSelectSiteSiteManBySerial': '/data/selectSiteSiteManBySerial', //获取站点的实时数据 - 'dataSelectSiteSiteManHistoryDataMongoBySerial': '/data/selectSiteSiteManHistoryDataMongoBySerial', //获取站点的历史数据 - 'dataReportBatchExportHistoryData': '/dataReport/batchExportHistoryData', //导出站点的历史数据 - 'surveyDataExporExcelOfSurverData': '/surveyData/exporExcelOfSurverData', //导入历史数据 -}; - -for (let item in nozzle) { - nozzle[item] = host + nozzle[item]; -} -export default nozzle; diff --git a/src/util/NF.js b/src/util/NF.js deleted file mode 100644 index 7e8d8d3..0000000 --- a/src/util/NF.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 项目管理相关接口 - * @exports {Object} - * 陈洪刚 - */ -let host = '/Api'; - -let nozzle = { - 'groupsSelectSiteNoByGroupsNo': '/groups/selectSiteNoByGroupsNo', //点击分组获取分组下站点 - 'dataSelectSiteSiteManBySerial': '/data/selectSiteSiteManBySerial', //获取站点的实时数据 - 'dataSelectSiteSiteManHistoryDataMongoBySerial': '/data/selectSiteSiteManHistoryDataMongoBySerial', //获取站点的历史数据 - 'dataReportBatchExportHistoryData': '/dataReport/batchExportHistoryData', //导出站点的历史数据 - 'surveyDataExporExcelOfSurverData': '/surveyData/exporExcelOfSurverData', //导入历史数据 -}; - -for (let item in nozzle) { - nozzle[item] = host + nozzle[item]; -} -export default nozzle; diff --git a/src/util/SJFX.js b/src/util/SJFX.js deleted file mode 100644 index 1ac1c5e..0000000 --- a/src/util/SJFX.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * 数据分析模块 - * @exports {Object} - * 陈红刚 - */ -let host = '/Api'; - -let nozzle = { - "statement": "/statistical/statement", - "service": "/statistical/service", - "Conn": "/statistical/Conn", -}; - -for (let item in nozzle) { - nozzle[item] = host + nozzle[item]; -} -export default nozzle; diff --git a/src/util/NF.js b/src/util/NF.js deleted file mode 100644 index 7e8d8d3..0000000 --- a/src/util/NF.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 项目管理相关接口 - * @exports {Object} - * 陈洪刚 - */ -let host = '/Api'; - -let nozzle = { - 'groupsSelectSiteNoByGroupsNo': '/groups/selectSiteNoByGroupsNo', //点击分组获取分组下站点 - 'dataSelectSiteSiteManBySerial': '/data/selectSiteSiteManBySerial', //获取站点的实时数据 - 'dataSelectSiteSiteManHistoryDataMongoBySerial': '/data/selectSiteSiteManHistoryDataMongoBySerial', //获取站点的历史数据 - 'dataReportBatchExportHistoryData': '/dataReport/batchExportHistoryData', //导出站点的历史数据 - 'surveyDataExporExcelOfSurverData': '/surveyData/exporExcelOfSurverData', //导入历史数据 -}; - -for (let item in nozzle) { - nozzle[item] = host + nozzle[item]; -} -export default nozzle; diff --git a/src/util/SJFX.js b/src/util/SJFX.js deleted file mode 100644 index 1ac1c5e..0000000 --- a/src/util/SJFX.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * 数据分析模块 - * @exports {Object} - * 陈红刚 - */ -let host = '/Api'; - -let nozzle = { - "statement": "/statistical/statement", - "service": "/statistical/service", - "Conn": "/statistical/Conn", -}; - -for (let item in nozzle) { - nozzle[item] = host + nozzle[item]; -} -export default nozzle; diff --git a/src/util/group.js b/src/util/group.js index 83701fd..05e6f68 100644 --- a/src/util/group.js +++ b/src/util/group.js @@ -3,41 +3,41 @@ * @exports {Object} * 陆展 */ -let host = process.env.NODE_ENV === 'development' ? '/groupApi' : ''; +let host = "/groupApi"; let nozzle = { - 'userGroupList':'/usergroup/list', //获取用户组列表信息 - 'userGroupAdd':'/usergroup/add', //添加用户组 - 'addUserToGroup':'/addSysuser', //添加用户到用户组 - 'addGroupToProject':'/usergroup/save', //添加用户组到项目 + userGroupList: "/usergroup/list", //获取用户组列表信息 + userGroupAdd: "/usergroup/add", //添加用户组 + addUserToGroup: "/addSysuser", //添加用户到用户组 + addGroupToProject: "/usergroup/save", //添加用户组到项目 - 'sysLogin':'/sysLogin',//登录 - 'menuGetCurrentUserMenu':'/menu/getCurrentUserMenu',//获取菜单以及按钮权限 - "orgGetCurrentOrgTree":"/org/getCurrentOrgTree",//获取当前用户可管理的组织 + sysLogin: "/sysLogin", //登录 + menuGetCurrentUserMenu: "/menu/getCurrentUserMenu", //获取菜单以及按钮权限 + orgGetCurrentOrgTree: "/org/getCurrentOrgTree", //获取当前用户可管理的组织 - 'selectSysuser':'/selectSysuser', //获取用户信息 - 'deleteSysuser':'/deleteSysuser', //删除用户信息 - 'updateSysuser':'/updateSysuser', //修改用户信息 + selectSysuser: "/selectSysuser", //获取用户信息 + deleteSysuser: "/deleteSysuser", //删除用户信息 + updateSysuser: "/updateSysuser", //修改用户信息 - 'orgGetOrgTree':'/org/getOrgTree', //获取组织信息 - 'orgDeleteOrg':'/org/deleteOrg', //删除组织信息 - 'orgUpdateOrg':'/org/updateOrg', //修改组织信息 - 'orgAddOrg':'/org/addOrg', //新增组织信息 - - 'roleGetRoles':'/role/getRoles', //查询角色信息 - 'roleAddRole':'/role/addRole', //新增角色信息 - 'roleUpdateRole':'/role/updateRole', //修改角色信息 - 'roleDeleteRole':'/role/deleteRole', //删除角色信息 - 'roleGetRoleMenums':'/role/getRoleMenums', //查询角色授权的菜单按钮 + orgGetOrgTree: "/org/getOrgTree", //获取组织信息 + orgDeleteOrg: "/org/deleteOrg", //删除组织信息 + orgUpdateOrg: "/org/updateOrg", //修改组织信息 + orgAddOrg: "/org/addOrg", //新增组织信息 - 'menuGetMenuTree':'/menu/getMenuTree', //查询菜单树信息 - 'menuAddMenu':'/menu/addMenu', //新增菜单树信息 - 'menuUpdateMenu':'/menu/updateMenu', //修改菜单树信息 - 'menuDeleteMenu':'/menu/deleteMenu', //删除菜单树信息 - 'menuGetCurrentUserMenu':'/menu/getCurrentUserMenu', //获取当前用户的菜单 + roleGetRoles: "/role/getRoles", //查询角色信息 + roleAddRole: "/role/addRole", //新增角色信息 + roleUpdateRole: "/role/updateRole", //修改角色信息 + roleDeleteRole: "/role/deleteRole", //删除角色信息 + roleGetRoleMenums: "/role/getRoleMenums", //查询角色授权的菜单按钮 + + menuGetMenuTree: "/menu/getMenuTree", //查询菜单树信息 + menuAddMenu: "/menu/addMenu", //新增菜单树信息 + menuUpdateMenu: "/menu/updateMenu", //修改菜单树信息 + menuDeleteMenu: "/menu/deleteMenu", //删除菜单树信息 + menuGetCurrentUserMenu: "/menu/getCurrentUserMenu" //获取当前用户的菜单 }; for (let item in nozzle) { nozzle[item] = host + nozzle[item]; } -export default nozzle; \ No newline at end of file +export default nozzle; diff --git a/src/util/NF.js b/src/util/NF.js deleted file mode 100644 index 7e8d8d3..0000000 --- a/src/util/NF.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 项目管理相关接口 - * @exports {Object} - * 陈洪刚 - */ -let host = '/Api'; - -let nozzle = { - 'groupsSelectSiteNoByGroupsNo': '/groups/selectSiteNoByGroupsNo', //点击分组获取分组下站点 - 'dataSelectSiteSiteManBySerial': '/data/selectSiteSiteManBySerial', //获取站点的实时数据 - 'dataSelectSiteSiteManHistoryDataMongoBySerial': '/data/selectSiteSiteManHistoryDataMongoBySerial', //获取站点的历史数据 - 'dataReportBatchExportHistoryData': '/dataReport/batchExportHistoryData', //导出站点的历史数据 - 'surveyDataExporExcelOfSurverData': '/surveyData/exporExcelOfSurverData', //导入历史数据 -}; - -for (let item in nozzle) { - nozzle[item] = host + nozzle[item]; -} -export default nozzle; diff --git a/src/util/SJFX.js b/src/util/SJFX.js deleted file mode 100644 index 1ac1c5e..0000000 --- a/src/util/SJFX.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * 数据分析模块 - * @exports {Object} - * 陈红刚 - */ -let host = '/Api'; - -let nozzle = { - "statement": "/statistical/statement", - "service": "/statistical/service", - "Conn": "/statistical/Conn", -}; - -for (let item in nozzle) { - nozzle[item] = host + nozzle[item]; -} -export default nozzle; diff --git a/src/util/group.js b/src/util/group.js index 83701fd..05e6f68 100644 --- a/src/util/group.js +++ b/src/util/group.js @@ -3,41 +3,41 @@ * @exports {Object} * 陆展 */ -let host = process.env.NODE_ENV === 'development' ? '/groupApi' : ''; +let host = "/groupApi"; let nozzle = { - 'userGroupList':'/usergroup/list', //获取用户组列表信息 - 'userGroupAdd':'/usergroup/add', //添加用户组 - 'addUserToGroup':'/addSysuser', //添加用户到用户组 - 'addGroupToProject':'/usergroup/save', //添加用户组到项目 + userGroupList: "/usergroup/list", //获取用户组列表信息 + userGroupAdd: "/usergroup/add", //添加用户组 + addUserToGroup: "/addSysuser", //添加用户到用户组 + addGroupToProject: "/usergroup/save", //添加用户组到项目 - 'sysLogin':'/sysLogin',//登录 - 'menuGetCurrentUserMenu':'/menu/getCurrentUserMenu',//获取菜单以及按钮权限 - "orgGetCurrentOrgTree":"/org/getCurrentOrgTree",//获取当前用户可管理的组织 + sysLogin: "/sysLogin", //登录 + menuGetCurrentUserMenu: "/menu/getCurrentUserMenu", //获取菜单以及按钮权限 + orgGetCurrentOrgTree: "/org/getCurrentOrgTree", //获取当前用户可管理的组织 - 'selectSysuser':'/selectSysuser', //获取用户信息 - 'deleteSysuser':'/deleteSysuser', //删除用户信息 - 'updateSysuser':'/updateSysuser', //修改用户信息 + selectSysuser: "/selectSysuser", //获取用户信息 + deleteSysuser: "/deleteSysuser", //删除用户信息 + updateSysuser: "/updateSysuser", //修改用户信息 - 'orgGetOrgTree':'/org/getOrgTree', //获取组织信息 - 'orgDeleteOrg':'/org/deleteOrg', //删除组织信息 - 'orgUpdateOrg':'/org/updateOrg', //修改组织信息 - 'orgAddOrg':'/org/addOrg', //新增组织信息 - - 'roleGetRoles':'/role/getRoles', //查询角色信息 - 'roleAddRole':'/role/addRole', //新增角色信息 - 'roleUpdateRole':'/role/updateRole', //修改角色信息 - 'roleDeleteRole':'/role/deleteRole', //删除角色信息 - 'roleGetRoleMenums':'/role/getRoleMenums', //查询角色授权的菜单按钮 + orgGetOrgTree: "/org/getOrgTree", //获取组织信息 + orgDeleteOrg: "/org/deleteOrg", //删除组织信息 + orgUpdateOrg: "/org/updateOrg", //修改组织信息 + orgAddOrg: "/org/addOrg", //新增组织信息 - 'menuGetMenuTree':'/menu/getMenuTree', //查询菜单树信息 - 'menuAddMenu':'/menu/addMenu', //新增菜单树信息 - 'menuUpdateMenu':'/menu/updateMenu', //修改菜单树信息 - 'menuDeleteMenu':'/menu/deleteMenu', //删除菜单树信息 - 'menuGetCurrentUserMenu':'/menu/getCurrentUserMenu', //获取当前用户的菜单 + roleGetRoles: "/role/getRoles", //查询角色信息 + roleAddRole: "/role/addRole", //新增角色信息 + roleUpdateRole: "/role/updateRole", //修改角色信息 + roleDeleteRole: "/role/deleteRole", //删除角色信息 + roleGetRoleMenums: "/role/getRoleMenums", //查询角色授权的菜单按钮 + + menuGetMenuTree: "/menu/getMenuTree", //查询菜单树信息 + menuAddMenu: "/menu/addMenu", //新增菜单树信息 + menuUpdateMenu: "/menu/updateMenu", //修改菜单树信息 + menuDeleteMenu: "/menu/deleteMenu", //删除菜单树信息 + menuGetCurrentUserMenu: "/menu/getCurrentUserMenu" //获取当前用户的菜单 }; for (let item in nozzle) { nozzle[item] = host + nozzle[item]; } -export default nozzle; \ No newline at end of file +export default nozzle; diff --git a/src/util/interface.js b/src/util/interface.js index 161a999..e0b5312 100644 --- a/src/util/interface.js +++ b/src/util/interface.js @@ -1,23 +1,19 @@ -import CHGTwo from './CHGTwo'; -import project from './project'; -import NF from './NF'; -import SJFX from './SJFX'; -import led from './led'; -import IotPc from './IotPc'; -import group from './group'; -import projectSet from './projectSet'; +import CHGTwo from "./CHGTwo"; +import project from "./project"; +import nfQuery from "./nfQuery"; +// import SJFX from "./SJFX"; +import led from "./led"; +import IotPc from "./IotPc"; +import group from "./group"; +import projectSet from "./projectSet"; // import task from './apiField/task'; // import dataSource from './apiField/dataSource'; let host = "/Api"; let nozzle = { - login: "/sys/login", //登录页 + // login: "/sys/login", //登录页 logout: "/logout", //注销 - sysMenuList: "/sys/menu/list", //获取菜单路由 - userGroupRelaGetGroups: "/userGroupRela/getGroups", //新烽查询系统分组信息查询 - siteGetHeads: "/site/getHeads", //新烽查询系统 根据站点编号查询表头 - dataSelectSitePropertyList: "/site/selectSitePropertyList", //获取站点分配的因子 - dataSiteDataEchat: "/data/siteDataEchat" //获取站点历史图表 + sysMenuList: "/sys/menu/list" //获取菜单路由 }; // for (let items in department) { @@ -28,8 +24,8 @@ } nozzle = Object.assign(nozzle, project); nozzle = Object.assign(nozzle, CHGTwo); -nozzle = Object.assign(nozzle, NF); -nozzle = Object.assign(nozzle, SJFX); +nozzle = Object.assign(nozzle, nfQuery); +// nozzle = Object.assign(nozzle, SJFX); nozzle = Object.assign(nozzle, led); nozzle = Object.assign(nozzle, IotPc); nozzle = Object.assign(nozzle, group); diff --git a/src/util/NF.js b/src/util/NF.js deleted file mode 100644 index 7e8d8d3..0000000 --- a/src/util/NF.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 项目管理相关接口 - * @exports {Object} - * 陈洪刚 - */ -let host = '/Api'; - -let nozzle = { - 'groupsSelectSiteNoByGroupsNo': '/groups/selectSiteNoByGroupsNo', //点击分组获取分组下站点 - 'dataSelectSiteSiteManBySerial': '/data/selectSiteSiteManBySerial', //获取站点的实时数据 - 'dataSelectSiteSiteManHistoryDataMongoBySerial': '/data/selectSiteSiteManHistoryDataMongoBySerial', //获取站点的历史数据 - 'dataReportBatchExportHistoryData': '/dataReport/batchExportHistoryData', //导出站点的历史数据 - 'surveyDataExporExcelOfSurverData': '/surveyData/exporExcelOfSurverData', //导入历史数据 -}; - -for (let item in nozzle) { - nozzle[item] = host + nozzle[item]; -} -export default nozzle; diff --git a/src/util/SJFX.js b/src/util/SJFX.js deleted file mode 100644 index 1ac1c5e..0000000 --- a/src/util/SJFX.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * 数据分析模块 - * @exports {Object} - * 陈红刚 - */ -let host = '/Api'; - -let nozzle = { - "statement": "/statistical/statement", - "service": "/statistical/service", - "Conn": "/statistical/Conn", -}; - -for (let item in nozzle) { - nozzle[item] = host + nozzle[item]; -} -export default nozzle; diff --git a/src/util/group.js b/src/util/group.js index 83701fd..05e6f68 100644 --- a/src/util/group.js +++ b/src/util/group.js @@ -3,41 +3,41 @@ * @exports {Object} * 陆展 */ -let host = process.env.NODE_ENV === 'development' ? '/groupApi' : ''; +let host = "/groupApi"; let nozzle = { - 'userGroupList':'/usergroup/list', //获取用户组列表信息 - 'userGroupAdd':'/usergroup/add', //添加用户组 - 'addUserToGroup':'/addSysuser', //添加用户到用户组 - 'addGroupToProject':'/usergroup/save', //添加用户组到项目 + userGroupList: "/usergroup/list", //获取用户组列表信息 + userGroupAdd: "/usergroup/add", //添加用户组 + addUserToGroup: "/addSysuser", //添加用户到用户组 + addGroupToProject: "/usergroup/save", //添加用户组到项目 - 'sysLogin':'/sysLogin',//登录 - 'menuGetCurrentUserMenu':'/menu/getCurrentUserMenu',//获取菜单以及按钮权限 - "orgGetCurrentOrgTree":"/org/getCurrentOrgTree",//获取当前用户可管理的组织 + sysLogin: "/sysLogin", //登录 + menuGetCurrentUserMenu: "/menu/getCurrentUserMenu", //获取菜单以及按钮权限 + orgGetCurrentOrgTree: "/org/getCurrentOrgTree", //获取当前用户可管理的组织 - 'selectSysuser':'/selectSysuser', //获取用户信息 - 'deleteSysuser':'/deleteSysuser', //删除用户信息 - 'updateSysuser':'/updateSysuser', //修改用户信息 + selectSysuser: "/selectSysuser", //获取用户信息 + deleteSysuser: "/deleteSysuser", //删除用户信息 + updateSysuser: "/updateSysuser", //修改用户信息 - 'orgGetOrgTree':'/org/getOrgTree', //获取组织信息 - 'orgDeleteOrg':'/org/deleteOrg', //删除组织信息 - 'orgUpdateOrg':'/org/updateOrg', //修改组织信息 - 'orgAddOrg':'/org/addOrg', //新增组织信息 - - 'roleGetRoles':'/role/getRoles', //查询角色信息 - 'roleAddRole':'/role/addRole', //新增角色信息 - 'roleUpdateRole':'/role/updateRole', //修改角色信息 - 'roleDeleteRole':'/role/deleteRole', //删除角色信息 - 'roleGetRoleMenums':'/role/getRoleMenums', //查询角色授权的菜单按钮 + orgGetOrgTree: "/org/getOrgTree", //获取组织信息 + orgDeleteOrg: "/org/deleteOrg", //删除组织信息 + orgUpdateOrg: "/org/updateOrg", //修改组织信息 + orgAddOrg: "/org/addOrg", //新增组织信息 - 'menuGetMenuTree':'/menu/getMenuTree', //查询菜单树信息 - 'menuAddMenu':'/menu/addMenu', //新增菜单树信息 - 'menuUpdateMenu':'/menu/updateMenu', //修改菜单树信息 - 'menuDeleteMenu':'/menu/deleteMenu', //删除菜单树信息 - 'menuGetCurrentUserMenu':'/menu/getCurrentUserMenu', //获取当前用户的菜单 + roleGetRoles: "/role/getRoles", //查询角色信息 + roleAddRole: "/role/addRole", //新增角色信息 + roleUpdateRole: "/role/updateRole", //修改角色信息 + roleDeleteRole: "/role/deleteRole", //删除角色信息 + roleGetRoleMenums: "/role/getRoleMenums", //查询角色授权的菜单按钮 + + menuGetMenuTree: "/menu/getMenuTree", //查询菜单树信息 + menuAddMenu: "/menu/addMenu", //新增菜单树信息 + menuUpdateMenu: "/menu/updateMenu", //修改菜单树信息 + menuDeleteMenu: "/menu/deleteMenu", //删除菜单树信息 + menuGetCurrentUserMenu: "/menu/getCurrentUserMenu" //获取当前用户的菜单 }; for (let item in nozzle) { nozzle[item] = host + nozzle[item]; } -export default nozzle; \ No newline at end of file +export default nozzle; diff --git a/src/util/interface.js b/src/util/interface.js index 161a999..e0b5312 100644 --- a/src/util/interface.js +++ b/src/util/interface.js @@ -1,23 +1,19 @@ -import CHGTwo from './CHGTwo'; -import project from './project'; -import NF from './NF'; -import SJFX from './SJFX'; -import led from './led'; -import IotPc from './IotPc'; -import group from './group'; -import projectSet from './projectSet'; +import CHGTwo from "./CHGTwo"; +import project from "./project"; +import nfQuery from "./nfQuery"; +// import SJFX from "./SJFX"; +import led from "./led"; +import IotPc from "./IotPc"; +import group from "./group"; +import projectSet from "./projectSet"; // import task from './apiField/task'; // import dataSource from './apiField/dataSource'; let host = "/Api"; let nozzle = { - login: "/sys/login", //登录页 + // login: "/sys/login", //登录页 logout: "/logout", //注销 - sysMenuList: "/sys/menu/list", //获取菜单路由 - userGroupRelaGetGroups: "/userGroupRela/getGroups", //新烽查询系统分组信息查询 - siteGetHeads: "/site/getHeads", //新烽查询系统 根据站点编号查询表头 - dataSelectSitePropertyList: "/site/selectSitePropertyList", //获取站点分配的因子 - dataSiteDataEchat: "/data/siteDataEchat" //获取站点历史图表 + sysMenuList: "/sys/menu/list" //获取菜单路由 }; // for (let items in department) { @@ -28,8 +24,8 @@ } nozzle = Object.assign(nozzle, project); nozzle = Object.assign(nozzle, CHGTwo); -nozzle = Object.assign(nozzle, NF); -nozzle = Object.assign(nozzle, SJFX); +nozzle = Object.assign(nozzle, nfQuery); +// nozzle = Object.assign(nozzle, SJFX); nozzle = Object.assign(nozzle, led); nozzle = Object.assign(nozzle, IotPc); nozzle = Object.assign(nozzle, group); diff --git a/src/util/led.js b/src/util/led.js index 14f8b54..a514ec8 100644 --- a/src/util/led.js +++ b/src/util/led.js @@ -3,27 +3,26 @@ * @exports {Object} * 谢阳 */ -let host = '/led'; +let host = "/led"; let nozzle = { - 'personnelInfo': '/personnel/info', //获取巡检人信息 - 'subtitlesLedQueryLedNo': '/subtitles/led/queryLedNo',//LED屏接口 - 'subtitlesLedQuery': '/subtitles/led/query',//LED屏接口 - 'subtitlesLedSave': '/subtitles/led/save',//LED屏接口 - 'subtitlesLedUpdate': '/subtitles/led/update',//LED屏接口 - 'subtitlesLedDelete': '/subtitles/led/delete',//LED屏接口 - 'subtitlesLedClean': '/subtitles/led/clean',//LED屏接口 - 'subtitlesLedSend': '/subtitles/led/send',//LED屏接口 - 'subtitlesledQuerySiteGroup': '/subtitles/led/querySiteGroup',//LED分组搜索 - 'subtitlesledaddSiteGroup': '/subtitles/led/addSiteGroup',//LED分组新增 - 'subtitlesledUpdateSiteGroup': '/subtitles/led/updateSiteGroup',//LED分组修改 - 'subtitlesleddeleteSiteGroup': '/subtitles/led/deleteSiteGroup',//LED分组删除 - 'subtitlesledQuerySiteMes': '/subtitles/led/querySiteMes',//未分组站点查询 - 'subtitlesledQueryQueryLogs': '/subtitles/led/queryLogs',//查询日志 + personnelInfo: "/personnel/info", //获取巡检人信息 + subtitlesLedQueryLedNo: "/subtitles/led/queryLedNo", //LED屏接口 + subtitlesLedQuery: "/subtitles/led/query", //LED屏接口 + subtitlesLedSave: "/subtitles/led/save", //LED屏接口 + subtitlesLedUpdate: "/subtitles/led/update", //LED屏接口 + subtitlesLedDelete: "/subtitles/led/delete", //LED屏接口 + subtitlesLedClean: "/subtitles/led/clean", //LED屏接口 + subtitlesLedSend: "/subtitles/led/send", //LED屏接口 + subtitlesledQuerySiteGroup: "/subtitles/led/querySiteGroup", //LED分组搜索 + subtitlesledaddSiteGroup: "/subtitles/led/addSiteGroup", //LED分组新增 + subtitlesledUpdateSiteGroup: "/subtitles/led/updateSiteGroup", //LED分组修改 + subtitlesleddeleteSiteGroup: "/subtitles/led/deleteSiteGroup", //LED分组删除 + subtitlesledQuerySiteMes: "/subtitles/led/querySiteMes", //未分组站点查询 + subtitlesledQueryQueryLogs: "/subtitles/led/queryLogs", //查询日志 - - 'subtitlesledQuerySysLogin': '/subtitles/led/sysLogin',//led登录 - 'subtitlesledQueryGetCurrentUserMenu': '/subtitles/led/getCurrentUserMenu',//led权限 + subtitlesledQuerySysLogin: "/subtitles/led/sysLogin", //led登录 + subtitlesledQueryGetCurrentUserMenu: "/subtitles/led/getCurrentUserMenu" //led权限 }; for (let item in nozzle) { diff --git a/src/util/NF.js b/src/util/NF.js deleted file mode 100644 index 7e8d8d3..0000000 --- a/src/util/NF.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 项目管理相关接口 - * @exports {Object} - * 陈洪刚 - */ -let host = '/Api'; - -let nozzle = { - 'groupsSelectSiteNoByGroupsNo': '/groups/selectSiteNoByGroupsNo', //点击分组获取分组下站点 - 'dataSelectSiteSiteManBySerial': '/data/selectSiteSiteManBySerial', //获取站点的实时数据 - 'dataSelectSiteSiteManHistoryDataMongoBySerial': '/data/selectSiteSiteManHistoryDataMongoBySerial', //获取站点的历史数据 - 'dataReportBatchExportHistoryData': '/dataReport/batchExportHistoryData', //导出站点的历史数据 - 'surveyDataExporExcelOfSurverData': '/surveyData/exporExcelOfSurverData', //导入历史数据 -}; - -for (let item in nozzle) { - nozzle[item] = host + nozzle[item]; -} -export default nozzle; diff --git a/src/util/SJFX.js b/src/util/SJFX.js deleted file mode 100644 index 1ac1c5e..0000000 --- a/src/util/SJFX.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * 数据分析模块 - * @exports {Object} - * 陈红刚 - */ -let host = '/Api'; - -let nozzle = { - "statement": "/statistical/statement", - "service": "/statistical/service", - "Conn": "/statistical/Conn", -}; - -for (let item in nozzle) { - nozzle[item] = host + nozzle[item]; -} -export default nozzle; diff --git a/src/util/group.js b/src/util/group.js index 83701fd..05e6f68 100644 --- a/src/util/group.js +++ b/src/util/group.js @@ -3,41 +3,41 @@ * @exports {Object} * 陆展 */ -let host = process.env.NODE_ENV === 'development' ? '/groupApi' : ''; +let host = "/groupApi"; let nozzle = { - 'userGroupList':'/usergroup/list', //获取用户组列表信息 - 'userGroupAdd':'/usergroup/add', //添加用户组 - 'addUserToGroup':'/addSysuser', //添加用户到用户组 - 'addGroupToProject':'/usergroup/save', //添加用户组到项目 + userGroupList: "/usergroup/list", //获取用户组列表信息 + userGroupAdd: "/usergroup/add", //添加用户组 + addUserToGroup: "/addSysuser", //添加用户到用户组 + addGroupToProject: "/usergroup/save", //添加用户组到项目 - 'sysLogin':'/sysLogin',//登录 - 'menuGetCurrentUserMenu':'/menu/getCurrentUserMenu',//获取菜单以及按钮权限 - "orgGetCurrentOrgTree":"/org/getCurrentOrgTree",//获取当前用户可管理的组织 + sysLogin: "/sysLogin", //登录 + menuGetCurrentUserMenu: "/menu/getCurrentUserMenu", //获取菜单以及按钮权限 + orgGetCurrentOrgTree: "/org/getCurrentOrgTree", //获取当前用户可管理的组织 - 'selectSysuser':'/selectSysuser', //获取用户信息 - 'deleteSysuser':'/deleteSysuser', //删除用户信息 - 'updateSysuser':'/updateSysuser', //修改用户信息 + selectSysuser: "/selectSysuser", //获取用户信息 + deleteSysuser: "/deleteSysuser", //删除用户信息 + updateSysuser: "/updateSysuser", //修改用户信息 - 'orgGetOrgTree':'/org/getOrgTree', //获取组织信息 - 'orgDeleteOrg':'/org/deleteOrg', //删除组织信息 - 'orgUpdateOrg':'/org/updateOrg', //修改组织信息 - 'orgAddOrg':'/org/addOrg', //新增组织信息 - - 'roleGetRoles':'/role/getRoles', //查询角色信息 - 'roleAddRole':'/role/addRole', //新增角色信息 - 'roleUpdateRole':'/role/updateRole', //修改角色信息 - 'roleDeleteRole':'/role/deleteRole', //删除角色信息 - 'roleGetRoleMenums':'/role/getRoleMenums', //查询角色授权的菜单按钮 + orgGetOrgTree: "/org/getOrgTree", //获取组织信息 + orgDeleteOrg: "/org/deleteOrg", //删除组织信息 + orgUpdateOrg: "/org/updateOrg", //修改组织信息 + orgAddOrg: "/org/addOrg", //新增组织信息 - 'menuGetMenuTree':'/menu/getMenuTree', //查询菜单树信息 - 'menuAddMenu':'/menu/addMenu', //新增菜单树信息 - 'menuUpdateMenu':'/menu/updateMenu', //修改菜单树信息 - 'menuDeleteMenu':'/menu/deleteMenu', //删除菜单树信息 - 'menuGetCurrentUserMenu':'/menu/getCurrentUserMenu', //获取当前用户的菜单 + roleGetRoles: "/role/getRoles", //查询角色信息 + roleAddRole: "/role/addRole", //新增角色信息 + roleUpdateRole: "/role/updateRole", //修改角色信息 + roleDeleteRole: "/role/deleteRole", //删除角色信息 + roleGetRoleMenums: "/role/getRoleMenums", //查询角色授权的菜单按钮 + + menuGetMenuTree: "/menu/getMenuTree", //查询菜单树信息 + menuAddMenu: "/menu/addMenu", //新增菜单树信息 + menuUpdateMenu: "/menu/updateMenu", //修改菜单树信息 + menuDeleteMenu: "/menu/deleteMenu", //删除菜单树信息 + menuGetCurrentUserMenu: "/menu/getCurrentUserMenu" //获取当前用户的菜单 }; for (let item in nozzle) { nozzle[item] = host + nozzle[item]; } -export default nozzle; \ No newline at end of file +export default nozzle; diff --git a/src/util/interface.js b/src/util/interface.js index 161a999..e0b5312 100644 --- a/src/util/interface.js +++ b/src/util/interface.js @@ -1,23 +1,19 @@ -import CHGTwo from './CHGTwo'; -import project from './project'; -import NF from './NF'; -import SJFX from './SJFX'; -import led from './led'; -import IotPc from './IotPc'; -import group from './group'; -import projectSet from './projectSet'; +import CHGTwo from "./CHGTwo"; +import project from "./project"; +import nfQuery from "./nfQuery"; +// import SJFX from "./SJFX"; +import led from "./led"; +import IotPc from "./IotPc"; +import group from "./group"; +import projectSet from "./projectSet"; // import task from './apiField/task'; // import dataSource from './apiField/dataSource'; let host = "/Api"; let nozzle = { - login: "/sys/login", //登录页 + // login: "/sys/login", //登录页 logout: "/logout", //注销 - sysMenuList: "/sys/menu/list", //获取菜单路由 - userGroupRelaGetGroups: "/userGroupRela/getGroups", //新烽查询系统分组信息查询 - siteGetHeads: "/site/getHeads", //新烽查询系统 根据站点编号查询表头 - dataSelectSitePropertyList: "/site/selectSitePropertyList", //获取站点分配的因子 - dataSiteDataEchat: "/data/siteDataEchat" //获取站点历史图表 + sysMenuList: "/sys/menu/list" //获取菜单路由 }; // for (let items in department) { @@ -28,8 +24,8 @@ } nozzle = Object.assign(nozzle, project); nozzle = Object.assign(nozzle, CHGTwo); -nozzle = Object.assign(nozzle, NF); -nozzle = Object.assign(nozzle, SJFX); +nozzle = Object.assign(nozzle, nfQuery); +// nozzle = Object.assign(nozzle, SJFX); nozzle = Object.assign(nozzle, led); nozzle = Object.assign(nozzle, IotPc); nozzle = Object.assign(nozzle, group); diff --git a/src/util/led.js b/src/util/led.js index 14f8b54..a514ec8 100644 --- a/src/util/led.js +++ b/src/util/led.js @@ -3,27 +3,26 @@ * @exports {Object} * 谢阳 */ -let host = '/led'; +let host = "/led"; let nozzle = { - 'personnelInfo': '/personnel/info', //获取巡检人信息 - 'subtitlesLedQueryLedNo': '/subtitles/led/queryLedNo',//LED屏接口 - 'subtitlesLedQuery': '/subtitles/led/query',//LED屏接口 - 'subtitlesLedSave': '/subtitles/led/save',//LED屏接口 - 'subtitlesLedUpdate': '/subtitles/led/update',//LED屏接口 - 'subtitlesLedDelete': '/subtitles/led/delete',//LED屏接口 - 'subtitlesLedClean': '/subtitles/led/clean',//LED屏接口 - 'subtitlesLedSend': '/subtitles/led/send',//LED屏接口 - 'subtitlesledQuerySiteGroup': '/subtitles/led/querySiteGroup',//LED分组搜索 - 'subtitlesledaddSiteGroup': '/subtitles/led/addSiteGroup',//LED分组新增 - 'subtitlesledUpdateSiteGroup': '/subtitles/led/updateSiteGroup',//LED分组修改 - 'subtitlesleddeleteSiteGroup': '/subtitles/led/deleteSiteGroup',//LED分组删除 - 'subtitlesledQuerySiteMes': '/subtitles/led/querySiteMes',//未分组站点查询 - 'subtitlesledQueryQueryLogs': '/subtitles/led/queryLogs',//查询日志 + personnelInfo: "/personnel/info", //获取巡检人信息 + subtitlesLedQueryLedNo: "/subtitles/led/queryLedNo", //LED屏接口 + subtitlesLedQuery: "/subtitles/led/query", //LED屏接口 + subtitlesLedSave: "/subtitles/led/save", //LED屏接口 + subtitlesLedUpdate: "/subtitles/led/update", //LED屏接口 + subtitlesLedDelete: "/subtitles/led/delete", //LED屏接口 + subtitlesLedClean: "/subtitles/led/clean", //LED屏接口 + subtitlesLedSend: "/subtitles/led/send", //LED屏接口 + subtitlesledQuerySiteGroup: "/subtitles/led/querySiteGroup", //LED分组搜索 + subtitlesledaddSiteGroup: "/subtitles/led/addSiteGroup", //LED分组新增 + subtitlesledUpdateSiteGroup: "/subtitles/led/updateSiteGroup", //LED分组修改 + subtitlesleddeleteSiteGroup: "/subtitles/led/deleteSiteGroup", //LED分组删除 + subtitlesledQuerySiteMes: "/subtitles/led/querySiteMes", //未分组站点查询 + subtitlesledQueryQueryLogs: "/subtitles/led/queryLogs", //查询日志 - - 'subtitlesledQuerySysLogin': '/subtitles/led/sysLogin',//led登录 - 'subtitlesledQueryGetCurrentUserMenu': '/subtitles/led/getCurrentUserMenu',//led权限 + subtitlesledQuerySysLogin: "/subtitles/led/sysLogin", //led登录 + subtitlesledQueryGetCurrentUserMenu: "/subtitles/led/getCurrentUserMenu" //led权限 }; for (let item in nozzle) { diff --git a/src/util/nfQuery.js b/src/util/nfQuery.js new file mode 100644 index 0000000..2288122 --- /dev/null +++ b/src/util/nfQuery.js @@ -0,0 +1,29 @@ +/** + * 项目管理相关接口 + * @exports {Object} + * 陈迁 + */ +let host = "/nfQuery"; + +let nozzle = { + statement: "/statistical/statement", //数据分析//数据总览 + service: "/statistical/service", //数据分析//数据总览 + Conn: "/statistical/Conn", //数据分析/统计报表 + + userGroupRelaGetGroups: "/userGroupRela/getGroups", //新烽查询系统分组信息查询 + siteGetHeads: "/site/getHeads", //新烽查询系统 根据站点编号查询表头 + dataSelectSitePropertyList: "/site/selectSitePropertyList", //新烽查询系统 获取站点分配的因子 + dataSiteDataEchat: "/data/siteDataEchat", // 新烽查询系统 获取站点历史图表 + + groupsSelectSiteNoByGroupsNo: "/groups/selectSiteNoByGroupsNo", //点击分组获取分组下站点 + dataSelectSiteSiteManBySerial: "/data/selectSiteSiteManBySerial", //获取站点的实时数据 + dataSelectSiteSiteManHistoryDataMongoBySerial: + "/data/selectSiteSiteManHistoryDataMongoBySerial", //获取站点的历史数据 + dataReportBatchExportHistoryData: "/dataReport/batchExportHistoryData", //导出站点的历史数据 + surveyDataExporExcelOfSurverData: "/surveyData/exporExcelOfSurverData" //导入历史数据 +}; + +for (let item in nozzle) { + nozzle[item] = host + nozzle[item]; +} +export default nozzle; diff --git a/src/util/NF.js b/src/util/NF.js deleted file mode 100644 index 7e8d8d3..0000000 --- a/src/util/NF.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 项目管理相关接口 - * @exports {Object} - * 陈洪刚 - */ -let host = '/Api'; - -let nozzle = { - 'groupsSelectSiteNoByGroupsNo': '/groups/selectSiteNoByGroupsNo', //点击分组获取分组下站点 - 'dataSelectSiteSiteManBySerial': '/data/selectSiteSiteManBySerial', //获取站点的实时数据 - 'dataSelectSiteSiteManHistoryDataMongoBySerial': '/data/selectSiteSiteManHistoryDataMongoBySerial', //获取站点的历史数据 - 'dataReportBatchExportHistoryData': '/dataReport/batchExportHistoryData', //导出站点的历史数据 - 'surveyDataExporExcelOfSurverData': '/surveyData/exporExcelOfSurverData', //导入历史数据 -}; - -for (let item in nozzle) { - nozzle[item] = host + nozzle[item]; -} -export default nozzle; diff --git a/src/util/SJFX.js b/src/util/SJFX.js deleted file mode 100644 index 1ac1c5e..0000000 --- a/src/util/SJFX.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * 数据分析模块 - * @exports {Object} - * 陈红刚 - */ -let host = '/Api'; - -let nozzle = { - "statement": "/statistical/statement", - "service": "/statistical/service", - "Conn": "/statistical/Conn", -}; - -for (let item in nozzle) { - nozzle[item] = host + nozzle[item]; -} -export default nozzle; diff --git a/src/util/group.js b/src/util/group.js index 83701fd..05e6f68 100644 --- a/src/util/group.js +++ b/src/util/group.js @@ -3,41 +3,41 @@ * @exports {Object} * 陆展 */ -let host = process.env.NODE_ENV === 'development' ? '/groupApi' : ''; +let host = "/groupApi"; let nozzle = { - 'userGroupList':'/usergroup/list', //获取用户组列表信息 - 'userGroupAdd':'/usergroup/add', //添加用户组 - 'addUserToGroup':'/addSysuser', //添加用户到用户组 - 'addGroupToProject':'/usergroup/save', //添加用户组到项目 + userGroupList: "/usergroup/list", //获取用户组列表信息 + userGroupAdd: "/usergroup/add", //添加用户组 + addUserToGroup: "/addSysuser", //添加用户到用户组 + addGroupToProject: "/usergroup/save", //添加用户组到项目 - 'sysLogin':'/sysLogin',//登录 - 'menuGetCurrentUserMenu':'/menu/getCurrentUserMenu',//获取菜单以及按钮权限 - "orgGetCurrentOrgTree":"/org/getCurrentOrgTree",//获取当前用户可管理的组织 + sysLogin: "/sysLogin", //登录 + menuGetCurrentUserMenu: "/menu/getCurrentUserMenu", //获取菜单以及按钮权限 + orgGetCurrentOrgTree: "/org/getCurrentOrgTree", //获取当前用户可管理的组织 - 'selectSysuser':'/selectSysuser', //获取用户信息 - 'deleteSysuser':'/deleteSysuser', //删除用户信息 - 'updateSysuser':'/updateSysuser', //修改用户信息 + selectSysuser: "/selectSysuser", //获取用户信息 + deleteSysuser: "/deleteSysuser", //删除用户信息 + updateSysuser: "/updateSysuser", //修改用户信息 - 'orgGetOrgTree':'/org/getOrgTree', //获取组织信息 - 'orgDeleteOrg':'/org/deleteOrg', //删除组织信息 - 'orgUpdateOrg':'/org/updateOrg', //修改组织信息 - 'orgAddOrg':'/org/addOrg', //新增组织信息 - - 'roleGetRoles':'/role/getRoles', //查询角色信息 - 'roleAddRole':'/role/addRole', //新增角色信息 - 'roleUpdateRole':'/role/updateRole', //修改角色信息 - 'roleDeleteRole':'/role/deleteRole', //删除角色信息 - 'roleGetRoleMenums':'/role/getRoleMenums', //查询角色授权的菜单按钮 + orgGetOrgTree: "/org/getOrgTree", //获取组织信息 + orgDeleteOrg: "/org/deleteOrg", //删除组织信息 + orgUpdateOrg: "/org/updateOrg", //修改组织信息 + orgAddOrg: "/org/addOrg", //新增组织信息 - 'menuGetMenuTree':'/menu/getMenuTree', //查询菜单树信息 - 'menuAddMenu':'/menu/addMenu', //新增菜单树信息 - 'menuUpdateMenu':'/menu/updateMenu', //修改菜单树信息 - 'menuDeleteMenu':'/menu/deleteMenu', //删除菜单树信息 - 'menuGetCurrentUserMenu':'/menu/getCurrentUserMenu', //获取当前用户的菜单 + roleGetRoles: "/role/getRoles", //查询角色信息 + roleAddRole: "/role/addRole", //新增角色信息 + roleUpdateRole: "/role/updateRole", //修改角色信息 + roleDeleteRole: "/role/deleteRole", //删除角色信息 + roleGetRoleMenums: "/role/getRoleMenums", //查询角色授权的菜单按钮 + + menuGetMenuTree: "/menu/getMenuTree", //查询菜单树信息 + menuAddMenu: "/menu/addMenu", //新增菜单树信息 + menuUpdateMenu: "/menu/updateMenu", //修改菜单树信息 + menuDeleteMenu: "/menu/deleteMenu", //删除菜单树信息 + menuGetCurrentUserMenu: "/menu/getCurrentUserMenu" //获取当前用户的菜单 }; for (let item in nozzle) { nozzle[item] = host + nozzle[item]; } -export default nozzle; \ No newline at end of file +export default nozzle; diff --git a/src/util/interface.js b/src/util/interface.js index 161a999..e0b5312 100644 --- a/src/util/interface.js +++ b/src/util/interface.js @@ -1,23 +1,19 @@ -import CHGTwo from './CHGTwo'; -import project from './project'; -import NF from './NF'; -import SJFX from './SJFX'; -import led from './led'; -import IotPc from './IotPc'; -import group from './group'; -import projectSet from './projectSet'; +import CHGTwo from "./CHGTwo"; +import project from "./project"; +import nfQuery from "./nfQuery"; +// import SJFX from "./SJFX"; +import led from "./led"; +import IotPc from "./IotPc"; +import group from "./group"; +import projectSet from "./projectSet"; // import task from './apiField/task'; // import dataSource from './apiField/dataSource'; let host = "/Api"; let nozzle = { - login: "/sys/login", //登录页 + // login: "/sys/login", //登录页 logout: "/logout", //注销 - sysMenuList: "/sys/menu/list", //获取菜单路由 - userGroupRelaGetGroups: "/userGroupRela/getGroups", //新烽查询系统分组信息查询 - siteGetHeads: "/site/getHeads", //新烽查询系统 根据站点编号查询表头 - dataSelectSitePropertyList: "/site/selectSitePropertyList", //获取站点分配的因子 - dataSiteDataEchat: "/data/siteDataEchat" //获取站点历史图表 + sysMenuList: "/sys/menu/list" //获取菜单路由 }; // for (let items in department) { @@ -28,8 +24,8 @@ } nozzle = Object.assign(nozzle, project); nozzle = Object.assign(nozzle, CHGTwo); -nozzle = Object.assign(nozzle, NF); -nozzle = Object.assign(nozzle, SJFX); +nozzle = Object.assign(nozzle, nfQuery); +// nozzle = Object.assign(nozzle, SJFX); nozzle = Object.assign(nozzle, led); nozzle = Object.assign(nozzle, IotPc); nozzle = Object.assign(nozzle, group); diff --git a/src/util/led.js b/src/util/led.js index 14f8b54..a514ec8 100644 --- a/src/util/led.js +++ b/src/util/led.js @@ -3,27 +3,26 @@ * @exports {Object} * 谢阳 */ -let host = '/led'; +let host = "/led"; let nozzle = { - 'personnelInfo': '/personnel/info', //获取巡检人信息 - 'subtitlesLedQueryLedNo': '/subtitles/led/queryLedNo',//LED屏接口 - 'subtitlesLedQuery': '/subtitles/led/query',//LED屏接口 - 'subtitlesLedSave': '/subtitles/led/save',//LED屏接口 - 'subtitlesLedUpdate': '/subtitles/led/update',//LED屏接口 - 'subtitlesLedDelete': '/subtitles/led/delete',//LED屏接口 - 'subtitlesLedClean': '/subtitles/led/clean',//LED屏接口 - 'subtitlesLedSend': '/subtitles/led/send',//LED屏接口 - 'subtitlesledQuerySiteGroup': '/subtitles/led/querySiteGroup',//LED分组搜索 - 'subtitlesledaddSiteGroup': '/subtitles/led/addSiteGroup',//LED分组新增 - 'subtitlesledUpdateSiteGroup': '/subtitles/led/updateSiteGroup',//LED分组修改 - 'subtitlesleddeleteSiteGroup': '/subtitles/led/deleteSiteGroup',//LED分组删除 - 'subtitlesledQuerySiteMes': '/subtitles/led/querySiteMes',//未分组站点查询 - 'subtitlesledQueryQueryLogs': '/subtitles/led/queryLogs',//查询日志 + personnelInfo: "/personnel/info", //获取巡检人信息 + subtitlesLedQueryLedNo: "/subtitles/led/queryLedNo", //LED屏接口 + subtitlesLedQuery: "/subtitles/led/query", //LED屏接口 + subtitlesLedSave: "/subtitles/led/save", //LED屏接口 + subtitlesLedUpdate: "/subtitles/led/update", //LED屏接口 + subtitlesLedDelete: "/subtitles/led/delete", //LED屏接口 + subtitlesLedClean: "/subtitles/led/clean", //LED屏接口 + subtitlesLedSend: "/subtitles/led/send", //LED屏接口 + subtitlesledQuerySiteGroup: "/subtitles/led/querySiteGroup", //LED分组搜索 + subtitlesledaddSiteGroup: "/subtitles/led/addSiteGroup", //LED分组新增 + subtitlesledUpdateSiteGroup: "/subtitles/led/updateSiteGroup", //LED分组修改 + subtitlesleddeleteSiteGroup: "/subtitles/led/deleteSiteGroup", //LED分组删除 + subtitlesledQuerySiteMes: "/subtitles/led/querySiteMes", //未分组站点查询 + subtitlesledQueryQueryLogs: "/subtitles/led/queryLogs", //查询日志 - - 'subtitlesledQuerySysLogin': '/subtitles/led/sysLogin',//led登录 - 'subtitlesledQueryGetCurrentUserMenu': '/subtitles/led/getCurrentUserMenu',//led权限 + subtitlesledQuerySysLogin: "/subtitles/led/sysLogin", //led登录 + subtitlesledQueryGetCurrentUserMenu: "/subtitles/led/getCurrentUserMenu" //led权限 }; for (let item in nozzle) { diff --git a/src/util/nfQuery.js b/src/util/nfQuery.js new file mode 100644 index 0000000..2288122 --- /dev/null +++ b/src/util/nfQuery.js @@ -0,0 +1,29 @@ +/** + * 项目管理相关接口 + * @exports {Object} + * 陈迁 + */ +let host = "/nfQuery"; + +let nozzle = { + statement: "/statistical/statement", //数据分析//数据总览 + service: "/statistical/service", //数据分析//数据总览 + Conn: "/statistical/Conn", //数据分析/统计报表 + + userGroupRelaGetGroups: "/userGroupRela/getGroups", //新烽查询系统分组信息查询 + siteGetHeads: "/site/getHeads", //新烽查询系统 根据站点编号查询表头 + dataSelectSitePropertyList: "/site/selectSitePropertyList", //新烽查询系统 获取站点分配的因子 + dataSiteDataEchat: "/data/siteDataEchat", // 新烽查询系统 获取站点历史图表 + + groupsSelectSiteNoByGroupsNo: "/groups/selectSiteNoByGroupsNo", //点击分组获取分组下站点 + dataSelectSiteSiteManBySerial: "/data/selectSiteSiteManBySerial", //获取站点的实时数据 + dataSelectSiteSiteManHistoryDataMongoBySerial: + "/data/selectSiteSiteManHistoryDataMongoBySerial", //获取站点的历史数据 + dataReportBatchExportHistoryData: "/dataReport/batchExportHistoryData", //导出站点的历史数据 + surveyDataExporExcelOfSurverData: "/surveyData/exporExcelOfSurverData" //导入历史数据 +}; + +for (let item in nozzle) { + nozzle[item] = host + nozzle[item]; +} +export default nozzle; diff --git a/src/util/project.js b/src/util/project.js index 1829fda..f939066 100644 --- a/src/util/project.js +++ b/src/util/project.js @@ -11,7 +11,7 @@ sysPlatformGetAllSiteCount: "/sys/platform/getAllSiteCount", //站点状况预览图-----获取所有平台站点数目统计 platEquipmentGetEquipStatistics: "/plat/equipment/getEquipStatistics", //站点状况预览图-----获取平台拥有设备类型、数量统计 sysPlatformGetSiteStateStatistics: "/sys/platform/getSiteStateStatistics", //站点状况预览图-----平台近七日站点状态统计 - warnLogGetWarnLogOfPlatform: "/warn/log/getWarnLogOfPlatform", //站点状况预览图-----查询该平台各站点各因子最新的报警数据 + warnLogGetWarnLogOfPlatform: "/warn/log/getWarnLogOfPlatform", //站点状况预览图-----查询该平台各站点报警数据 listStationBase: "/sys/site/listStationBase", //所有站点 getTempData: "/sys/site/getTempData", //单个站点 listStationBase: "/sys/site/listStationBase", //所有站点无分页 diff --git a/src/util/NF.js b/src/util/NF.js deleted file mode 100644 index 7e8d8d3..0000000 --- a/src/util/NF.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 项目管理相关接口 - * @exports {Object} - * 陈洪刚 - */ -let host = '/Api'; - -let nozzle = { - 'groupsSelectSiteNoByGroupsNo': '/groups/selectSiteNoByGroupsNo', //点击分组获取分组下站点 - 'dataSelectSiteSiteManBySerial': '/data/selectSiteSiteManBySerial', //获取站点的实时数据 - 'dataSelectSiteSiteManHistoryDataMongoBySerial': '/data/selectSiteSiteManHistoryDataMongoBySerial', //获取站点的历史数据 - 'dataReportBatchExportHistoryData': '/dataReport/batchExportHistoryData', //导出站点的历史数据 - 'surveyDataExporExcelOfSurverData': '/surveyData/exporExcelOfSurverData', //导入历史数据 -}; - -for (let item in nozzle) { - nozzle[item] = host + nozzle[item]; -} -export default nozzle; diff --git a/src/util/SJFX.js b/src/util/SJFX.js deleted file mode 100644 index 1ac1c5e..0000000 --- a/src/util/SJFX.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * 数据分析模块 - * @exports {Object} - * 陈红刚 - */ -let host = '/Api'; - -let nozzle = { - "statement": "/statistical/statement", - "service": "/statistical/service", - "Conn": "/statistical/Conn", -}; - -for (let item in nozzle) { - nozzle[item] = host + nozzle[item]; -} -export default nozzle; diff --git a/src/util/group.js b/src/util/group.js index 83701fd..05e6f68 100644 --- a/src/util/group.js +++ b/src/util/group.js @@ -3,41 +3,41 @@ * @exports {Object} * 陆展 */ -let host = process.env.NODE_ENV === 'development' ? '/groupApi' : ''; +let host = "/groupApi"; let nozzle = { - 'userGroupList':'/usergroup/list', //获取用户组列表信息 - 'userGroupAdd':'/usergroup/add', //添加用户组 - 'addUserToGroup':'/addSysuser', //添加用户到用户组 - 'addGroupToProject':'/usergroup/save', //添加用户组到项目 + userGroupList: "/usergroup/list", //获取用户组列表信息 + userGroupAdd: "/usergroup/add", //添加用户组 + addUserToGroup: "/addSysuser", //添加用户到用户组 + addGroupToProject: "/usergroup/save", //添加用户组到项目 - 'sysLogin':'/sysLogin',//登录 - 'menuGetCurrentUserMenu':'/menu/getCurrentUserMenu',//获取菜单以及按钮权限 - "orgGetCurrentOrgTree":"/org/getCurrentOrgTree",//获取当前用户可管理的组织 + sysLogin: "/sysLogin", //登录 + menuGetCurrentUserMenu: "/menu/getCurrentUserMenu", //获取菜单以及按钮权限 + orgGetCurrentOrgTree: "/org/getCurrentOrgTree", //获取当前用户可管理的组织 - 'selectSysuser':'/selectSysuser', //获取用户信息 - 'deleteSysuser':'/deleteSysuser', //删除用户信息 - 'updateSysuser':'/updateSysuser', //修改用户信息 + selectSysuser: "/selectSysuser", //获取用户信息 + deleteSysuser: "/deleteSysuser", //删除用户信息 + updateSysuser: "/updateSysuser", //修改用户信息 - 'orgGetOrgTree':'/org/getOrgTree', //获取组织信息 - 'orgDeleteOrg':'/org/deleteOrg', //删除组织信息 - 'orgUpdateOrg':'/org/updateOrg', //修改组织信息 - 'orgAddOrg':'/org/addOrg', //新增组织信息 - - 'roleGetRoles':'/role/getRoles', //查询角色信息 - 'roleAddRole':'/role/addRole', //新增角色信息 - 'roleUpdateRole':'/role/updateRole', //修改角色信息 - 'roleDeleteRole':'/role/deleteRole', //删除角色信息 - 'roleGetRoleMenums':'/role/getRoleMenums', //查询角色授权的菜单按钮 + orgGetOrgTree: "/org/getOrgTree", //获取组织信息 + orgDeleteOrg: "/org/deleteOrg", //删除组织信息 + orgUpdateOrg: "/org/updateOrg", //修改组织信息 + orgAddOrg: "/org/addOrg", //新增组织信息 - 'menuGetMenuTree':'/menu/getMenuTree', //查询菜单树信息 - 'menuAddMenu':'/menu/addMenu', //新增菜单树信息 - 'menuUpdateMenu':'/menu/updateMenu', //修改菜单树信息 - 'menuDeleteMenu':'/menu/deleteMenu', //删除菜单树信息 - 'menuGetCurrentUserMenu':'/menu/getCurrentUserMenu', //获取当前用户的菜单 + roleGetRoles: "/role/getRoles", //查询角色信息 + roleAddRole: "/role/addRole", //新增角色信息 + roleUpdateRole: "/role/updateRole", //修改角色信息 + roleDeleteRole: "/role/deleteRole", //删除角色信息 + roleGetRoleMenums: "/role/getRoleMenums", //查询角色授权的菜单按钮 + + menuGetMenuTree: "/menu/getMenuTree", //查询菜单树信息 + menuAddMenu: "/menu/addMenu", //新增菜单树信息 + menuUpdateMenu: "/menu/updateMenu", //修改菜单树信息 + menuDeleteMenu: "/menu/deleteMenu", //删除菜单树信息 + menuGetCurrentUserMenu: "/menu/getCurrentUserMenu" //获取当前用户的菜单 }; for (let item in nozzle) { nozzle[item] = host + nozzle[item]; } -export default nozzle; \ No newline at end of file +export default nozzle; diff --git a/src/util/interface.js b/src/util/interface.js index 161a999..e0b5312 100644 --- a/src/util/interface.js +++ b/src/util/interface.js @@ -1,23 +1,19 @@ -import CHGTwo from './CHGTwo'; -import project from './project'; -import NF from './NF'; -import SJFX from './SJFX'; -import led from './led'; -import IotPc from './IotPc'; -import group from './group'; -import projectSet from './projectSet'; +import CHGTwo from "./CHGTwo"; +import project from "./project"; +import nfQuery from "./nfQuery"; +// import SJFX from "./SJFX"; +import led from "./led"; +import IotPc from "./IotPc"; +import group from "./group"; +import projectSet from "./projectSet"; // import task from './apiField/task'; // import dataSource from './apiField/dataSource'; let host = "/Api"; let nozzle = { - login: "/sys/login", //登录页 + // login: "/sys/login", //登录页 logout: "/logout", //注销 - sysMenuList: "/sys/menu/list", //获取菜单路由 - userGroupRelaGetGroups: "/userGroupRela/getGroups", //新烽查询系统分组信息查询 - siteGetHeads: "/site/getHeads", //新烽查询系统 根据站点编号查询表头 - dataSelectSitePropertyList: "/site/selectSitePropertyList", //获取站点分配的因子 - dataSiteDataEchat: "/data/siteDataEchat" //获取站点历史图表 + sysMenuList: "/sys/menu/list" //获取菜单路由 }; // for (let items in department) { @@ -28,8 +24,8 @@ } nozzle = Object.assign(nozzle, project); nozzle = Object.assign(nozzle, CHGTwo); -nozzle = Object.assign(nozzle, NF); -nozzle = Object.assign(nozzle, SJFX); +nozzle = Object.assign(nozzle, nfQuery); +// nozzle = Object.assign(nozzle, SJFX); nozzle = Object.assign(nozzle, led); nozzle = Object.assign(nozzle, IotPc); nozzle = Object.assign(nozzle, group); diff --git a/src/util/led.js b/src/util/led.js index 14f8b54..a514ec8 100644 --- a/src/util/led.js +++ b/src/util/led.js @@ -3,27 +3,26 @@ * @exports {Object} * 谢阳 */ -let host = '/led'; +let host = "/led"; let nozzle = { - 'personnelInfo': '/personnel/info', //获取巡检人信息 - 'subtitlesLedQueryLedNo': '/subtitles/led/queryLedNo',//LED屏接口 - 'subtitlesLedQuery': '/subtitles/led/query',//LED屏接口 - 'subtitlesLedSave': '/subtitles/led/save',//LED屏接口 - 'subtitlesLedUpdate': '/subtitles/led/update',//LED屏接口 - 'subtitlesLedDelete': '/subtitles/led/delete',//LED屏接口 - 'subtitlesLedClean': '/subtitles/led/clean',//LED屏接口 - 'subtitlesLedSend': '/subtitles/led/send',//LED屏接口 - 'subtitlesledQuerySiteGroup': '/subtitles/led/querySiteGroup',//LED分组搜索 - 'subtitlesledaddSiteGroup': '/subtitles/led/addSiteGroup',//LED分组新增 - 'subtitlesledUpdateSiteGroup': '/subtitles/led/updateSiteGroup',//LED分组修改 - 'subtitlesleddeleteSiteGroup': '/subtitles/led/deleteSiteGroup',//LED分组删除 - 'subtitlesledQuerySiteMes': '/subtitles/led/querySiteMes',//未分组站点查询 - 'subtitlesledQueryQueryLogs': '/subtitles/led/queryLogs',//查询日志 + personnelInfo: "/personnel/info", //获取巡检人信息 + subtitlesLedQueryLedNo: "/subtitles/led/queryLedNo", //LED屏接口 + subtitlesLedQuery: "/subtitles/led/query", //LED屏接口 + subtitlesLedSave: "/subtitles/led/save", //LED屏接口 + subtitlesLedUpdate: "/subtitles/led/update", //LED屏接口 + subtitlesLedDelete: "/subtitles/led/delete", //LED屏接口 + subtitlesLedClean: "/subtitles/led/clean", //LED屏接口 + subtitlesLedSend: "/subtitles/led/send", //LED屏接口 + subtitlesledQuerySiteGroup: "/subtitles/led/querySiteGroup", //LED分组搜索 + subtitlesledaddSiteGroup: "/subtitles/led/addSiteGroup", //LED分组新增 + subtitlesledUpdateSiteGroup: "/subtitles/led/updateSiteGroup", //LED分组修改 + subtitlesleddeleteSiteGroup: "/subtitles/led/deleteSiteGroup", //LED分组删除 + subtitlesledQuerySiteMes: "/subtitles/led/querySiteMes", //未分组站点查询 + subtitlesledQueryQueryLogs: "/subtitles/led/queryLogs", //查询日志 - - 'subtitlesledQuerySysLogin': '/subtitles/led/sysLogin',//led登录 - 'subtitlesledQueryGetCurrentUserMenu': '/subtitles/led/getCurrentUserMenu',//led权限 + subtitlesledQuerySysLogin: "/subtitles/led/sysLogin", //led登录 + subtitlesledQueryGetCurrentUserMenu: "/subtitles/led/getCurrentUserMenu" //led权限 }; for (let item in nozzle) { diff --git a/src/util/nfQuery.js b/src/util/nfQuery.js new file mode 100644 index 0000000..2288122 --- /dev/null +++ b/src/util/nfQuery.js @@ -0,0 +1,29 @@ +/** + * 项目管理相关接口 + * @exports {Object} + * 陈迁 + */ +let host = "/nfQuery"; + +let nozzle = { + statement: "/statistical/statement", //数据分析//数据总览 + service: "/statistical/service", //数据分析//数据总览 + Conn: "/statistical/Conn", //数据分析/统计报表 + + userGroupRelaGetGroups: "/userGroupRela/getGroups", //新烽查询系统分组信息查询 + siteGetHeads: "/site/getHeads", //新烽查询系统 根据站点编号查询表头 + dataSelectSitePropertyList: "/site/selectSitePropertyList", //新烽查询系统 获取站点分配的因子 + dataSiteDataEchat: "/data/siteDataEchat", // 新烽查询系统 获取站点历史图表 + + groupsSelectSiteNoByGroupsNo: "/groups/selectSiteNoByGroupsNo", //点击分组获取分组下站点 + dataSelectSiteSiteManBySerial: "/data/selectSiteSiteManBySerial", //获取站点的实时数据 + dataSelectSiteSiteManHistoryDataMongoBySerial: + "/data/selectSiteSiteManHistoryDataMongoBySerial", //获取站点的历史数据 + dataReportBatchExportHistoryData: "/dataReport/batchExportHistoryData", //导出站点的历史数据 + surveyDataExporExcelOfSurverData: "/surveyData/exporExcelOfSurverData" //导入历史数据 +}; + +for (let item in nozzle) { + nozzle[item] = host + nozzle[item]; +} +export default nozzle; diff --git a/src/util/project.js b/src/util/project.js index 1829fda..f939066 100644 --- a/src/util/project.js +++ b/src/util/project.js @@ -11,7 +11,7 @@ sysPlatformGetAllSiteCount: "/sys/platform/getAllSiteCount", //站点状况预览图-----获取所有平台站点数目统计 platEquipmentGetEquipStatistics: "/plat/equipment/getEquipStatistics", //站点状况预览图-----获取平台拥有设备类型、数量统计 sysPlatformGetSiteStateStatistics: "/sys/platform/getSiteStateStatistics", //站点状况预览图-----平台近七日站点状态统计 - warnLogGetWarnLogOfPlatform: "/warn/log/getWarnLogOfPlatform", //站点状况预览图-----查询该平台各站点各因子最新的报警数据 + warnLogGetWarnLogOfPlatform: "/warn/log/getWarnLogOfPlatform", //站点状况预览图-----查询该平台各站点报警数据 listStationBase: "/sys/site/listStationBase", //所有站点 getTempData: "/sys/site/getTempData", //单个站点 listStationBase: "/sys/site/listStationBase", //所有站点无分页 diff --git a/src/util/projectSet.js b/src/util/projectSet.js index a190c26..8236e9c 100644 --- a/src/util/projectSet.js +++ b/src/util/projectSet.js @@ -3,7 +3,7 @@ * @exports {Object} * 陆展 */ -let host = process.env.NODE_ENV === "development" ? "/projectApi" : ""; +let host = "/projectApi"; let nozzle = { saveOrupdate: "/sys/stationbase/saveOrupdate", //添加和保存站点弹框的信息