feat(team): add page
This commit is contained in:
65
components/label/api/workload/index.ts
Normal file
65
components/label/api/workload/index.ts
Normal file
@@ -0,0 +1,65 @@
|
||||
import httpFetch from "@/api/fetch"
|
||||
import { BASE_LABEL_API } from "../const"
|
||||
import { TimeFilter, WorkLoad } from "./typing"
|
||||
|
||||
// 标注工作量统计
|
||||
export const getLabelStatisticsList = (params: TimeFilter) => {
|
||||
return httpFetch<WorkLoad.LabelResponse>({
|
||||
url: BASE_LABEL_API + "/api/v1/label_server/workload/label_statistics/list",
|
||||
method: "GET",
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 审核1工作量统计
|
||||
export const getReview1StatisticsList = (params: TimeFilter) => {
|
||||
return httpFetch<WorkLoad.Review1Response>({
|
||||
url:
|
||||
BASE_LABEL_API + "/api/v1/label_server/workload/review1_statistics/list",
|
||||
method: "GET",
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 审核2工作量统计
|
||||
export const getReview2StatisticsList = (params: TimeFilter) => {
|
||||
return httpFetch<WorkLoad.Review2Response>({
|
||||
url:
|
||||
BASE_LABEL_API + "/api/v1/label_server/workload/review2_statistics/list",
|
||||
method: "GET",
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 结算表格列表
|
||||
export const getDownloadLog = () => {
|
||||
return httpFetch<any[]>({
|
||||
url: BASE_LABEL_API + "/api/v1/label_server/workload/settlement_form/list",
|
||||
method: "GET",
|
||||
})
|
||||
}
|
||||
|
||||
// 导出结算表格
|
||||
export const exportSettlementForm = (params: {
|
||||
year: number
|
||||
month: number
|
||||
}) => {
|
||||
return httpFetch<Blob>({
|
||||
url:
|
||||
BASE_LABEL_API + "/api/v1/label_server/workload/settlement_form/export",
|
||||
method: "GET",
|
||||
data: params,
|
||||
isDownload: true,
|
||||
})
|
||||
}
|
||||
|
||||
// 下载结算表格
|
||||
export const downloadSettlementForm = (params: { id: number }) => {
|
||||
return httpFetch<Blob>({
|
||||
url:
|
||||
BASE_LABEL_API + "/api/v1/label_server/workload/settlement_form/download",
|
||||
method: "GET",
|
||||
data: params,
|
||||
isDownload: true,
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user