systemConf.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. //img-service域名
  15. imgServiceUrl: 'http://develop.ysbdtp.com/image-service',
  16. // 地图key
  17. mapKey: 'd42beb96e0e4fb0d49482975abeae1b7',
  18. //登录相关配置
  19. loginConfig: {
  20. loginDeviceType: 1, //登录设备类型 1 :pc 2 :Android 3 :ios 4 :其他
  21. loginType: 2 //登录方式 1 :用户名密码方式(默认是ldap用户) 2 :使用手机号登录 3 :钉钉扫码登录
  22. },
  23. //系统图的默认配置
  24. systemGraph: {
  25. //配电类
  26. peiDian: {
  27. text: {
  28. size: 16,
  29. color: '#646C73',
  30. weight: 600,
  31. backGround: '#FFFFFF'
  32. },
  33. line:{
  34. width: 2,
  35. color: '#0091ff'
  36. }
  37. }
  38. },
  39. //导航菜单
  40. menus: [{
  41. "id": "ready",
  42. "name": "信息录入工具",
  43. "orders": 1,
  44. children: [{
  45. "id": "projectmanage",
  46. "name": "项目信息",
  47. "orders": 6,
  48. "path": "/project/manage",
  49. "icon": "project"
  50. }, {
  51. "id": "build_floor",
  52. "name": "建筑楼层",
  53. "orders": 2,
  54. "path": "/ready/buildfloor",
  55. "type": "menu",
  56. "icon": "build"
  57. },{
  58. "id": "businessspaceledger",
  59. "name": "业务空间",
  60. "orders": 3,
  61. "path": "/ledger/spacelist",
  62. "icon": "businessspace"
  63. },{
  64. "id": "equipment",
  65. "name": "设备",
  66. "orders": 3,
  67. "path": "/ledger/facility",
  68. "icon": "equip"
  69. },
  70. {
  71. "id": "system",
  72. "name": "系统",
  73. "orders": 4,
  74. "path": "/ledger/list",
  75. "icon": "systemor"
  76. },{
  77. "id": "overview",
  78. "name": "关系",
  79. "orders": 5,
  80. "path": "/relation/overview",
  81. "icon": "relationview"
  82. }
  83. ]
  84. }, {
  85. "id": "xianchangjiaofugongjv",
  86. "name": "现场交付工具",
  87. "orders": 6,
  88. children: [{
  89. "id": "CADtuzhiguanli",
  90. "name": "CAD图纸核查",
  91. "orders": 7,
  92. "path": "/deliveryTools/cadDrawingManage",
  93. "icon": "cadimg"
  94. }]
  95. }, {
  96. "id": "draw",
  97. "name": "绘图工具",
  98. "orders": 8,
  99. children: [{
  100. "id": "xitongtubianji",
  101. "name": "系统图",
  102. "orders": 9,
  103. "path": "/systemGraph",
  104. "icon": "systemgraph"
  105. }]
  106. }]
  107. };
  108. if (typeof window != 'undefined') {
  109. window.__systemConf = __systemConf;
  110. }
  111. if (typeof module != 'undefined') {
  112. module.exports = __systemConf;
  113. }