systemConf.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. padding: 4
  33. },
  34. line:{
  35. width: 2,
  36. color: '#0091ff'
  37. }
  38. }
  39. },
  40. //导航菜单
  41. menus: [{
  42. "id": "ready",
  43. "name": "信息录入工具",
  44. "orders": 1,
  45. children: [{
  46. "id": "projectmanage",
  47. "name": "项目信息",
  48. "orders": 6,
  49. "path": "/project/manage",
  50. "icon": "project"
  51. }, {
  52. "id": "build_floor",
  53. "name": "建筑楼层",
  54. "orders": 2,
  55. "path": "/ready/buildfloor",
  56. "type": "menu",
  57. "icon": "build"
  58. },{
  59. "id": "businessspaceledger",
  60. "name": "业务空间",
  61. "orders": 3,
  62. "path": "/ledger/spacelist",
  63. "icon": "businessspace"
  64. },{
  65. "id": "equipment",
  66. "name": "设备",
  67. "orders": 3,
  68. "path": "/ledger/facility",
  69. "icon": "equip"
  70. },
  71. {
  72. "id": "system",
  73. "name": "系统",
  74. "orders": 4,
  75. "path": "/ledger/list",
  76. "icon": "systemor"
  77. },{
  78. "id": "overview",
  79. "name": "关系",
  80. "orders": 5,
  81. "path": "/relation/overview",
  82. "icon": "relationview"
  83. }
  84. ]
  85. }, {
  86. "id": "xianchangjiaofugongjv",
  87. "name": "现场交付工具",
  88. "orders": 6,
  89. children: [{
  90. "id": "CADtuzhiguanli",
  91. "name": "CAD图纸核查",
  92. "orders": 7,
  93. "path": "/deliveryTools/cadDrawingManage",
  94. "icon": "cadimg"
  95. }]
  96. }, {
  97. "id": "draw",
  98. "name": "绘图工具",
  99. "orders": 8,
  100. children: [{
  101. "id": "xitongtubianji",
  102. "name": "系统图",
  103. "orders": 9,
  104. "path": "/systemGraph",
  105. "icon": "systemgraph"
  106. }]
  107. }]
  108. };
  109. if (typeof window != 'undefined') {
  110. window.__systemConf = __systemConf;
  111. }
  112. if (typeof module != 'undefined') {
  113. module.exports = __systemConf;
  114. }