makeFormService.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. import request from "../../common/request"
  2. export default {
  3. save: function (inputForm) {
  4. return request({
  5. url: "/form/make/save",
  6. method: "post",
  7. data: inputForm,
  8. });
  9. },
  10. saveFormSource: function (inputForm) {
  11. return request({
  12. url: "/form/make/saveFormSource",
  13. method: "post",
  14. data: inputForm,
  15. });
  16. },
  17. saveBasicInfo: function (inputForm) {
  18. return request({
  19. url: "/form/make/saveBasicInfo",
  20. method: "post",
  21. data: inputForm,
  22. });
  23. },
  24. delete: function (ids) {
  25. return request({
  26. url: "/form/make/delete",
  27. method: "delete",
  28. params: { ids: ids },
  29. });
  30. },
  31. queryById: function (id) {
  32. return request({
  33. url: "/form/make/queryById",
  34. method: "get",
  35. params: { id: id },
  36. });
  37. },
  38. getTableColumnList: function (params) {
  39. return request({
  40. url: "/form/make/getTableColumnList",
  41. method: "get",
  42. params: params,
  43. });
  44. },
  45. getTableList: function (params) {
  46. return request({
  47. url: "/form/make/getTableList",
  48. method: "get",
  49. params: params,
  50. });
  51. },
  52. list: function (params) {
  53. return request({
  54. url: "/form/make/list",
  55. method: "get",
  56. params: params,
  57. });
  58. },
  59. validateTableNoExist: function (params) {
  60. return request({
  61. url: "/form/make/validateTableNoExist",
  62. method: "get",
  63. params: params,
  64. });
  65. },
  66. validateKeyNoExist: function (params) {
  67. return request({
  68. url: "/form/make/validateKeyNoExist",
  69. method: "get",
  70. params: params,
  71. });
  72. },
  73. createMenu: function (inputForm) {
  74. return request({
  75. url: "/form/make/createMenu",
  76. method: "post",
  77. header: {
  78. "Content-Type":
  79. "application/x-www-form-urlencoded; charset=utf-8",
  80. },
  81. data: inputForm,
  82. });
  83. },
  84. };