@@ -8,6 +8,13 @@ import icon_alarm_clock_colorful from '@/assets/svg/icon_alarm-clock_colorful.sv
88import { chatApi , type ChatLogHistory } from ' @/api/chat.ts'
99import { useI18n } from ' vue-i18n'
1010import { debounce } from ' lodash-es'
11+ import LogTerm from ' ./execution-component/LogTerm.vue'
12+ import LogSQLSample from ' ./execution-component/LogSQLSample.vue'
13+ import LogCustomPrompt from ' ./execution-component/LogCustomPrompt.vue'
14+ import LogDataQuery from ' ./execution-component/LogDataQuery.vue'
15+ import LogChooseTable from ' ./execution-component/LogChooseTable.vue'
16+ import LogGeneratePicture from ' ./execution-component/LogGeneratePicture.vue'
17+ import LogWithAi from ' @/views/chat/execution-component/LogWithAi.vue'
1118
1219const { t } = useI18n ()
1320const logHistory = ref <ChatLogHistory >({})
@@ -76,13 +83,8 @@ defineExpose({
7683 <div class =" title" >{{ t('parameter.execution_details') }}</div >
7784
7885 <div class =" list" >
79- <div
80- v-for =" (ele, index) in logHistory.steps"
81- :key =" ele.duration"
82- class =" list-item"
83- @click =" handleExpand(index)"
84- >
85- <div class =" header" >
86+ <div v-for =" (ele, index) in logHistory.steps" :key =" ele.duration" class =" list-item" >
87+ <div class =" header" @click =" handleExpand(index)" >
8688 <div class =" name" >
8789 <el-icon class =" shrink" :class =" expandIds.includes(index) && 'expand'" size =" 10" >
8890 <icon _expand_right_filled ></icon _expand_right_filled >
@@ -104,7 +106,15 @@ defineExpose({
104106 </el-icon >
105107 </div >
106108 </div >
107- <div class =" content" ></div >
109+ <div v-if =" expandIds.includes(index)" class =" content" >
110+ <LogTerm v-if =" ele.operate_key === 'FILTER_TERMS'" :item =" ele" />
111+ <LogSQLSample v-else-if =" ele.operate_key === 'FILTER_SQL_EXAMPLE'" :item =" ele" />
112+ <LogCustomPrompt v-else-if =" ele.operate_key === 'FILTER_CUSTOM_PROMPT'" :item =" ele" />
113+ <LogChooseTable v-else-if =" ele.operate_key === 'CHOOSE_TABLE'" :item =" ele" />
114+ <LogDataQuery v-else-if =" ele.operate_key === 'EXECUTE_SQL'" :item =" ele" />
115+ <LogGeneratePicture v-else-if =" ele.operate_key === 'GENERATE_PICTURE'" :item =" ele" />
116+ <LogWithAi v-else :item =" ele" />
117+ </div >
108118 </div >
109119 </div >
110120 </el-drawer >
@@ -175,13 +185,13 @@ defineExpose({
175185 }
176186
177187 100% {
178- height : 504 px ;
188+ min- height : 54 px ;
179189 }
180190 }
181191
182192 & :has(.expand ) {
183- height : 504 px ;
184- animation : expand 0.5s ;
193+ min- height : 54 px ;
194+ // animation: expand 0.5s;
185195 }
186196
187197 .shrink {
0 commit comments