excelmodel.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. //元素识别获取列表信息
  35. export const getExcelHtmlCol = (params) => {
  36. return request({
  37. url: '/api/blade-manager/exceltab/get-excel-html-col',
  38. method: 'get',
  39. params
  40. })
  41. }
  42. //清表编辑 wbs 下拉框选择
  43. export const getWbsTypeList = (params) => {
  44. return request({
  45. url: '/api/blade-manager/exceltab/getWbsTypeList',
  46. method: 'get',
  47. params
  48. })
  49. }
  50. //清表类型
  51. export const excelType = (params) => {
  52. return request({
  53. url: ' /api/blade-system/dict-biz/dictionary',
  54. method: 'get',
  55. params
  56. })
  57. }
  58. //懒加载节点树形结构
  59. export const wbstree = (params) => {
  60. return request({
  61. url: ' /api/blade-manager/exceltab/lazy-tree',
  62. method: 'get',
  63. params
  64. })
  65. }
  66. //wbs树获取表
  67. export const selectByNodeTable = (params) => {
  68. return request({
  69. url: ' /api/blade-manager/exceltab/selectByNodeTable',
  70. method: 'get',
  71. params
  72. })
  73. }
  74. // 添加编辑清表
  75. export const Excelmodify = (row) => {
  76. return request({
  77. url: '/api/blade-manager/exceltab/sava-dataInfo',
  78. method: 'post',
  79. data: row
  80. })
  81. }
  82. // 上传清表
  83. export const uploadExcel = (row) => {
  84. return request({
  85. // ty application/json
  86. url: '/api/blade-manager/exceltab/put-file-attach',
  87. method: 'post',
  88. data: row
  89. })
  90. }
  91. // 删除excel文件
  92. export const deleteExcel = (row) => {
  93. return request({
  94. url: '/api/blade-manager/exceltab/update',
  95. method: 'post',
  96. data: row
  97. })
  98. }
  99. export const deleteExcelshu = (ids) => {
  100. return request({
  101. url: '/api/blade-manager/exceltab/remove',
  102. method: 'post',
  103. params: {
  104. ids,
  105. }
  106. })
  107. }
  108. //关联清表保存
  109. export const saveLinkTab = (params) => {
  110. return request({
  111. url: ' /api/blade-manager/exceltab/save-linkTab',
  112. method: 'get',
  113. params
  114. })
  115. }
  116. //清表生成html
  117. export const getExcelHtml = (params) => {
  118. return request({
  119. url: ' /api/blade-manager/exceltab/get-excel-html',
  120. method: 'get',
  121. params
  122. })
  123. }
  124. //清表生成html
  125. export const submitExcelRelationWbsTreeAndElement = (data) => {
  126. return request({
  127. url: ' /api/blade-manager/wbsFormElement/submitExcelRelationWbsTreeAndElement',
  128. method: 'post',
  129. data
  130. })
  131. }
  132. //取消关联
  133. export const cancelRelation = (params) => {
  134. return request({
  135. url: ' /api/blade-manager/wbsFormElement/cancelRelation',
  136. method: 'get',
  137. params
  138. })
  139. }
  140. export const getLazytree = (params) => {
  141. return request({
  142. url: '/api/blade-manager/wbsTree/lazy-tree',
  143. method: 'get',
  144. params
  145. })
  146. }