config.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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 listIndexber(data) {
  61. return request({
  62. url: '/boman-web-core/p/cs/queryList',
  63. method: 'post',
  64. data: data
  65. })
  66. }
  67. export function listIndexfou(data) {
  68. return request({
  69. url: '/boman-web-core/p/cs/queryList',
  70. method: 'post',
  71. data: data
  72. })
  73. }
  74. // export function listIndextanl(data) {
  75. // return request({
  76. // url: '/boman-web-core/p/cs/table/getByTableName',
  77. // method: 'post',
  78. // data: data
  79. // })
  80. // }
  81. export function listIndextanl(data) {
  82. return request({
  83. url: '/boman-web-core/p/cs/getObject',
  84. method: 'post',
  85. data: data
  86. })
  87. }
  88. // 修改参数配置
  89. export function updateConfig(data) {
  90. return request({
  91. url: '/system/config',
  92. method: 'put',
  93. data: data
  94. })
  95. }
  96. // 删除参数配置
  97. export function delConfig(id) {
  98. return request({
  99. url: '/system/config/' + id,
  100. method: 'delete'
  101. })
  102. }
  103. export function delIndexnabd(data) {
  104. return request({
  105. url: 'boman-web-core/p/cs/objectDelete',
  106. method: 'POST',
  107. data
  108. })
  109. }
  110. // 清理参数缓存
  111. export function clearCache() {
  112. return request({
  113. url: '/system/config/clearCache',
  114. method: 'delete'
  115. })
  116. }
  117. // 查询用户个人信息
  118. export function getUserProfile() {
  119. return request({
  120. url: '/system/user/profile',
  121. method: 'get'
  122. })
  123. }