From 7c3df89867ab9fa019c6a5fae6d309763d14d26c Mon Sep 17 00:00:00 2001 From: yangyin <1850366751@qq.com> Date: 星期四, 17 十月 2024 11:13:29 +0800 Subject: [PATCH] 新增测试按钮 --- src/views/project/yw/systemManage/questionMgr/RecommendQuestions.vue | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-) diff --git a/src/views/project/yw/systemManage/questionMgr/RecommendQuestions.vue b/src/views/project/yw/systemManage/questionMgr/RecommendQuestions.vue index a9542ba..a753618 100644 --- a/src/views/project/yw/systemManage/questionMgr/RecommendQuestions.vue +++ b/src/views/project/yw/systemManage/questionMgr/RecommendQuestions.vue @@ -43,7 +43,7 @@ <div class="mt10 overflow-auto h100" v-show="finalTerminologyList.length > 0"> <div class="w100 pb-[20px]" v-for="item in finalTerminologyList" :key="item.sample_id"> <div - class="cursor-pointer flex box-border p-[12px] w100 rounded bg-[#f5f7fd] transition-[background-color .2s]" + class="cursor-pointer flex box-border p-[12px] w-full rounded bg-[#f5f7fd] transition-[background-color .2s]" @click="changeExample(item)" > <i @@ -56,9 +56,31 @@ {{ item.sample_question }} </div> </div> + <div class="ml-6 min-w-0 flex items-center"> + <el-tooltip effect="dark" content="瀵硅瘽娴嬭瘯" placement="top"> + <i class="ywifont ywicon-ceshi !text-[20px] text-blue-400 cursor-pointer" @click="openChatTest(item)"></i> + </el-tooltip> + </div> </div> </div> </div> + <div + v-if="chatTestIsShow" + ref="draggableChatRef" + :style="style" + class="fixed z-50 w-[700px] h-[800px] flex flex-col bg-[rgb(239,244,253)] right-0 bottom-0 rounded-lg" + > + <div ref="chatDragHandlerRef" class="flex-0"> + <div class="flex items-center justify-between py-2 px-4"> + <div class="font-bold cursor-move"> + WI姘村姟鏅鸿兘绠″鈥斺�斻�恵{ chatTestMapRow?.sample_title }}銆戞祴璇� + <!-- <img src="/static/images/logo/logo-mini.svg" width="10" height="10" /> --> + </div> + <i class="ywifont ywicon-guanbi font-[10px] font-bold cursor-pointer" @click="closeChatTest"></i> + </div> + </div> + <Chat ref="chatRef" class="flex-auto px-2" :questionApi="questionAi"> </Chat> + </div> <div class="w100 h100" v-show="finalTerminologyList.length == 0"><el-empty description="鏆傛棤鏁版嵁" class="h100" /></div> </div> </template> -- Gitblit v1.9.3