From 03080e12de7de3fec89b2f77fcf9f73c02bc6cf0 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期三, 30 十月 2024 14:33:12 +0800
Subject: [PATCH] 获取相似问题,group_type

---
 src/components/chat/components/playBar/PlayBar.vue |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/components/chat/components/playBar/PlayBar.vue b/src/components/chat/components/playBar/PlayBar.vue
index 9d22026..6c36c6f 100644
--- a/src/components/chat/components/playBar/PlayBar.vue
+++ b/src/components/chat/components/playBar/PlayBar.vue
@@ -1,10 +1,11 @@
 <template>
-	<div class="playInput hl_input rounded-b-[22px] input-border input-shadow" :class="{ 'rounded-t-[22px]': !currentGroupTypeIsShow }">
+	<div class="playInput hl_input rounded-[22px] input-border input-shadow" >
 		<!-- 搴旂敤鍦烘櫙 -->
-		<div v-if="!currentGroupTypeIsShow" class="application-scenarios absolute bottom-[114%] left-4">
+		<div class="application-scenarios absolute bottom-[114%] left-4">
 			<div class="flex-items-center space-x-2">
 				<div
-					class="border border-gray-400 border-solid h-8 flex-items-center px-3 py-2 rounded-2xl cursor-pointer space-x-1 hover:bg-[#c5e0ff] hover:text-[#1c86ff]"
+					class="border border-gray-400 border-solid h-8 flex-items-center px-3 py-2 rounded-2xl cursor-pointer space-x-1 hover:bg-[#cae3ff]"
+					:class="{ 'bg-[#c5e0ff]': activeGroupType === item, '!text-[#1c86ff]': activeGroupType === item }"
 					v-for="item in groupTypeList"
 					@click="groupTypeClick(item)"
 				>
@@ -14,8 +15,7 @@
 			</div>
 		</div>
 		<!-- 褰撳墠搴旂敤鍦烘櫙 -->
-		<div
-			v-else
+		<!-- <div
 			class="bg-[#f9fafb] rounded-t-[22px] absolute bottom-[100%] left-0 w-full input-border h-11 flex-items-center justify-between text-[14px]"
 			style="padding: 4px 4px 4px 18px; border-bottom: none"
 		>
@@ -29,7 +29,7 @@
 					class="ywifont ywicon-guanbi mr-3 rounded-sm p-1 hover:bg-[#eaebec] cursor-pointer"
 				></span>
 			</el-tooltip>
-		</div>
+		</div> -->
 		<div class="assembly flex">
 			<el-button title="鎻掍欢鑿滃崟" class="label flex items-center cursor-pointer" link>
 				<img src="/static/images/wave/PlugIn.png" class="set-icon box-border" />
@@ -213,6 +213,7 @@
 	lastIsFinish = false;
 	const res = await querySimilarityHistory({
 		question: text,
+		group_type:activeGroupType.value
 	});
 	lastIsFinish = true;
 	const handleValues = res?.values ?? [];

--
Gitblit v1.9.3