yangyin
2024-11-04 2508dc2b3e63695e6fe9fbdfe099ce12f6f0a6cc
构建用户设置常用语静态页面
已修改1个文件
36 ■■■■■ 文件已修改
src/components/chat/Chat.vue 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/Chat.vue
@@ -33,7 +33,7 @@
                                                @click="toggleStepList(item)"
                                                class="cursor-pointer border border-gray-300 border-solid w-fit px-2 flex items-center space-x-2 rounded-lg mb-3 hover:bg-gray-100 active:bg-gray-200"
                                            >
                                                <span >
                                                <span>
                                                    {{ toggleStepLabel(item) }}
                                                </span>
                                                <span class="ywifont" :class="{ 'ywicon-unfold': !item.stepIsShow, 'ywicon-fold': item.stepIsShow }"></span>
@@ -79,8 +79,38 @@
                                                </div>
                                            </div>
                                            <template v-else>
                                                <component :is="answerTypeMapCom[item.content.type]" :data="item.content.values" :originData="item" />
                                                <el-popover placement="bottom-start" trigger="hover" :popper-style="{ minWidth: '70px' }" :width="70">
                                                    <template #default>
                                                        <div class="action" v-if="item.role === RoleEnum.user">
                                                            <div class="flex items-center justify-center size-[20px]">
                                                                <i
                                                                    class="p-2 ywifont ywicon-copy cursor-pointer hover:text-[#0284ff] font-medium !text-[15px]"
                                                                    @click="copyUserClick(item)"
                                                                />
                                                            </div>
                                                            <div class="flex items-center justify-center size-[20px]">
                                                                <i
                                                                    class="p-2 ywifont ywicon-cubelifangti cursor-pointer hover:text-[#0284ff] text-[#000] font-[590] !text-[15px]"
                                                                    @click="setCommonQuestionClick(item)"
                                                                />
                                                            </div>
                                                        </div>
                                                    </template>
                                                    <template #reference>
                                                        <component
                                                            :is="answerTypeMapCom[item.content.type]"
                                                            v-if="item.role === RoleEnum.user"
                                                            :data="item.content.values"
                                                            :originData="item"
                                                        />
                                                    </template>
                                                </el-popover>
                                                <component
                                                    :is="answerTypeMapCom[item.content.type]"
                                                    v-if="item.role !== RoleEnum.user"
                                                    :data="item.content.values"
                                                    :originData="item"
                                                />
                                                <div
                                                    v-if="item.role === RoleEnum.assistant && item.content.origin?.ext_call_list"
                                                    class="flex font-bold items-center mt-6"