score.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import request from '@/utils/request'
  2. // 查询继任者年度评分列表
  3. export function listScore(query) {
  4. return request({
  5. url: '/spec/score/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询继任者年度评分详细
  11. export function getScoreById(id) {
  12. return request({
  13. url: '/spec/score/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 查询继任者年度评分详细
  18. export function getScore(query) {
  19. return request({
  20. url: '/spec/score/getTStSuccessorScore',
  21. method: 'get',
  22. params: query
  23. })
  24. }
  25. // 新增继任者年度评分
  26. export function addScore(data) {
  27. return request({
  28. url: '/spec/score',
  29. method: 'post',
  30. data: data
  31. })
  32. }
  33. // 修改继任者年度评分
  34. export function updateScore(data) {
  35. return request({
  36. url: '/spec/score',
  37. method: 'put',
  38. data: data
  39. })
  40. }
  41. // 删除继任者年度评分
  42. export function delScore(id) {
  43. return request({
  44. url: '/spec/score/' + id,
  45. method: 'delete'
  46. })
  47. }
  48. // 导出继任者年度评分
  49. export function exportScore(query) {
  50. return request({
  51. url: '/spec/score/export',
  52. method: 'get',
  53. params: query
  54. })
  55. }