fix(table): add daterange
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import httpFetch from "@/api/fetch"
|
||||
import { Project, ProjectDetail, ReviewUsers } from "./typing"
|
||||
import { BASE_LABEL_API } from "../const"
|
||||
import { Project, ProjectDetail, ReviewUsers } from "./typing"
|
||||
|
||||
// 获取项目列表
|
||||
export const getProjectList = (data: Project.ListRequest) => {
|
||||
@@ -138,11 +138,14 @@ export const regenerateProjectEmbedding = (data: { project_id: number }) => {
|
||||
}
|
||||
|
||||
// 获取个人参与项目
|
||||
export const getPersonProjectDashBoard = () => {
|
||||
export const getPersonProjectDashBoard = (
|
||||
params: Project.ReqPersonProjectDashBoard
|
||||
) => {
|
||||
return httpFetch<Array<Project.PersonProjectDashboardResponseItem>>({
|
||||
url:
|
||||
BASE_LABEL_API + `/api/v1/label_server/data_statistics/personal_project`,
|
||||
method: "GET",
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -296,6 +296,11 @@ export namespace Project {
|
||||
task: number
|
||||
}
|
||||
}
|
||||
export interface ReqPersonProjectDashBoard {
|
||||
start_date: string
|
||||
end_date: string
|
||||
}
|
||||
|
||||
/**
|
||||
* DetailResponse
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user