url.js 2.1 KB

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