| | |
| | | v-for="(multiChatItem, multiChatIndex) in subItem.subStep" |
| | | > |
| | | <component |
| | | |
| | | :order="`${stepIndex + 1}-${multiChatIndex + 1}`" |
| | | :item="multiChatItem" |
| | | :is="multiChatTypeMapCom[multiChatItem.type]" |
| | | @change="multiChatChange" |
| | | :disabled="!(stepIndex + 1 === msg?.stepGroup?.[index].value.length && isTalking && isLast)" |
| | | /> |
| | | |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | 为äºè§£å³è¿ä¸ªé®é¢ï¼çå° msg.historyId å卿¶ï¼å渲æ recordSetTable |
| | | --> |
| | | <component |
| | | |
| | | v-if="msg.content?.values?.[index] && msg.historyId" |
| | | :reportIndex="index" |
| | | :conclusion="msg.content.values[index].conclusion" |
| | |
| | | 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 å½åæ¶æ¯ */ |
| | |
| | | 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 { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="flex flex-col gap-1"> |
| | | <span class="text-gray-600 font-normal">{{ `${order} ${item?.data?.title}` }}</span> |
| | | <TimeRange :disabled="disabled" @change="timeRangeChange" ></TimeRange> |
| | | </div> |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import { definePropType } from 'element-plus/es/utils'; |
| | | import type { PropType } from 'vue'; |
| | | import TimeRange from '../summaryCom/components/recordSet/components/TimeRange.vue'; |
| | | |
| | | const props = defineProps({ |
| | | order: { |
| | | type: String, |
| | | default: '', |
| | | }, |
| | | item: { |
| | | type: Object as PropType<any>, |
| | | }, |
| | | disabled: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | }); |
| | | const emit = defineEmits(['change']); |
| | | // const timeRangeValue = defineModel({ |
| | | // type: definePropType<[string, string]>(Array), |
| | | // }); |
| | | const timeRangeChange = (val: [string, string]) => { |
| | | if (props.disabled) return; |
| | | emit( |
| | | 'change', |
| | | props.item?.data?.reply_id, |
| | | { |
| | | start_time: val[0], |
| | | end_time: val[1], |
| | | } |
| | | ); |
| | | }; |
| | | </script> |
| | |
| | | import { MultiChatType } from '../../model/types'; |
| | | import Select from './Select.vue'; |
| | | import InputSelect from './InputSelect.vue'; |
| | | import TimeRange from './TimeRange.vue'; |
| | | export const multiChatTypeMapCom = { |
| | | [MultiChatType.Select]: Select, |
| | | [MultiChatType.InputSelect]: InputSelect, |
| | | [MultiChatType.TimeRange]: TimeRange, |
| | | }; |
| | | |
| | |
| | | InputSelect = 'input-select', |
| | | Summary = 'summary', |
| | | Result = 'result', |
| | | TimeRange = 'time_range', |
| | | } |
| | | type SubStep = { |
| | | data: any; |