From 578928d66720a75e6d06611324532dcb711e079c Mon Sep 17 00:00:00 2001
From: gerson <1405270578@qq.com>
Date: 星期三, 22 一月 2025 10:36:16 +0800
Subject: [PATCH] 统计重复问题

---
 src/components/chat/Chat.vue                                                               |    2 --
 src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue |   17 ++++++++++-------
 src/components/chat/messageList/index.vue                                                  |    2 +-
 customer_list/ch/ai_html/views/extension/index.html                                        |    2 +-
 src/components/chat/chatComponents/summaryCom/SummaryCom.vue                               |    8 ++++----
 5 files changed, 16 insertions(+), 15 deletions(-)

diff --git a/customer_list/ch/ai_html/views/extension/index.html b/customer_list/ch/ai_html/views/extension/index.html
index 3c8d150..df69afd 100644
--- a/customer_list/ch/ai_html/views/extension/index.html
+++ b/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 {
diff --git a/src/components/chat/Chat.vue b/src/components/chat/Chat.vue
index edbcb0d..808f898 100644
--- a/src/components/chat/Chat.vue
+++ b/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;
diff --git a/src/components/chat/chatComponents/summaryCom/SummaryCom.vue b/src/components/chat/chatComponents/summaryCom/SummaryCom.vue
index be5c365..a113139 100644
--- a/src/components/chat/chatComponents/summaryCom/SummaryCom.vue
+++ b/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>
diff --git a/src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue b/src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue
index 59efb69..23cd988 100644
--- a/src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue
+++ b/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();
diff --git a/src/components/chat/messageList/index.vue b/src/components/chat/messageList/index.vue
index 107b96d..6029e7b 100644
--- a/src/components/chat/messageList/index.vue
+++ b/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"

--
Gitblit v1.9.3