config.js 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. // 是否使用本地API接口
  2. export const localAPI = false;
  3. // 是否使用线上API接口
  4. export const publicAPI = false;
  5. // 服务域名地址 weboa / zhongsteel
  6. export const ctx = 'zhongsteel.ytg';
  7. // ajax域名地址
  8. // //113.240.231.242:8084
  9. // //localhost:8803 192.168.211.148 本机(开发版启用代理) http://192.168.1.152:8803 127.0.0.1:8080 192.168.211.123:8803
  10. // //192.168.211.131:8080 易鑫
  11. // //192.168.1.180:8005 赵钱的接口连外网不能访问,要连内网
  12. // 172.16.4.170 172.16.4.170 监控地址
  13. // 本地配置 192.168.1.165:8803 / 127.0.0.1:8080
  14. // const domain = 'http://127.0.0.1:8080'; // /zhongsteel.makets/service
  15. // const domain2 = 'http://127.0.0.1:8080'; // S2 /XG/service
  16. // const domain0 = 'http://127.0.0.1:8080'; // S0生产采集监控地址
  17. // const domainFile = 'http://127.0.0.1:8080'; // 文件地址
  18. // // 公司服务器配置 192.168.1.234:8080
  19. // const domain = 'http://192.168.0.120:8080'; // /zhongsteel.makets/service
  20. // const domain2 = 'http://113.240.231.242:8084'; // S2 /XG/service
  21. // const domain0 = 'http://113.240.231.242:8084'; // S0生产采集监控地址
  22. // const domainFile = 'http://113.240.231.242:8084'; // 文件地址
  23. // http://192.168.20.105:8080
  24. const domain = 'http://172.16.0.76:8001'; // /zhongsteel.makets/service
  25. const domain2 = 'http://172.16.0.76:8001'; // S2 /XG/service
  26. const domain0 = 'http://172.16.0.76:8001'; // S0生产采集监控地址
  27. const domainFile = 'http://172.16.0.76:8001'; // 文件地址
  28. // 现场内网配置
  29. // const domain = 'http://172.16.4.170'; // /zhongsteel.makets/service
  30. // const domain2 = 'http://172.16.4.170'; // S2 /XG/service
  31. // const domain0 = 'http://172.16.4.170'; // S0生产采集监控地址
  32. // const domainFile = 'http://172.16.4.170'; // 文件地址
  33. // zhongsteel.cutDeal
  34. // 暂时的 '/zhongsteel.maketx/service'
  35. // ajax default
  36. export const ajaxCtx = domain + '/zhongsteel.maketx/service';
  37. // ajax url starts with /...x /XG/service / /zhongsteel.makets/service
  38. export const ajaxCtx2 = domain2 + '/zhongsteel.maketx/service';
  39. // ajax url starts with S0/...
  40. export const ajaxCtx0 = domain0; //
  41. // 文件上传地址
  42. // icore-file-svr/fdfs/file/upload.do / icore-file-svr-test/fdfs/file/upload.do
  43. export const fileUploadUrl = domainFile + 'icore-file-svr-test/fdfs/file/upload.do';
  44. // 文件下载地址
  45. // icore-file-svr/fdfs/file/download.do / icore-file-svr-test/fdfs/file/download.do
  46. export const fileDownloadUrl = domainFile + 'icore-file-svr-test/fdfs/file/download.do';
  47. // 图片所在域名地址
  48. export const imgBaseUrl = domainFile + '';
  49. // 文件所在域名地址
  50. export const fileBaseUrl = domainFile + '';
  51. // cookie名
  52. export const cookieUserId = 'zhongsteel.ytg_Authorization';
  53. export const cookieUserName = 'zhongsteel.ytg_userName';
  54. // cookie默认有效时间(小时)
  55. export const cookieTime = 24;
  56. // 物流仓库编码
  57. export const storageAttr = '';
  58. // 指定机台号(写死)
  59. export const machineCode = 'M0001';