feat 项目中心
This commit is contained in:
@@ -14,7 +14,7 @@ import { formatDate } from '@/utils/format'
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
// GET /web/requirementPool/list → 控制器 ProjectRequirementUserController#list
|
||||
// → 服务层 ProjectRequirementServiceImpl#queryUserPageList
|
||||
// 返回 { requirementPage: { total, rows: RdProjectVo[] }, requirementStatistics: null }
|
||||
// 返回 { total, rows: RdProjectVo[] }
|
||||
// key → 模糊匹配 projectName / projectNo / requirementDesc
|
||||
// pageNum/pageSize → 分页参数 PageQuery
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
@@ -83,7 +83,7 @@ export function getCompletedProjects(): Promise<RdProjectVo[]> {
|
||||
pageSize: 200,
|
||||
status: 'COMPLETED',
|
||||
},
|
||||
}).then((result) => result?.requirementPage?.rows ?? [])
|
||||
}).then((result) => result?.rows ?? [])
|
||||
}
|
||||
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
@@ -85,9 +85,8 @@ export const useProjectStore = defineStore('project', () => {
|
||||
|
||||
async function fetchList(): Promise<void> {
|
||||
const result = await getProjectList(query.value)
|
||||
const page = result?.requirementPage
|
||||
list.value = page?.rows ?? []
|
||||
total.value = page?.total ?? 0
|
||||
list.value = result?.rows ?? []
|
||||
total.value = result?.total ?? 0
|
||||
}
|
||||
|
||||
async function fetchCompletedProjects(): Promise<void> {
|
||||
|
||||
4
src/types/business/project.d.ts
vendored
4
src/types/business/project.d.ts
vendored
@@ -57,12 +57,10 @@ export interface ProjectStatistics {
|
||||
businessTypeCounts?: ProjectBusinessTypeCount[] | null
|
||||
}
|
||||
|
||||
/** GET /web/requirementPool/list 的 data:TableDataInfo 形态(不再包 requirementPage) */
|
||||
export interface ProjectListResult {
|
||||
requirementPage?: {
|
||||
total: number
|
||||
rows: RdProjectVo[]
|
||||
} | null
|
||||
requirementStatistics?: ProjectStatistics | null
|
||||
}
|
||||
|
||||
export interface Milestone {
|
||||
|
||||
Reference in New Issue
Block a user