workbench2.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import { cg as o } from "./index2.js";
  2. function s(t, n) {
  3. const e = window.$utils.env.VITE_APP_SYS_SERVER_NAME;
  4. return window.$utils.http({
  5. url: `/${e}/position/page?${o.stringify(n)}`,
  6. data: t
  7. });
  8. }
  9. function l(t) {
  10. const n = window.$utils.env.VITE_APP_SYS_SERVER_NAME;
  11. return window.$utils.http({
  12. url: `/${n}/position/deleteById?id=${t}`
  13. });
  14. }
  15. function r(t) {
  16. const n = window.$utils.env.VITE_APP_SYS_SERVER_NAME;
  17. return window.$utils.http({
  18. url: `/${n}/position/deleteByIds`,
  19. data: t
  20. });
  21. }
  22. function p() {
  23. const t = window.$utils.env.VITE_APP_SYS_SERVER_NAME;
  24. return window.$utils.http({
  25. responseType: "blob",
  26. url: `/${t}/position/exportExcelTemplate`
  27. });
  28. }
  29. function u(t) {
  30. const n = window.$utils.env.VITE_APP_SYS_SERVER_NAME, e = new FormData();
  31. return e.append("file", t), window.$utils.http({
  32. url: `/${n}/position/importExcel`,
  33. data: e,
  34. headers: {
  35. "Content-Type": "multipart/form-data"
  36. }
  37. });
  38. }
  39. function E(t) {
  40. const n = window.$utils.env.VITE_APP_SYS_SERVER_NAME;
  41. return window.$utils.http({
  42. responseType: "blob",
  43. url: `/${n}/position/exportExcel`,
  44. data: t
  45. });
  46. }
  47. export {
  48. r as a,
  49. p as b,
  50. l as d,
  51. E as e,
  52. u as i,
  53. s as p
  54. };