fix: 1.接入ai_suggestion.
2. 接入合同起草功能。
This commit is contained in:
@@ -44,6 +44,7 @@ export interface ContractTemplate {
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
pdf_file_path?: string;
|
||||
placeholder_schema?: Record<string, any>; // 占位符配置 (JSONB)
|
||||
// 关联的分类信息
|
||||
category?: ContractCategory;
|
||||
}
|
||||
|
||||
@@ -317,11 +317,11 @@ export async function getEntryModules(userRole: string | null | undefined, userA
|
||||
|
||||
// console.log('✅ [getEntryModules] 入口模块数据(含文档类型):', JSON.stringify(modulesWithTypes));
|
||||
|
||||
// 默认会多加一个 智慧法务大模型 入口 默认所有人都可以用,看到
|
||||
// 默认会多加一个 智慧法务助手 入口 默认所有人都可以用,看到
|
||||
modulesWithTypes.push({
|
||||
"id": 0,
|
||||
"name": "智慧法务大模型",
|
||||
"description": "智慧法务大模型",
|
||||
"name": "智慧法务助手",
|
||||
"description": "智慧法务助手",
|
||||
"path": "entryModule/assistant",
|
||||
"areas": [],
|
||||
"created_at": "2025-11-18T21:33:33.857417+08:00",
|
||||
|
||||
@@ -14,6 +14,7 @@ export interface PromptTemplate {
|
||||
status: number;
|
||||
version: string;
|
||||
created_by: number | null;
|
||||
created_by_username?: string; // 创建者用户名
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
is_active?: boolean;
|
||||
@@ -151,6 +152,7 @@ export function convertToUITemplate(template: PromptTemplate): PromptTemplateUI
|
||||
status: mapStatusToUI(template.status),
|
||||
version: template.version,
|
||||
created_by: template.created_by || 0,
|
||||
created_by_username: template.created_by_username,
|
||||
created_at: formatDate(template.created_at),
|
||||
updated_at: formatDate(template.updated_at),
|
||||
template_code: template.template_code || undefined,
|
||||
|
||||
@@ -196,7 +196,7 @@ export async function getRoles(params?: {
|
||||
description: role.description || '',
|
||||
parent_role_id: role.parent_role_id || null,
|
||||
priority: role.priority || 0,
|
||||
is_system_role: role.is_system || false,
|
||||
is_system_role: (role.role_key == 'admin' || role.role_key == 'common') ? true : role.is_system || false,
|
||||
created_at: role.created_at,
|
||||
updated_at: role.updated_at
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user