land.js 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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: 'get',
  71. params: 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: 'get',
  79. params: form,
  80. }, msg)
  81. },
  82. //获取附件列表
  83. async getBussFileList(form, msg = true) {
  84. return httpApi({
  85. url: '/api/blade-land/agreementFile/getFileList',
  86. method: 'get',
  87. params: form,
  88. }, msg)
  89. },
  90. //删除附件
  91. async deleteFile(form, msg = true) {
  92. return httpApi({
  93. url: '/api/blade-land/agreementFile/delete',
  94. method: 'get',
  95. params: form,
  96. }, msg)
  97. },
  98. }