feat(pwl):三重一大内容生成添加文件选择功能
This commit is contained in:
@@ -17,6 +17,27 @@ export async function generateDecisionTable(data: {
|
||||
data
|
||||
);
|
||||
|
||||
if (res.data.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成三重一大制度对比分析表
|
||||
*/
|
||||
export async function generateTripleOneTable(data: {
|
||||
kbIds?: string;
|
||||
libraryIds?: string;
|
||||
projectLibrary?: string;
|
||||
history?: string;
|
||||
suggestion?: string;
|
||||
}) {
|
||||
const res = await request.post<ApiResult<any>>(
|
||||
MODULES_API_URL + '/ai/auditContent3/generateTripleOneTable',
|
||||
data
|
||||
);
|
||||
|
||||
if (res.data.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
|
||||
@@ -103,6 +103,8 @@ export interface PwlProject {
|
||||
analysisLibrary?: string;
|
||||
// 项目资料库
|
||||
projectLibrary?: string;
|
||||
// 公司Id
|
||||
companyId?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -502,6 +502,7 @@ const chooseType = (data: DictData) => {
|
||||
const onCompany = (item: OaCompany) => {
|
||||
console.log('选择的公司:', item);
|
||||
form.name = item.companyName;
|
||||
form.companyId = item.companyId;
|
||||
form.kbId = item.kbId;
|
||||
form.libraryIds = item.libraryIds;
|
||||
// 需要等待资料库列表加载完成后再设置回显
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user