other.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. import { HcApi } from "../request/index";
  2. //用户配置保存
  3. export const getClinetAll = () =>
  4. HcApi({
  5. url: "/api/blade-system/client/getClinetAll",
  6. method: "get",
  7. params: {},
  8. });
  9. //用户配置保存
  10. export const userConfigSave = (form) =>
  11. HcApi({
  12. url: "/api/blade-business/defaultConfig/saveOrUpdate",
  13. method: "post",
  14. data: form,
  15. });
  16. //用户配置详情
  17. export const userConfigInfo = (form = {}) =>
  18. HcApi({
  19. url: "/api/blade-business/defaultConfig/detail",
  20. method: "get",
  21. params: form,
  22. });
  23. //获取类型
  24. export const getDictionary = (form) =>
  25. HcApi({
  26. url: "/api/blade-system/dict/dictionary",
  27. method: "get",
  28. params: form,
  29. });
  30. //获取类型
  31. export const getBizDictionary = (form) =>
  32. HcApi({
  33. url: "/api/blade-system/dict-biz/dictionary",
  34. method: "get",
  35. params: form,
  36. });
  37. //获取字典的子级数据
  38. export const getChildList = (form) =>
  39. HcApi({
  40. url: "/api/blade-system/dict/child-list",
  41. method: "get",
  42. params: form,
  43. });
  44. //获取用户列表
  45. export const getContractUserList = (form) =>
  46. HcApi({
  47. url: "/api/blade-manager/contractInfo/get-contract-userList",
  48. method: "get",
  49. params: form,
  50. });
  51. //获取租户详情
  52. export const getTenantDetail = (id) =>
  53. HcApi(
  54. {
  55. url: "/api/blade-system/tenant/detail",
  56. method: "get",
  57. params: { tenantId: id },
  58. },
  59. true
  60. );
  61. //获取更新信息
  62. export const getVersionJson = () =>
  63. HcApi({
  64. url: "version.json?time=" + new Date().getTime(),
  65. method: "get",
  66. });
  67. //获取项目下的合同段信息
  68. export const getContractInfo = (form) =>
  69. HcApi({
  70. url: "/api/blade-manager/contractInfo/get-contractInfo",
  71. method: "get",
  72. params: form,
  73. });
  74. //获取图标文件
  75. export const getRemixicon = () =>
  76. HcApi({
  77. url: "plugins/remixicon/remixicon.css?time=" + new Date().getTime(),
  78. method: "get",
  79. });