Files
fad_oa/ruoyi-ui/src/api/oa/performance.js

26 lines
909 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '@/utils/request'
export function myPerformance(period) {
return request({ url: '/oa/performance/mine', method: 'get', params: { period } })
}
export function rankPerformance(query) {
return request({ url: '/oa/performance/rank', method: 'get', params: query })
}
export function userPerformance(userId, period) {
return request({ url: '/oa/performance/of/' + userId, method: 'get', params: { period } })
}
// 高总(或管理员)打主观分 0~40
export function setSubjective(userId, userName, period, score) {
return request({
url: '/oa/performance/subjective', method: 'post',
params: { userId, userName, period, score }
})
}
// 手动加/扣分points 正=扣 负=加
export function manualAdjust(userId, userName, points, reason) {
return request({
url: '/oa/performance/manual', method: 'post',
params: { userId, userName, points, reason }
})
}