Newer
Older
KaiFengPC / src / api / spongePerformance / management.js
@鲁yixuan 鲁yixuan on 19 Aug 3 KB updata
  1. import request from '@/utils/request';
  2.  
  3. // 列表搜索考核指标配置
  4. export function getAssessTargetConfigPage(params) {
  5. return request({
  6. url: '/sponge/performanceConfig/page',
  7. method: 'get',
  8. params,
  9. });
  10. }
  11.  
  12. // 新增考核指标配置
  13. export function assessTargetConfigAdd(data) {
  14. return request({
  15. url: '/sponge/assessTargetConfig/add',
  16. method: 'post',
  17. data,
  18. });
  19. }
  20.  
  21. // 复制考核指标配置
  22. export function assessTargetConfigCopy(data) {
  23. return request({
  24. url: '/sponge/assessTargetConfig/copy',
  25. method: 'post',
  26. data,
  27. });
  28. }
  29.  
  30. // 删除考核指标配置
  31. export function assessTargetConfigDel(ids) {
  32. return request({
  33. url: `/sponge/performanceConfig/${ids}`,
  34. method: 'delete',
  35. });
  36. }
  37.  
  38. // 根据配置指标管理主键id搜索配置详情-返回树结构
  39. export function getAssessTargetConfigControllerItem(params) {
  40. return request({
  41. url: `/sponge/performanceConfigItem/tree`,
  42. method: 'get',
  43. params,
  44. });
  45. }
  46.  
  47. // 批量修改考核指标控制项数据
  48. export function assessTargetConfigControllerItemBatchUpdate(data) {
  49. return request({
  50. url: '/sponge/performanceConfigItem/add',
  51. method: 'post',
  52. data,
  53. });
  54. }
  55. // 批量修改考核指标控制项数据
  56. export function assessTargetConfigEdit(data) {
  57. return request({
  58. url: '/sponge/performanceConfigItem/edit',
  59. method: 'put',
  60. data,
  61. });
  62. }
  63.  
  64. // 启用
  65. export function assessTargetConfigOpen(data) {
  66. return request({
  67. url: '/sponge/assessTargetConfig/open',
  68. method: 'post',
  69. data,
  70. });
  71. }
  72.  
  73. // 禁用
  74. export function assessTargetConfigClose(data) {
  75. return request({
  76. url: '/sponge/assessTargetConfig/close',
  77. method: 'post',
  78. data,
  79. });
  80. }
  81.  
  82. // 根据配置指标管理主键id搜索配置详情-返回树结构
  83. export function getAssessTargetConfigGradeItem(targetId) {
  84. return request({
  85. url: `/sponge/assessTargetConfigGradeItem/${targetId}`,
  86. method: 'get',
  87. });
  88. }
  89.  
  90. // 批量修改考核指标评分项数据
  91. export function assessTargetConfigGradeItemBatchUpdate(data) {
  92. return request({
  93. url: '/sponge/assessTargetConfigGradeItem/batchUpdate',
  94. method: 'post',
  95. data,
  96. });
  97. }
  98.  
  99. // 删除海绵考核指标配置项
  100. export function deleteConfigControllerItem(id) {
  101. return request({
  102. url: `/sponge/performanceConfigItem/${id}`,
  103. method: 'delete',
  104. });
  105. }
  106.  
  107. // 详细搜索海绵考核指标配置
  108. export function detailDataType(id) {
  109. return request({
  110. url: `/sponge/performanceConfigItem/detailDataType`,
  111. method: 'get',
  112. });
  113. }
  114.  
  115. // 复制海绵考核指标配置
  116. export function performanceConfigCopy(data) {
  117. return request({
  118. url: `/sponge/performanceConfig/copy`,
  119. method: 'post',
  120. data,
  121. });
  122. }
  123.  
  124. // 复制海绵考核指标配置
  125. export function performanceConfigEnable(id) {
  126. return request({
  127. url: `/sponge/performanceConfig/enable/${id}`,
  128. method: 'get',
  129. });
  130. }
  131.  
  132. // export function performanceConfigDisable(id) {
  133. // return request({
  134. // url: `/sponge/performanceConfig/disable/${id}`,
  135. // method: "get",
  136. // });
  137. // }
  138. // 复制海绵考核指标配置
  139.  
  140. // 复制海绵考核指标配置
  141. export function performanceConfigAdd(data) {
  142. return request({
  143. url: `/sponge/performanceConfig/add`,
  144. method: 'post',
  145. data,
  146. });
  147. }
  148. export function performanceConfigEdit(data) {
  149. return request({
  150. url: `/sponge/performanceConfig/edit`,
  151. method: 'put',
  152. data,
  153. });
  154. }
  155.  
  156. // 停用海绵考核指标配置
  157.  
  158. // 启用启用海绵考核指标配置
  159. export function enableAndEnable(id) {
  160. return request({
  161. url: `/sponge/performanceConfig/enable/${id}`,
  162. method: 'get',
  163. });
  164. }
  165.  
  166. // 停用海绵考核指标配置项
  167. export function performanceConfigDisable(id) {
  168. return request({
  169. url: `/sponge/performanceConfig/disable/${id}`,
  170. method: 'get',
  171. });
  172. }
  173. // 启用-停用海绵考核指标配置项
  174. export function performanceConfigEnableAndDisable(id) {
  175. return request({
  176. url: `/sponge/performanceConfigItem/enableAndDisable/${id}`,
  177. method: 'get',
  178. });
  179. }