feat:项目管理-审计内容1-新增生成领导班子列表分析表
This commit is contained in:
@@ -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('导出失败'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成八项规定对比分析表
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user