feat:项目管理-审计内容1-新增生成领导班子列表分析表

This commit is contained in:
2025-11-24 09:55:22 +08:00
parent 96ae9709cd
commit c8eb5bbd2d
3 changed files with 260 additions and 30 deletions

View File

@@ -2,6 +2,51 @@ import request from '@/utils/request';
import type { ApiResult } from '@/api';
import { MODULES_API_URL } from '@/config/setting';
/**
* 生成领导班子列表分析表
*/
export async function generateLeaderListTable(data: {
kbIds?: string;
libraryIds?: string;
projectLibrary?: string;
history?: string;
suggestion?: string;
docList?: any[];
fileList?: any[];
}) {
const res = await request.post<ApiResult<any>>(
MODULES_API_URL + '/ai/auditContent1/generateLeaderListTable',
data
);
if (res.data.code === 0) {
return res.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导出领导班子列表分析表到Excel
*/
export async function exportLeaderListTable(data: {
data?: any[];
companyName?: string;
auditTime?: string;
}) {
const res = await request.post(
MODULES_API_URL + '/ai/auditContent1/exportLeaderListTable',
data,
{
responseType: 'blob'
}
);
if (res.status === 200) {
return res.data;
}
return Promise.reject(new Error('导出失败'));
}
/**
* 生成八项规定对比分析表
*/