systemConf.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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": "build_floor",
  46. "name": "建筑楼层管理",
  47. "orders": 2,
  48. "path": "/ready/buildfloor",
  49. "type": "menu",
  50. "icon": "icon-jianzhu"
  51. },{
  52. "id": "equipment",
  53. "name": "设备台账",
  54. "orders": 3,
  55. "path": "/ledger/facility"
  56. },{
  57. "id": "businessspaceledger",
  58. "name": "业务空间台账",
  59. "orders": 3,
  60. "path": "/ledger/spacelist"
  61. },
  62. {
  63. "id": "system",
  64. "name": "系统台账",
  65. "orders": 4,
  66. "path": "/ledger/list"
  67. },{
  68. "id": "overview",
  69. "name": "全部关系总览",
  70. "orders": 5,
  71. "path": "/relation/overview",
  72. "icon": "icon-jiqixuexi-"
  73. }
  74. ,{
  75. "id": "projectmanage",
  76. "name": "项目信息管理",
  77. "orders": 6,
  78. "path": "/project/manage",
  79. "icon": "icon-jiqixuexi-"
  80. }
  81. ]
  82. }, {
  83. "id": "xianchangjiaofugongjv",
  84. "name": "现场交付工具",
  85. "orders": 6,
  86. children: [{
  87. "id": "CADtuzhiguanli",
  88. "name": "CAD核查图纸管理",
  89. "orders": 7,
  90. "path": "/deliveryTools/cadDrawingManage",
  91. "icon": "icon-topology"
  92. }]
  93. }, {
  94. "id": "draw",
  95. "name": "绘图工具",
  96. "orders": 8,
  97. children: [{
  98. "id": "xitongtubianji",
  99. "name": "系统图编辑工具",
  100. "orders": 9,
  101. "path": "/systemGraph",
  102. "icon": "icon-topology"
  103. }]
  104. }]
  105. };
  106. if (typeof window != 'undefined') {
  107. window.__systemConf = __systemConf;
  108. }
  109. if (typeof module != 'undefined') {
  110. module.exports = __systemConf;
  111. }