land.js 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. import { httpApi } from '../../request/httpApi'
  2. export default {
  3. //获取补偿协议表单(新增
  4. async addGetTables(form, msg = true) {
  5. return httpApi({
  6. url: '/api/blade-land/compensationInfo/add',
  7. method: 'get',
  8. params: form,
  9. }, msg)
  10. },
  11. async updateGetTables(form, msg = true) {
  12. return httpApi({
  13. url: '/api/blade-land/compensationInfo/updateGetTables',
  14. method: 'get',
  15. params: form,
  16. }, msg)
  17. },
  18. // 填报页面数据保存
  19. async saveBussData(form, msg = true) {
  20. return httpApi({
  21. url: '/api/blade-land/compensationInfo/save_buss_data',
  22. method: 'post',
  23. data: form,
  24. }, msg)
  25. },
  26. //协议表单-生成html
  27. async getExcelHtml(form, msg = true) {
  28. return httpApi({
  29. url: '/api/blade-land/compensationInfo/get-excel-html_buss',
  30. method: 'get',
  31. params: form,
  32. }, msg)
  33. },
  34. //协议表单-获取用户保存数据
  35. async getBussInfo(form, msg = true) {
  36. return httpApi({
  37. url: '/api/blade-land/compensationInfo/get-buss-dataInfo',
  38. method: 'get',
  39. params: form,
  40. }, msg)
  41. },
  42. //协议表单-获取坐标位置
  43. async getBussCols(form, msg = true) {
  44. return httpApi({
  45. url: '/api/blade-land/compensationInfo/get-html-buss-cols',
  46. method: 'get',
  47. params: form,
  48. }, msg)
  49. },
  50. //分页查询补偿协议
  51. async getPage(form, msg = true) {
  52. return httpApi({
  53. url: '/api/blade-land/compensationInfo/page',
  54. method: 'get',
  55. params: form,
  56. }, msg)
  57. },
  58. //多表预览
  59. async getBussPdfs(form, msg = true) {
  60. return httpApi({
  61. url: '/api/blade-land/compensationInfo/get-buss-pdfs',
  62. method: 'get',
  63. params: form,
  64. }, msg)
  65. },
  66. //删除协议
  67. async remove(form, msg = true) {
  68. return httpApi({
  69. url: '/api/blade-land/compensationInfo/remove',
  70. method: 'post',
  71. data: form,
  72. }, msg)
  73. },
  74. //表单复制blade-land/compensationInfo/cope-tab
  75. async copeTab(form, msg = true) {
  76. return httpApi({
  77. url: '/api/blade-land/compensationInfo/cope-tab',
  78. method: 'post',
  79. data: form,
  80. }, msg)
  81. },
  82. }