From 985aa40f5a3d15d4f196297697430d877b473e04 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期一, 06 一月 2025 13:53:48 +0800 Subject: [PATCH] 时间输入 --- src/components/chat/assistant/index.vue | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/chat/assistant/index.vue b/src/components/chat/assistant/index.vue index a361793..f410783 100644 --- a/src/components/chat/assistant/index.vue +++ b/src/components/chat/assistant/index.vue @@ -91,17 +91,11 @@ v-for="(multiChatItem, multiChatIndex) in subItem.subStep" > <component - v-if="multiChatItem.type === MultiChatType.Select" :order="`${stepIndex + 1}-${multiChatIndex + 1}`" :item="multiChatItem" :is="multiChatTypeMapCom[multiChatItem.type]" + @change="multiChatChange" :disabled="!(stepIndex + 1 === msg?.stepGroup?.[index].value.length && isTalking && isLast)" - /> - <component - v-else-if="multiChatItem.type === MultiChatType.Result" - :is="answerTypeMapCom['summary']" - :data="multiChatItem.data.content.values" - :originData="multiChatItem.data" /> </div> </div> @@ -115,7 +109,6 @@ 涓轰簡瑙e喅杩欎釜闂锛岀瓑鍒� msg.historyId 瀛樺湪鏃讹紝鍐嶆覆鏌� recordSetTable --> <component - v-if="msg.content?.values?.[index] && msg.historyId" :reportIndex="index" :conclusion="msg.content.values[index].conclusion" @@ -240,6 +233,7 @@ import { multiChatTypeMapCom } from '/@/components/chat/chatComponents/multiChat'; import { isSharePage } from '/@/stores/chatRoom'; import { ErrorCode } from '/@/utils/request'; +import { question_stream_reply } from '/@/api/ai/chat'; const props = defineProps({ /** @description 褰撳墠娑堟伅 */ @@ -298,6 +292,14 @@ emit('shareMsg', item); }; //#endregion + +const multiChatChange = async (replyId: string, val: any) => { + const res = await question_stream_reply({ + start_time: val.start_time, + end_time: val.end_time, + reply_id: replyId, + }); +}; </script> <style scoped lang="scss"> pre { -- Gitblit v1.9.3