config.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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. // 获取表单查询字段、按钮、表头
  18. export function getTableQuery(data) {
  19. return request({
  20. url: '/boman-web-core/p/cs/getTableQuery',
  21. method: 'POST',
  22. data
  23. })
  24. }
  25. export function listIndextherr(query) {
  26. return request({
  27. url: '/system/dict/data/type/' + query,
  28. method: 'get'
  29. // params: query listIndextherr
  30. })
  31. }
  32. // 统计
  33. export function tjList(query) {
  34. return request({
  35. url: '/boman-web-core/vaccination/statisticYmjz',
  36. method: 'get'
  37. // params: query listIndextherr
  38. })
  39. }
  40. // 查询参数详细
  41. export function getConfig(id) {
  42. return request({
  43. url: '/system/config/' + id,
  44. method: 'get'
  45. })
  46. }
  47. // 根据参数键名查询参数值
  48. export function getConfigKey(configKey) {
  49. return request({
  50. url: '/system/config/configKey/' + configKey,
  51. method: 'get'
  52. })
  53. }
  54. // 新增参数配置
  55. export function addConfig(data) {
  56. return request({
  57. url: '/system/config',
  58. method: 'post',
  59. data: data
  60. })
  61. }
  62. export function addConfigindex(data) {
  63. return request({
  64. url: '/boman-web-core/p/cs/objectSave',
  65. method: 'post',
  66. data: data
  67. })
  68. }
  69. export function listIndex(data) {
  70. return request({
  71. url: '/boman-web-core/p/cs/queryList',
  72. method: 'post',
  73. data: data
  74. })
  75. }
  76. export function listIndexber(data) {
  77. return request({
  78. url: '/boman-web-core/p/cs/queryList',
  79. method: 'post',
  80. data: data
  81. })
  82. }
  83. export function listIndexfou(data) {
  84. return request({
  85. url: '/boman-web-core/p/cs/queryList',
  86. method: 'post',
  87. data: data
  88. })
  89. }
  90. // export function listIndextanl(data) {
  91. // return request({
  92. // url: '/boman-web-core/p/cs/table/getByTableName',
  93. // method: 'post',
  94. // data: data
  95. // })
  96. // }
  97. export function listIndextanl(data) {
  98. return request({
  99. url: '/boman-web-core/p/cs/getObject',
  100. method: 'post',
  101. data: data
  102. })
  103. }
  104. // 修改参数配置
  105. export function updateConfig(data) {
  106. return request({
  107. url: '/system/config',
  108. method: 'put',
  109. data: data
  110. })
  111. }
  112. // 删除参数配置
  113. export function delConfig(id) {
  114. return request({
  115. url: '/system/config/' + id,
  116. method: 'delete'
  117. })
  118. }
  119. export function delIndexnabd(data) {
  120. return request({
  121. url: 'boman-web-core/p/cs/objectDelete',
  122. method: 'POST',
  123. data
  124. })
  125. }
  126. // 清理参数缓存
  127. export function clearCache() {
  128. return request({
  129. url: '/system/config/clearCache',
  130. method: 'delete'
  131. })
  132. }
  133. // 查询用户个人信息
  134. export function getUserProfile() {
  135. return request({
  136. url: '/system/user/profile',
  137. method: 'get'
  138. })
  139. }