config.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. import request from '@/utils/request'
  2. // 查询参数列表
  3. export function listConfig(query) {
  4. return request({
  5. url: '/system/config/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. export function listIndextwo(query) {
  11. return request({
  12. url: '/system/dict/data/type/' + query,
  13. method: 'get'
  14. // params: query
  15. })
  16. }
  17. export function listIndextherr(query) {
  18. return request({
  19. url: '/system/dict/data/type/' + query,
  20. method: 'get'
  21. // params: query listIndextherr
  22. })
  23. }
  24. // 查询参数详细
  25. export function getConfig(id) {
  26. return request({
  27. url: '/system/config/' + id,
  28. method: 'get'
  29. })
  30. }
  31. // 根据参数键名查询参数值
  32. export function getConfigKey(configKey) {
  33. return request({
  34. url: '/system/config/configKey/' + configKey,
  35. method: 'get'
  36. })
  37. }
  38. // 新增参数配置
  39. export function addConfig(data) {
  40. return request({
  41. url: '/system/config',
  42. method: 'post',
  43. data: data
  44. })
  45. }
  46. export function addConfigindex(data) {
  47. return request({
  48. url: '/boman-web-core/p/cs/objectSave',
  49. method: 'post',
  50. data: data
  51. })
  52. }
  53. export function listIndex(data) {
  54. return request({
  55. url: '/boman-web-core/p/cs/queryList',
  56. method: 'post',
  57. data: data
  58. })
  59. }
  60. export function listIndexfou(data) {
  61. return request({
  62. url: '/boman-web-core/p/cs/queryList',
  63. method: 'post',
  64. data: data
  65. })
  66. }
  67. // export function listIndextanl(data) {
  68. // return request({
  69. // url: '/boman-web-core/p/cs/table/getByTableName',
  70. // method: 'post',
  71. // data: data
  72. // })
  73. // }
  74. export function listIndextanl(data) {
  75. return request({
  76. url: '/boman-web-core/p/cs/getObject',
  77. method: 'post',
  78. data: data
  79. })
  80. }
  81. // 修改参数配置
  82. export function updateConfig(data) {
  83. return request({
  84. url: '/system/config',
  85. method: 'put',
  86. data: data
  87. })
  88. }
  89. // 删除参数配置
  90. export function delConfig(id) {
  91. return request({
  92. url: '/system/config/' + id,
  93. method: 'delete'
  94. })
  95. }
  96. export function delIndexnabd(data) {
  97. return request({
  98. url: 'boman-web-core/p/cs/objectDelete',
  99. method: 'POST',
  100. data
  101. })
  102. }
  103. // 清理参数缓存
  104. export function clearCache() {
  105. return request({
  106. url: '/system/config/clearCache',
  107. method: 'delete'
  108. })
  109. }
  110. // 查询用户个人信息
  111. export function getUserProfile() {
  112. return request({
  113. url: '/system/user/profile',
  114. method: 'get'
  115. })
  116. }