添加了项目前景 绩效 审批配置做了一部分有点晕 我换换脑子继续这个 还有说明菜单
This commit is contained in:
25
ruoyi-ui/src/api/oa/performance.js
Normal file
25
ruoyi-ui/src/api/oa/performance.js
Normal file
@@ -0,0 +1,25 @@
|
||||
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 }
|
||||
})
|
||||
}
|
||||
24
ruoyi-ui/src/api/oa/postpone.js
Normal file
24
ruoyi-ui/src/api/oa/postpone.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 我名下所有未处理的超期
|
||||
export function listMyOverdue() {
|
||||
return request({ url: '/oa/postpone/mine', method: 'get' })
|
||||
}
|
||||
|
||||
export function postponeComplete(businessType, businessId) {
|
||||
return request({
|
||||
url: '/oa/postpone/complete', method: 'post',
|
||||
params: { businessType, businessId }
|
||||
})
|
||||
}
|
||||
|
||||
export function postponeCancel(businessType, businessId, reason) {
|
||||
return request({
|
||||
url: '/oa/postpone/cancel', method: 'post',
|
||||
params: { businessType, businessId, reason }
|
||||
})
|
||||
}
|
||||
|
||||
export function postpone(data) {
|
||||
return request({ url: '/oa/postpone/postpone', method: 'post', data })
|
||||
}
|
||||
18
ruoyi-ui/src/api/oa/projectOverview.js
Normal file
18
ruoyi-ui/src/api/oa/projectOverview.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 项目全景:一次拉完所有维度
|
||||
export function getProjectOverview(projectId) {
|
||||
return request({
|
||||
url: '/oa/project/overview/' + projectId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 集团驾驶舱:全公司项目一览 + 全局汇总
|
||||
export function getProjectDashboardOverview(query) {
|
||||
return request({
|
||||
url: '/oa/project/overview/dashboard',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user