systemConf.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. var __systemConf = {
  2. //路由根路径
  3. baseRouteUrl: 'adm-frontend',
  4. //基础数据根域名,不到万不得已不要使用这个,其可以灵活结合服务路径去使用
  5. baseServiceUrl: 'http://develop.ysbdtp.com',
  6. //adm-middleware服务,支持绝大部分的adm功能
  7. middlewareServiceUrl: 'http://develop.ysbdtp.com/adm-middleware',
  8. //adm-diagram服务,支持系统图相关功能
  9. diagramServiceUrl: 'http://develop.ysbdtp.com/adm-diagram',
  10. //adm-server服务,支持登录等功能
  11. admServiceUrl: 'http://develop.ysbdtp.com/adm-server',
  12. //文件服务域名
  13. fileServiceUrl: 'http://develop.ysbdtp.com/dmp-file',
  14. // 地图key
  15. mapKey: 'd42beb96e0e4fb0d49482975abeae1b7',
  16. //登录相关配置
  17. loginConfig: {
  18. loginDeviceType: 1, //登录设备类型 1 :pc 2 :Android 3 :ios 4 :其他
  19. loginType: 2 //登录方式 1 :用户名密码方式(默认是ldap用户) 2 :使用手机号登录 3 :钉钉扫码登录
  20. },
  21. //系统图的默认配置
  22. systemGraph: {
  23. //配电类
  24. peiDian: {
  25. text: {
  26. size: 16,
  27. color: '#646C73',
  28. weight: 600,
  29. backGround: '#FFFFFF'
  30. },
  31. line:{
  32. width: 2,
  33. color: '#0091ff'
  34. }
  35. }
  36. },
  37. //导航菜单
  38. menus: [{
  39. "id": "ready",
  40. "name": "信息录入工具",
  41. "orders": 1,
  42. children: [{
  43. "id": "build_floor",
  44. "name": "建筑楼层管理",
  45. "orders": 2,
  46. "path": "/ready/buildfloor",
  47. "type": "menu",
  48. "icon": "icon-jianzhu"
  49. },{
  50. "id": "equipment",
  51. "name": "设备台账",
  52. "orders": 3,
  53. "path": "/ledger/facility"
  54. },
  55. {
  56. "id": "system",
  57. "name": "系统台账",
  58. "orders": 4,
  59. "path": "/ledger/list"
  60. },{
  61. "id": "overview",
  62. "name": "全部关系总览",
  63. "orders": 5,
  64. "path": "/relation/overview",
  65. "icon": "icon-jiqixuexi-"
  66. }
  67. ,{
  68. "id": "projectmanage",
  69. "name": "项目信息管理",
  70. "orders": 6,
  71. "path": "/project/manage",
  72. "icon": "icon-jiqixuexi-"
  73. }
  74. ]
  75. }, {
  76. "id": "xianchangjiaofugongjv",
  77. "name": "现场交付工具",
  78. "orders": 6,
  79. children: [{
  80. "id": "CADtuzhiguanli",
  81. "name": "CAD核查图纸管理",
  82. "orders": 7,
  83. "path": "/deliveryTools/cadDrawingManage",
  84. "icon": "icon-topology"
  85. }]
  86. }, {
  87. "id": "draw",
  88. "name": "绘图工具",
  89. "orders": 8,
  90. children: [{
  91. "id": "xitongtubianji",
  92. "name": "系统图编辑工具",
  93. "orders": 9,
  94. "path": "/systemGraph",
  95. "icon": "icon-topology"
  96. }]
  97. }]
  98. };
  99. if (typeof window != 'undefined') {
  100. window.__systemConf = __systemConf;
  101. }
  102. if (typeof module != 'undefined') {
  103. module.exports = __systemConf;
  104. }