other.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. import { httpApi } from '../request/httpApi'
  2. //用户配置保存
  3. export const userConfigSave = (form, msg = true) => httpApi({
  4. url: '/api/blade-business/defaultConfig/saveOrUpdate',
  5. method: 'post',
  6. data: form,
  7. }, msg)
  8. //用户配置详情
  9. export const userConfigInfo = (form, msg = true) => httpApi({
  10. url: '/api/blade-business/defaultConfig/detail',
  11. method: 'get',
  12. params: form,
  13. }, msg)
  14. //获取类型
  15. export const getDictionary = (form, msg = true) => httpApi({
  16. url: '/api/blade-system/dict/dictionary',
  17. method: 'get',
  18. params: form,
  19. }, msg)
  20. //获取用户列表
  21. export const getContractUserList = (form, msg = true) => httpApi({
  22. url: '/api/blade-manager/contractInfo/get-contract-userList',
  23. method: 'get',
  24. params: form,
  25. }, msg)
  26. //获取档案的树
  27. export const getArchiveTreeLazyTree = (form, msg = true) => httpApi({
  28. url: '/api/blade-manager/archiveTreeContract/lazy-tree',
  29. method: 'get',
  30. params: form,
  31. }, msg)
  32. //初始化档案的树
  33. export const initTree = (form, msg = true) => httpApi({
  34. url: '/api/blade-manager/archiveTreeContract/initTree',
  35. method: 'post',
  36. params: form,
  37. }, msg)
  38. //删除
  39. export const remove = (form, msg = true) => httpApi({
  40. url: '/api/blade-manager/archiveTreeContract/remove',
  41. method: 'post',
  42. params: form,
  43. }, msg)
  44. //新增
  45. export const archiveTreeSave = (form, msg = true) => httpApi({
  46. url: '/api/blade-manager/archiveTreeContract/save',
  47. method: 'post',
  48. data: form,
  49. }, msg)
  50. //编辑
  51. export const archiveTreeDetail = (form, msg = true) => httpApi({
  52. url: '/api/blade-manager/archiveTreeContract/detail',
  53. method: 'get',
  54. params: form,
  55. }, msg)
  56. //更新
  57. export const archiveTreeUpdate = (form, msg = true) => httpApi({
  58. url: '/api/blade-manager/archiveTreeContract/update',
  59. method: 'post',
  60. data: form,
  61. }, msg)
  62. //获取归档树同级节点
  63. export const getSameGradeNode = (form, msg = true) => httpApi({
  64. url: '/api/blade-manager/archiveTreeContract/get-same-grade-node',
  65. method: 'post',
  66. params: form,
  67. }, msg)
  68. //排序
  69. export const submitArchiveTreeSort = (form, msg = true) => httpApi({
  70. url: '/api/blade-manager/archiveTreeContract/submit-tree-sort',
  71. method: 'post',
  72. data: form,
  73. }, msg)
  74. //同步
  75. export const syncProjectTree = (form, msg = true) => httpApi({
  76. url: '/api/blade-manager/archiveTreeContract/syncProjectTree',
  77. method: 'post',
  78. params: form,
  79. }, msg)
  80. //文件同步
  81. export const syncFileTree = (form, msg = true) => httpApi({
  82. url: '/api/blade-manager/archiveTreeContract/syncBusinessData',
  83. method: 'post',
  84. params: form,
  85. }, msg)
  86. //声像文件同步
  87. export const syncSoundImageData = (form, msg = true) => httpApi({
  88. url: '/api/blade-manager/archiveTreeContract/syncSoundImageData',
  89. method: 'post',
  90. params: form,
  91. }, msg)
  92. //所属角色
  93. export const roletree = (form, msg = true) => httpApi({
  94. url: '/api/blade-system/role/tree',
  95. method: 'get',
  96. params: {
  97. tenantId: '',
  98. },
  99. }, msg)
  100. //获取租户详情
  101. export const getTenantDetail = (id) => httpApi({
  102. url: '/api/blade-system/tenant/detail',
  103. method: 'get',
  104. params: {
  105. tenantId: id,
  106. },
  107. }, true)
  108. //获取更新信息
  109. export const getVersionJson = () => httpApi({
  110. url: 'version.json?time=' + new Date().getTime(),
  111. method: 'get',
  112. }, false)
  113. //获取项目下的合同段信息
  114. export const getContractInfo = (form, msg = true) => httpApi({
  115. url: '/api/blade-manager/contractInfo/get-contractInfo',
  116. method: 'get',
  117. params: form,
  118. }, msg)
  119. //短信验证
  120. export const sendNotice = (form, msg = true) => httpApi({
  121. url: '/api/blade-business/task/send-notice',
  122. method: 'post',
  123. params: form,
  124. }, msg)
  125. //短信过期时间
  126. export const saveSmsTimeout = (form, msg = true) => httpApi({
  127. url: '/api/blade-business/task/save-sms-timeout',
  128. method: 'get',
  129. params: form,
  130. }, msg)
  131. //获取脱机离线APP
  132. export const getLocalArchivesApp = () => httpApi({
  133. url: 'local-app/index.json?time=' + new Date().getTime(),
  134. method: 'get',
  135. }, false)