feat 项目中心

This commit is contained in:
Ironsp
2026-10-09 11:41:50 +08:00
parent 1bbbe50bd9
commit 1187f20fb1
3 changed files with 7 additions and 10 deletions

View File

@@ -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 ?? [])
}
// ─────────────────────────────────────────────────────────────────────────────

View File

@@ -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> {

View File

@@ -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 {