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