excelmodel.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. import request from '@/router/axios';
  2. //分页获取清表
  3. export const getList = (params) => {
  4. return request({
  5. url: '/api/blade-manager/exceltab/list',
  6. method: 'get',
  7. params
  8. })
  9. }
  10. // 关联清表树all
  11. export const tabLazytreeAll = (params) => {
  12. return request({
  13. url: '/api/blade-manager/exceltab/tab-lazytree-all',
  14. method: 'get',
  15. params
  16. })
  17. };
  18. //清表树
  19. export const tabLazytree = (params) => {
  20. return request({
  21. url: '/api/blade-manager/exceltab/tab-lazytree',
  22. method: 'get',
  23. params
  24. })
  25. };
  26. //获取列表信息
  27. export const detailExcel = (params) => {
  28. return request({
  29. url: '/api/blade-manager/exceltab/detail',
  30. method: 'get',
  31. params
  32. })
  33. }
  34. //清表编辑 wbs 下拉框选择
  35. export const getWbsTypeList = (params) => {
  36. return request({
  37. url: '/api/blade-manager/exceltab/getWbsTypeList',
  38. method: 'get',
  39. params
  40. })
  41. }
  42. //清表类型
  43. export const excelType = (params) => {
  44. return request({
  45. url: ' /api/blade-system/dict-biz/dictionary',
  46. method: 'get',
  47. params
  48. })
  49. }
  50. //懒加载节点树形结构
  51. export const wbstree = (params) => {
  52. return request({
  53. url: ' /api/blade-manager/exceltab/lazy-tree',
  54. method: 'get',
  55. params
  56. })
  57. }
  58. //wbs树获取表
  59. export const selectByNodeTable = (params) => {
  60. return request({
  61. url: ' /api/blade-manager/exceltab/selectByNodeTable',
  62. method: 'get',
  63. params
  64. })
  65. }
  66. // 添加编辑清表
  67. export const Excelmodify = (row) => {
  68. return request({
  69. url: '/api/blade-manager/exceltab/sava-dataInfo',
  70. method: 'post',
  71. data: row
  72. })
  73. }
  74. // 上传清表
  75. export const uploadExcel = (row) => {
  76. return request({
  77. // ty application/json
  78. url: '/api/blade-manager/exceltab/put-file-attach',
  79. method: 'post',
  80. data: row
  81. })
  82. }
  83. // 删除excel文件
  84. export const deleteExcel = (row) => {
  85. return request({
  86. url: '/api/blade-manager/exceltab/update',
  87. method: 'post',
  88. data: row
  89. })
  90. }
  91. export const deleteExcelshu = (ids) => {
  92. return request({
  93. url: '/api/blade-manager/exceltab/remove',
  94. method: 'post',
  95. params: {
  96. ids,
  97. }
  98. })
  99. }
  100. //关联清表保存
  101. export const saveLinkTab = (params) => {
  102. return request({
  103. url: ' /api/blade-manager/exceltab/save-linkTab',
  104. method: 'get',
  105. params
  106. })
  107. }
  108. //清表生成html
  109. export const getExcelHtml = (params) => {
  110. return request({
  111. url: ' /api/blade-manager/exceltab/get-excel-html',
  112. method: 'get',
  113. params
  114. })
  115. }
  116. //清表生成html
  117. export const submitExcelRelationWbsTreeAndElement = (data) => {
  118. return request({
  119. url: ' /api/blade-manager/wbsFormElement/submitExcelRelationWbsTreeAndElement',
  120. method: 'post',
  121. data
  122. })
  123. }
  124. export const getLazytree = (params) => {
  125. return request({
  126. url: '/api/blade-manager/wbsTree/lazy-tree',
  127. method: 'get',
  128. params
  129. })
  130. }