| | |
| | | :is="answerTypeMapCom[item.content.type]" |
| | | :data="item.content.values" |
| | | :originData="item" |
| | | :isTalking="isTalking && msgIndex === computedMessageList.length - 1" |
| | | /> |
| | | <div |
| | | v-if="item.role === RoleEnum.assistant && item.content.origin?.ext_call_list" |
| | |
| | | }, |
| | | conclusion:{ |
| | | type:Array as PropType<Array<any>> |
| | | }, |
| | | isTalking:{ |
| | | type:Boolean |
| | | } |
| | | } as const); |
| | | export type ChatComPropsType = ExtractPropTypes<typeof chatComProps>; |
| | |
| | | chartHeight="20rem" |
| | | :tableLimitHeight="tableLimitHeight" |
| | | @updateQuery="(res) => updateRecordSet(index, res)" |
| | | :disabled="isTalking" |
| | | ></component> |
| | | |
| | | <div class="flex flex-col" v-if="showReportIndex.includes(index) && conclusion?.length > 0"> |
| | |
| | | :data="item" |
| | | :originData="originData" |
| | | @change="(val) => handleQueryChange(val, item)" |
| | | :disabled="chartLoading" |
| | | :disabled="chartLoading ||disabled" |
| | | ></component> |
| | | </template> |
| | | <slot> </slot> |
| | |
| | | type: Boolean, |
| | | default: true, |
| | | }, |
| | | disabled:{ |
| | | type:Boolean, |
| | | default:false, |
| | | } |
| | | }) as { |
| | | data: any; |
| | | summaryIndex: number; |
| | |
| | | }; |
| | | const quickPickValue = ref<TimeRangeEnum>(null); |
| | | const quickPickRangeClick = (val: TimeRangeEnum) => { |
| | | if (props.disabled) return; |
| | | if (quickPickValue.value === val) return; |
| | | |
| | | quickPickValue.value = val; |
| | |
| | | |
| | | const offsetClickIsAllow = computed(() => !!dateValue.value && !props.disabled); |
| | | const preDayClick = () => { |
| | | if (props.disabled) return; |
| | | |
| | | if (!dateValue.value) return; |
| | | dateValue.value[0] = moment(dateValue.value[0]).subtract(1, 'day').format('YYYY-MM-DD HH:mm:ss'); |
| | | dateChange(); |
| | |
| | | }; |
| | | |
| | | const nextDayClick = () => { |
| | | if (props.disabled) return; |
| | | |
| | | if (!dateValue.value) return; |
| | | dateValue.value[1] = moment(dateValue.value[1]).add(1, 'day').format('YYYY-MM-DD HH:mm:ss'); |
| | | dateChange(); |
| | |
| | | :data="item" |
| | | @change="(val) => handleQueryChange(val, item)" |
| | | :originData="originData" |
| | | :disabled="disabled" |
| | | ></component> |
| | | </template> |
| | | |
| | |
| | | type: Boolean, |
| | | default: true, |
| | | }, |
| | | disabled: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | }); |
| | | |
| | | const [DefineColumns, ReuseColumns] = createReusableTemplate<{ |
| | |
| | | <template> |
| | | <div class="flex-items-center"> |
| | | <span class="flex-0 mr-2" v-if="data?.title">{{ data?.title }}</span> |
| | | <el-input v-model="modelValue" @input="stringInputInput" clearable></el-input> |
| | | <el-input :disabled="disabled" v-model="modelValue" @input="stringInputInput" clearable></el-input> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | }) |
| | | |
| | | const emit = defineEmits(['change']) |
| | | const props = defineProps(['data']) |
| | | const props = defineProps(['data','disabled']) |
| | | const modelValue = defineModel({ |
| | | type:String, |
| | | default:'' |