officeService.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. import request from "@/utils/httpRequest";
  2. import { SYS_PATH as prefix } from "../AppPath";
  3. export default {
  4. save: function (inputForm) {
  5. return request({
  6. url: prefix + "/sys/office/save",
  7. method: "post",
  8. data: inputForm,
  9. });
  10. },
  11. drag: function (inputForm) {
  12. return request({
  13. url: prefix + "/sys/office/drag",
  14. method: "post",
  15. data: inputForm,
  16. });
  17. },
  18. delete: function (ids) {
  19. return request({
  20. url: prefix + "/sys/office/delete",
  21. method: "delete",
  22. params: { ids: ids },
  23. });
  24. },
  25. queryById: function (id) {
  26. return request({
  27. url: prefix + "/sys/office/queryById",
  28. method: "get",
  29. params: { id: id },
  30. });
  31. },
  32. treeData: function (params) {
  33. return request({
  34. url: prefix + "/sys/office/treeData",
  35. method: "get",
  36. params: params,
  37. });
  38. },
  39. allTreeData: function (params) {
  40. return request({
  41. url: prefix + "/sys/office/allTreeData",
  42. method: "get",
  43. params: params,
  44. });
  45. },
  46. treeData2(params) {
  47. return request({
  48. url: prefix + "/sys/office/treeData2",
  49. method: "get",
  50. params: params,
  51. });
  52. },
  53. listTree(params) {
  54. return request({
  55. url: prefix + "/sys/office/list_tree",
  56. method: "get",
  57. params: params,
  58. });
  59. },
  60. getSecondLevelData() {
  61. return request({
  62. url: prefix + "/sys/office/getSecondLevelData",
  63. method: "get",
  64. });
  65. },
  66. getAllCompany() {
  67. return request({
  68. url: prefix + "/sys/office/get_all_company",
  69. method: "get",
  70. });
  71. },
  72. checkLoginIsPgOrKj() {
  73. return request({
  74. url: prefix + "/sys/office/checkLoginIsPgOrKj",
  75. method: "get",
  76. });
  77. },
  78. };