gerson
2025-01-22 578928d66720a75e6d06611324532dcb711e079c
统计重复问题
已修改5个文件
31 ■■■■ 文件已修改
customer_list/ch/ai_html/views/extension/index.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/Chat.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/chatComponents/summaryCom/SummaryCom.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/messageList/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
customer_list/ch/ai_html/views/extension/index.html
@@ -274,7 +274,7 @@
                    };
                    const handleDownload = () => {
                        window.location.href = 'https://wi.beng35.com/download/wi-extension-1.0.5-chrome.zip';
                        window.location.href = 'https://wi.beng35.com/download/wi-extension-1.0.6-chrome.zip';
                    };
                    return {
src/components/chat/Chat.vue
@@ -401,9 +401,7 @@
    try {
        const [userItem, assistantItem] = addChatItem(content);
        resMsgContent = await questionAi(content.values);
        updateLoadIndex();
        userItem.historyId = questionRes?.history_id;
src/components/chat/chatComponents/summaryCom/SummaryCom.vue
@@ -1,7 +1,7 @@
<template>
    <div class="w-full space-y-3">
        <template v-if="parsedData && parsedData.length > 0">
            <template v-for="(item, index) in parsedData" :key="item.id">
        <div class="w-full space-y-3" v-if="parsedData && parsedData.length > 0">
            <div v-for="(item, index) in parsedData" :key="index">
                <!-- <el-button type="primary" v-if="showReportIndex.includes(index) && conclusion.length > 0" @click="showAgentReport(index)">报告</el-button> -->
                <component
                    ref="componentRef"
@@ -35,8 +35,8 @@
                    <!-- 过程输出 -->
                    <div v-show="item.reportIsShow" class="max-h-[2/3vh] markdown-it" v-html="md.render(getReport(index))"></div>
                </div>
            </template>
        </template>
            </div>
        </div>
        <el-empty v-else :image-size="200" class="!py-3">
            <!-- <template #description>
                <span > 暂无数据 </span>
src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue
@@ -4,8 +4,8 @@
        <div class="flex-0 flex-items-center mb-1 flex-wrap">
            <template v-if="visibleParams && visibleParams.length > 0 && showFilter">
                <component
                    class="flex-0 m-2 first-of-type:ml-0 "
                    :class="{ 'hidden': isMap && showMode2 === DisplayModeType2.Map }"
                    class="flex-0 m-2 first-of-type:ml-0"
                    :class="{ hidden: isMap && showMode2 === DisplayModeType2.Map }"
                    v-model="visibleParams[index].value"
                    v-for="(item, index) in visibleParams as any"
                    :key="item.id"
@@ -201,10 +201,13 @@
const isTotalTable = computed(() => checkIsTotalTable(props.data));
const checkHasAddRateCol = (current) => {
    return current.find((item) => item.title === '比例' && item.type === 'text');
};
const getTableCols = (propsData) => {
    const current = propsData?.cols ?? [];
    if (checkIsTotalTable(propsData)) {
    if (checkIsTotalTable(propsData) && !checkHasAddRateCol(current)) {
        current.push({
            title: '比例',
            type: 'text',
@@ -225,7 +228,8 @@
const getTableValues = (propsData) => {
    const agg_count_col = propsData?.agg_count_col;
    const current = (propsData?.values ?? []) as Array<any[]>;
    if (checkIsTotalTable(propsData)) {
    if (checkIsTotalTable(propsData)&& !current.find(item=>item[0]==='合计') ) {
        const last = current[current.length - 1];
        const lastItemIndex = last?.length > 0 ? last.length - 1 : 0;
        valueColIndex = agg_count_col ?? lastItemIndex;
@@ -1155,11 +1159,10 @@
const chartDlgIsShow = ref(false);
const equipCurveMapRow = ref(null);
const showCurve = (row) => {
    if(isSharePage.value) return;
    if(!row) return;
    if (isSharePage.value) return;
    if (!row) return;
    equipCurveMapRow.value = row;
    chartDlgIsShow.value = true;
};
const closeInfoWindow = () => {
    closeChartDlg();
src/components/chat/messageList/index.vue
@@ -1,6 +1,6 @@
<template>
    <div class="message-list pb-10">
        <div v-for="(item, msgIndex) of msgList" :key="`${item.historyId}_${item.role}`">
        <div v-for="(item, msgIndex) of msgList" :key="`${item.historyId ?? msgIndex}_${item.role}`">
            <UserMsg
                :msg="item"
                @shareClick="shareClick"