From 2c5e4638f84676fa1e3949a62212d2a4a97e784a Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期四, 19 六月 2025 15:33:33 +0800
Subject: [PATCH] 转炉大模型功能完善

---
 src/views/ai/dashboard/components/conversation/CommonConversationList.vue |    4 +++-
 src/views/ai/dashboard/zhuanlu/index.vue                                  |    7 +++----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/views/ai/dashboard/components/conversation/CommonConversationList.vue b/src/views/ai/dashboard/components/conversation/CommonConversationList.vue
index 590e88c..fc32a5a 100644
--- a/src/views/ai/dashboard/components/conversation/CommonConversationList.vue
+++ b/src/views/ai/dashboard/components/conversation/CommonConversationList.vue
@@ -128,7 +128,9 @@
     type: Boolean || null,
     required: true
   },
-  defaultMessage: {}
+  defaultMessage: {
+    type: Object as PropType<ChatMessageVO>
+  }
 })
 
 // 定义钩子
diff --git a/src/views/ai/dashboard/zhuanlu/index.vue b/src/views/ai/dashboard/zhuanlu/index.vue
index 8c62b93..eeb2378 100644
--- a/src/views/ai/dashboard/zhuanlu/index.vue
+++ b/src/views/ai/dashboard/zhuanlu/index.vue
@@ -275,10 +275,9 @@
             </el-tooltip>
           </div>
         </div>
-        <!-- 历史建议 -->
+        <!-- 推理结论 -->
         <ScheduleSuggestDialog
-          ref="scheduleSuggestRef"
-        />
+          ref="scheduleSuggestRef" />
       </div>
     </div>
   </div>
@@ -294,6 +293,7 @@
 import MessageLoading from '../components/message/MessageLoading.vue'
 import ConversationList from "../components/conversation/ConversationList.vue";
 import HistoryMessageDialog from "../components/message/HistoryMessageDialog.vue"
+import ScheduleSuggestDialog from "../components/suggest/ScheduleSuggestDialog.vue"
 import * as echarts from "echarts";
 import {formatToDateTime} from "@/utils/dateUtil";
 import { formatReasoningContent } from '@/views/ai/utils/utils'
@@ -861,7 +861,6 @@
   const spliceText = content.includes("总结:") ? "总结:" : "结论:";
   const regex = new RegExp(`^([\\s\\S]*?)${spliceText}([\\s\\S]*)$`);
   const match = content.match(regex);
-  console.log(match)
   const result = match ? match[2].trim() : '';
   return result
 }

--
Gitblit v1.9.3