1
0

apiUrl.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //首先: special命名为sp
  2. var apiurljs = window.NameSpace || {};
  3. apiurljs.login = "http://192.168.3.152:8088/glwork/";
  4. apiurljs.login1 = "http://192.168.3.152:8088/glwork1/";
  5. apiurljs.onePic = "http://10.149.1.56:8077/"
  6. apiurljs.yzFcscloud = "http://192.168.3.152:8088/glwork/"
  7. apiurljs.yzFileWo = "http://192.168.3.152:8088/wo/";
  8. //老OA公文地址
  9. apiurljs.seeyon = "http://192.168.1.113:86/seeyon"
  10. apiurljs.refineapi = "";
  11. apiurljs.dpt = "http://10.149.1.35:8001/api/"
  12. //sm4解码字符串转对象
  13. function strToJson(str) {
  14. var obj = str.replace(/\u0000|\u0001|\u0002|\u0003|\u0004|\u0005|\u0006|\u0007|\u0008|\u0009|\u000a|\u000b|\u000c|\u000d|\u000e|\u000f|\u0010|\u0011|\u0012|\u0013|\u0014|\u0015|\u0016|\u0017|\u0018|\u0019|\u001a|\u001b|\u001c|\u001d|\u001e|\u001f|\u007F/g, "")
  15. var json = eval('(' + obj + ')');
  16. return json;
  17. }
  18. // if (sessionStorage.getItem("GlWorkPlatform-uploadformat") == null) {
  19. // $.ajax({
  20. // url: apiurljs.login + "g2app/dataabase/queryCodeData",
  21. // type: 'post',
  22. // dataType: 'json',
  23. // contentType: 'application/json',
  24. // headers: { Authorization: "Bearer " + localStorage.getItem("GlWorkPlatform-AccessToken") },
  25. // data: JSON.stringify({
  26. // tablename: "CODE_UPLOADFORMAT"
  27. // }),
  28. // success: function (res) {
  29. // apiurljs.uploadformat = res.data;
  30. // sessionStorage.setItem("GlWorkPlatform-uploadformat", apiurljs.uploadformat)
  31. // }
  32. // })
  33. // } else {
  34. // apiurljs.uploadformat = sessionStorage.getItem("GlWorkPlatform-uploadformat")
  35. // }
  36. apiurljs.zwType = ["doc", "docx", "wps", "xls", "xlsx", "et"]
  37. apiurljs.zhType = ["doc", "docx", "wps", "xls", "xlsx", "et", "pdf", "ofd", "png", "jpg", "jpeg", "gif", "bmp", "jfif", "svg", "tif", "tiff"]//, "DOC", "DOCX", "WPS", "XLS", "XLSX", "ET", "PDF", "OFD", "PNG", "JPG", "JPEG", "GIF", "BMP", "JFIF", "SVG", "TIF", "TIFF"]