wujingjing
2024-11-06 ccd7df4fbb147564004081980b394e60665349a2
对话禁用查询
已修改7个文件
25 ■■■■ 文件已修改
src/components/chat/Chat.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/chatComponents/common.ts 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/chatComponents/summaryCom/SummaryCom.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/chatComponents/summaryCom/components/recordSet/RecordSet.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/chatComponents/summaryCom/components/recordSet/components/TimeRange.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/chatComponents/summaryCom/components/recordSetTable/components/StringInput.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/Chat.vue
@@ -89,6 +89,7 @@
                                                    :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"
src/components/chat/chatComponents/common.ts
@@ -57,6 +57,9 @@
    },
    conclusion:{
        type:Array as PropType<Array<any>>
    },
    isTalking:{
        type:Boolean
    }
} as const);
export type ChatComPropsType = ExtractPropTypes<typeof chatComProps>;
src/components/chat/chatComponents/summaryCom/SummaryCom.vue
@@ -13,6 +13,7 @@
                    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">
src/components/chat/chatComponents/summaryCom/components/recordSet/RecordSet.vue
@@ -14,7 +14,7 @@
                    :data="item"
                    :originData="originData"
                    @change="(val) => handleQueryChange(val, item)"
                    :disabled="chartLoading"
                    :disabled="chartLoading ||disabled"
                ></component>
            </template>
            <slot> </slot>
@@ -104,6 +104,10 @@
        type: Boolean,
        default: true,
    },
    disabled:{
        type:Boolean,
        default:false,
    }
}) as {
    data: any;
    summaryIndex: number;
src/components/chat/chatComponents/summaryCom/components/recordSet/components/TimeRange.vue
@@ -105,6 +105,7 @@
};
const quickPickValue = ref<TimeRangeEnum>(null);
const quickPickRangeClick = (val: TimeRangeEnum) => {
    if (props.disabled) return;
    if (quickPickValue.value === val) return;
    quickPickValue.value = val;
@@ -114,6 +115,8 @@
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();
@@ -122,6 +125,8 @@
};
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();
src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue
@@ -13,6 +13,7 @@
                    :data="item"
                    @change="(val) => handleQueryChange(val, item)"
                    :originData="originData"
                    :disabled="disabled"
                ></component>
            </template>
@@ -133,6 +134,10 @@
        type: Boolean,
        default: true,
    },
    disabled: {
        type: Boolean,
        default: false,
    },
});
const [DefineColumns, ReuseColumns] = createReusableTemplate<{
src/components/chat/chatComponents/summaryCom/components/recordSetTable/components/StringInput.vue
@@ -1,7 +1,7 @@
<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>
@@ -12,7 +12,7 @@
})
const emit = defineEmits(['change'])
const props = defineProps(['data'])
const props = defineProps(['data','disabled'])
const modelValue = defineModel({
    type:String,
    default:''