| | |
| | | <div class="header___lEPyH"> |
| | | <div class="chatHeader"> |
| | | <div class="chatHeaderBox"> |
| | | <span class="title">{{ agentTitle }}</span> |
| | | <!-- <span class="title">{{ agentTitle }}</span>--> |
| | | |
| | | <a-popover |
| | | position="bottom" |
| | | trigger="click" |
| | | > |
| | | <a-button border |
| | | >{{agentTitle}} |
| | | <icon-down style="margin-left: 4px" /> |
| | | </a-button> |
| | | <template #content> |
| | | <setName :activeSessionId="activeSessionId" @queryNewSessionDetail="queryNewSessionDetail"></setName> |
| | | <!-- <a-divider style="margin: 10px 0" />--> |
| | | </template> |
| | | </a-popover> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <!-- </template>--> |
| | | <!-- </a-upload>--> |
| | | <!-- </div>--> |
| | | <spa style="position: absolute;top:96px;left: 10px;z-index: 10000;cursor: pointer"> |
| | | <span style="position: absolute;top:96px;left: 10px;z-index: 10000;cursor: pointer"> |
| | | <icon-attachment size="28" @click="selectFile" style="color: #0960bd;" /> |
| | | <input |
| | | ref="fileInput" |
| | |
| | | style="display: none;" |
| | | @change="onFileSelected" |
| | | /> |
| | | </spa> |
| | | </span> |
| | | <div class="uploadFileList"> |
| | | <div class="files" v-for="(item,index) in uploaditemList" :key="index" |
| | | style="position: relative;width: 200px;margin-top: 10px;"> |
| | |
| | | style="background: var(--color-bg-2);padding:10px;border-radius: 10px" |
| | | > |
| | | <template #avatar> |
| | | <a-button type="text" :loading="onFileSelectedLoading" v-if="onFileSelectedLoading"></a-button> |
| | | <a-spin :loading="onFileSelectedLoading" v-if="onFileSelectedLoading"> |
| | | <template #icon> |
| | | <icon-sync /> |
| | | </template> |
| | | </a-spin> |
| | | <!-- <a-button type="text" :loading="onFileSelectedLoading" v-if="onFileSelectedLoading"></a-button>--> |
| | | <a-avatar v-if="!onFileSelectedLoading"> |
| | | <icon-file style="color: #0960bd" /> |
| | | </a-avatar> |
| | |
| | | </div> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | </div> |
| | | </template> |
| | | <script setup lang="ts"> |
| | |
| | | import agentSession from "@/views/sessionManager/components/agentSession.vue"; |
| | | import historySession from "@/views/sessionManager/components/historySession.vue"; |
| | | import smartAi from "@/views/sessionManager/components/smartAi.vue"; |
| | | import setName from "@/views/sessionManager/components/setName.vue"; |
| | | import EventBus from "@/utils/EventBus"; |
| | | import { |
| | | addSessionApi, |
| | |
| | | // displayedText.value = ""; |
| | | // queryNewSessionDetail(activeSessionId.value); |
| | | // } |
| | | |
| | | |
| | | }; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | const queryNewSessionDetail = async (id) => { |
| | | activeSessionId.value = id; |
| | | const { code, data } = await getSessionDetailsApi(id); |