From 2c6106c869ddd434fc0239dd6c4a902ad6c179f2 Mon Sep 17 00:00:00 2001 From: caiyuchao Date: Mon, 11 Aug 2025 09:49:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A6=96=E9=A1=B5=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=88=B0=E6=9C=9F=E6=8F=90=E9=86=92=E5=92=8C=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E8=BF=9B=E5=B1=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web-antd/src/api/license/comment/index.ts | 6 ++ .../web-antd/src/api/license/license/index.ts | 9 +++ apps/web-antd/src/views/dashboard/index.vue | 70 +++++++++++++------ 3 files changed, 63 insertions(+), 22 deletions(-) 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 () => { --> - + - +
+ +
+