From 310fb9d3c188f23023d0e9b20ad08a19b08425d9 Mon Sep 17 00:00:00 2001 From: b2894lxlx <517289602@qq.com> Date: Fri, 15 May 2026 18:51:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E8=A1=A8=E6=A0=BC=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ai/aiCloudFile/index.ts | 16 ++- src/api/ai/aiCloudFile/model/index.ts | 20 ++++ src/views/oa/oaCompany/index.vue | 74 +++++++++++++- src/views/pwl/pwlProjectLibrary/index.vue | 113 ++++++++++++++++++---- 4 files changed, 200 insertions(+), 23 deletions(-) diff --git a/src/api/ai/aiCloudFile/index.ts b/src/api/ai/aiCloudFile/index.ts index 0f98136..cb9ded2 100644 --- a/src/api/ai/aiCloudFile/index.ts +++ b/src/api/ai/aiCloudFile/index.ts @@ -81,4 +81,18 @@ export async function getAiCloudFile(id: number) { return res.data.data; } return Promise.reject(new Error(res.data.message)); -} \ No newline at end of file +} + +/** + * 修改AI云文件表 + */ +export async function updateAiCloudFile(data: AiCloudFile) { + const res = await request.put>( + MODULES_API_URL + '/ai/file', + data + ); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/src/api/ai/aiCloudFile/model/index.ts b/src/api/ai/aiCloudFile/model/index.ts index 00a1ae3..5239f4d 100644 --- a/src/api/ai/aiCloudFile/model/index.ts +++ b/src/api/ai/aiCloudFile/model/index.ts @@ -22,6 +22,26 @@ export interface AiCloudFile { fileUrl?: string; // 文件扩展名 fileExt?: string; + // 制度标题 + title?: string; + // 发文字号 + issueNumber?: string; + // 版本号 + version?: string; + // 成文日期 + documentDate?: string; + // 生效日期 + effectiveDate?: string; + // 废止日期 + abolishDate?: string; + // 适用业务范围 + businessScope?: string; + // 关联制度 + relatedDocuments?: string; + // 适用区域 + region?: string; + // 备注 + comments?: string; // 上传时间 uploadTime?: string; // 排序(数字越小越靠前) diff --git a/src/views/oa/oaCompany/index.vue b/src/views/oa/oaCompany/index.vue index 87c5e48..5b3362d 100644 --- a/src/views/oa/oaCompany/index.vue +++ b/src/views/oa/oaCompany/index.vue @@ -174,6 +174,8 @@ - + @@ -148,6 +147,8 @@