config.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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/getTableQuery',
  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. // 修改参数配置
  75. export function updateConfig(data) {
  76. return request({
  77. url: '/system/config',
  78. method: 'put',
  79. data: data
  80. })
  81. }
  82. // 删除参数配置
  83. export function delConfig(id) {
  84. return request({
  85. url: '/system/config/' + id,
  86. method: 'delete'
  87. })
  88. }
  89. // 清理参数缓存
  90. export function clearCache() {
  91. return request({
  92. url: '/system/config/clearCache',
  93. method: 'delete'
  94. })
  95. }