diff --git a/apps/web-antd/src/api/license/comment/index.ts b/apps/web-antd/src/api/license/comment/index.ts index 457a77f..c0be6e2 100644 --- a/apps/web-antd/src/api/license/comment/index.ts +++ b/apps/web-antd/src/api/license/comment/index.ts @@ -17,6 +17,7 @@ export namespace CommentApi { depth?: number; // 评论深度 content?: string; // 评论内容 children?: Comment[]; // 子评论 + projectName?: string; // 项目名称 } } @@ -27,6 +28,11 @@ export function getCommentTree(projectId: number, sort: boolean = false) { ); } +/** 查询评论最新列表 */ +export function getLatestCommentList() { + return requestClient.get(`/license/comment/latest`); +} + /** 新增评论 */ export function createComment(data: CommentApi.Comment) { return requestClient.post('/license/comment/create', data); diff --git a/apps/web-antd/src/api/license/license/index.ts b/apps/web-antd/src/api/license/license/index.ts index 88c1627..7f1b1fc 100644 --- a/apps/web-antd/src/api/license/license/index.ts +++ b/apps/web-antd/src/api/license/license/index.ts @@ -28,6 +28,8 @@ export namespace LicenseApi { oldLicense: License; hasHistory: boolean; showUpload?: boolean; // 是否显示上传按钮 + customerName?: string; // 客户名称 + projectName?: string; // 项目名称 } export interface NeCode { id: number; // 主键 @@ -57,6 +59,13 @@ export function getLicenseHistory(id: number) { ); } +/** 查询License到期 */ +export function getLicenseExpiry() { + return requestClient.get( + `/license/license/list-expiry`, + ); +} + /** 新增License */ export function createLicense(data: LicenseApi.License) { return requestClient.post('/license/license/create', data); diff --git a/apps/web-antd/src/views/dashboard/index.vue b/apps/web-antd/src/views/dashboard/index.vue index 170f0aa..9025627 100644 --- a/apps/web-antd/src/views/dashboard/index.vue +++ b/apps/web-antd/src/views/dashboard/index.vue @@ -1,9 +1,9 @@ @@ -63,26 +91,24 @@ onMounted(async () => { --> - + - +
+ +
+