common.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. import { b$ as e } from "./index2.js";
  2. function o(t = "", n = "") {
  3. const i = window.$utils.env.VITE_APP_PORTAL_SERVER_NAME;
  4. return window.$utils.http({
  5. url: `${i}/office/recursionChildren?parentId=${t}&excludeIds=${n}`
  6. });
  7. }
  8. function u(t = "") {
  9. const n = window.$utils.env.VITE_APP_PORTAL_SERVER_NAME;
  10. return window.$utils.http({
  11. url: `${n}/office/levelTwoChildren?parentId=${t}`
  12. });
  13. }
  14. function r(t = "") {
  15. const n = window.$utils.env.VITE_APP_PORTAL_SERVER_NAME;
  16. return window.$utils.http({
  17. url: `${n}/office/levelOneChildren?parentId=${t}`
  18. });
  19. }
  20. function d(t) {
  21. const n = window.$utils.env.VITE_APP_PORTAL_SERVER_NAME;
  22. return window.$utils.http({
  23. method: "get",
  24. url: `${n}/v1/units/jobs?${e.stringify(t)}`
  25. });
  26. }
  27. function P(t) {
  28. const n = window.$utils.env.VITE_APP_PORTAL_SERVER_NAME;
  29. return window.$utils.http({
  30. url: `${n}/user/users/authorizedIds`,
  31. data: t
  32. });
  33. }
  34. function _(t) {
  35. const n = window.$utils.env.VITE_APP_PORTAL_SERVER_NAME;
  36. return window.$utils.http({
  37. url: `${n}/v1/units/jobIds`,
  38. data: t
  39. });
  40. }
  41. function l(t) {
  42. const n = window.$utils.env.VITE_APP_PORTAL_SERVER_NAME;
  43. return window.$utils.http({
  44. url: `${n}/position/getByIds`,
  45. data: t
  46. });
  47. }
  48. function w(t) {
  49. const n = window.$utils.env.VITE_APP_PORTAL_SERVER_NAME;
  50. return window.$utils.http({
  51. method: "get",
  52. url: `${n}/user/users/authorized`,
  53. data: t
  54. });
  55. }
  56. function A(t) {
  57. const n = window.$utils.env.VITE_APP_PORTAL_SERVER_NAME;
  58. return window.$utils.http({
  59. url: `${n}/user/getByIds`,
  60. data: t
  61. });
  62. }
  63. export {
  64. r as a,
  65. o as b,
  66. P as c,
  67. w as d,
  68. A as e,
  69. d as g,
  70. _ as j,
  71. u as l,
  72. l as p
  73. };