url.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // var ctx = "http://10.149.85.208:8001"//agile_sign_web的服务
  2. // var ctxTest ="http://10.149.85.208:8003"//agile_sign_seal_web的服务
  3. // var ctx = "http://192.168.1.250:8890"//agile_sign_web的服务
  4. var ctx = apiConfig.ctx //agile_sign_web的服务
  5. var oldVersion = apiConfig.oldVersion //agile_sign_seal_web的服务
  6. // var ctx = "http://192.168.1.79:8080"
  7. var rootD = apiConfig.rootD
  8. var cv = 2; //1 开发。2 测试
  9. jQuery.support.cors = true;
  10. if (!console) {
  11. var console = { //ie console报错
  12. log: function (a) {
  13. return false;
  14. }
  15. }
  16. }
  17. var httpUrl = window.location.protocol + "//" + window.location.host;
  18. var agCtx= util.getAgCtx(null);
  19. var url = {
  20. login: ctx+"/"+agCtx+ "/sys/login/loginCheck",
  21. token: ctx+"/"+agCtx+ "/sys/login/auth/token", //菜单
  22. menu: ctx+"/"+agCtx + "/sys/login/auth/functions",
  23. deparTreeNew:ctx+"/"+agCtx+'/department/selectTopDepart',//新树结构
  24. deparTreeSon:ctx+"/"+agCtx+'/department/selectChildDeparts',//新树结构
  25. deparTreeSonTest:ctx+"/"+agCtx+'/department/selectChildDepartsTest',//新树结构测试
  26. comMethod: {
  27. upload: ctx+"/"+agCtx + "/fileTransfer/upload",
  28. download: ctx+"/"+agCtx + "/fileTransfer/download"
  29. },
  30. jobNumber:{
  31. getList:ctx+"/"+agCtx+"/sys/login/queryCLoginMsgPage",
  32. findById:ctx+"/"+agCtx+"/sys/login/queryLoginByLoginNo",
  33. add:ctx+"/"+agCtx+"/sys/login/saveLoginMsg",
  34. edit:ctx+"/"+agCtx+"/sys/login/updateLoginMsg",
  35. del:ctx+"/"+agCtx+"/sys/login/deleteLoginMsg"
  36. },
  37. organization:{
  38. allTree:ctx+"/"+agCtx+"/sys/groupmsg/queryAllArea",
  39. getList:ctx+'/"+agCtx+"/sys/login/queryCLoginMsgPage',
  40. findById:ctx+"/"+agCtx+"/sys/groupmsg/loadGroupMsgById",
  41. add:ctx+"/"+agCtx+"/sys/groupmsg/add",
  42. edit:ctx+"/"+agCtx+"/sys/groupmsg/updateGroupMsg",
  43. del:ctx+"/"+agCtx+"/sys/groupmsg/deleteGroupMsg",
  44. getNodes:ctx+"/"+agCtx+"/sys/groupmsg/getNodes",
  45. getGroupMsgByParentGroupId:ctx+"/"+agCtx+"/sys/groupmsg/getParentNodes",
  46. qx:ctx+"/"+agCtx+"/sys/groupmsg/getDsikillPower",
  47. initqx:ctx+"/"+agCtx+"/sys/groupmsg/privilegeInit",
  48. save:ctx+"/"+agCtx+"/sys/groupmsg/saveFunctionInfo"
  49. },
  50. apiDoc: {
  51. impression: "/static/layui/json/apiDoc.json"
  52. }
  53. }