editelement.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import request from '@/router/axios';
  2. //获取excel字段信息
  3. export const getElementInfoByTabId = (params) => {
  4. return request({
  5. url: '/api/blade-manager/linkdatainfo/getElementInfoByTabId',
  6. method: 'get',
  7. params
  8. })
  9. }
  10. //新增修改
  11. export const submit = (data) => {
  12. return request({
  13. url: '/api/blade-manager/linkdatainfo/saveTabColInfo',
  14. method: 'post',
  15. data
  16. })
  17. }
  18. //删除元素
  19. export const remove = (data) => {
  20. return request({
  21. url: '/api/blade-manager/linkdatainfo/remove',
  22. method: 'post',
  23. data
  24. })
  25. }
  26. //数据类型字典
  27. export const dictionarydataType = () => {
  28. return request({
  29. url: '/api/blade-system/dict/dictionary?code=data_type',
  30. method: 'get',
  31. })
  32. }
  33. //表单所属方
  34. export const dictionaryAloneType = () => {
  35. return request({
  36. url: '/api/blade-system/dict/dictionary?code=owner_type',
  37. method: 'get',
  38. })
  39. }
  40. //添加新元素
  41. export const submitBatch = (data) => {
  42. return request({
  43. url: '/api/blade-manager/wbsFormElement/submit-batch',
  44. method: 'post',
  45. data
  46. })
  47. }
  48. //元素库
  49. export const tableType = () => {
  50. return request({
  51. url: '/api/blade-system/dict/dictionary?code=table_type',
  52. method: 'get',
  53. })
  54. }