other.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import { HcApi } from '../request/index'
  2. //用户配置保存
  3. export const userConfigSave = (form, msg = true) => HcApi({
  4. url: '/api/blade-business/defaultConfig/saveOrUpdate',
  5. method: 'post',
  6. data: form,
  7. }, msg)
  8. //用户配置详情
  9. export const userConfigInfo = (form = {}, msg = true) => HcApi({
  10. url: '/api/blade-business/defaultConfig/detail',
  11. method: 'get',
  12. params: form,
  13. }, msg)
  14. //获取类型
  15. export const getDictionary = (form, msg = true) => HcApi({
  16. url: '/api/blade-system/dict/dictionary',
  17. method: 'get',
  18. params: form,
  19. }, msg)
  20. //业务字典
  21. export const getDictionaryBiz = (form, msg = true) => HcApi({
  22. url: '/api/blade-system/dict-biz/dictionary',
  23. method: 'get',
  24. params: form,
  25. }, msg)
  26. //获取用户列表
  27. export const getContractUserList = (form, msg = true) => HcApi({
  28. url: '/api/blade-manager/contractInfo/get-contract-userList',
  29. method: 'get',
  30. params: form,
  31. }, msg)
  32. //获取租户详情
  33. export const getTenantDetail = (id) => HcApi({
  34. url: '/api/blade-system/tenant/detail',
  35. method: 'get',
  36. params: {
  37. tenantId: id,
  38. },
  39. }, true)
  40. //获取更新信息
  41. export const getVersionJson = () => HcApi({
  42. url: 'version.json?time=' + new Date().getTime(),
  43. method: 'get',
  44. }, false)
  45. //获取项目下的合同段信息
  46. export const getContractInfo = (form, msg = true) => HcApi({
  47. url: '/api/blade-manager/contractInfo/get-contractInfo',
  48. method: 'get',
  49. params: form,
  50. }, msg)
  51. //获取质检划分树
  52. export const queryWbsTreeData = (form, msg = true) => HcApi({
  53. url: '/api/blade-user/wbs/lazyQueryContractWbsTree',
  54. method: 'get',
  55. params: form,
  56. }, msg)