| | |
| | | <div class="header___lEPyH"> |
| | | <div class="chatHeader"> |
| | | <div class="chatHeaderBox"> |
| | | <!-- <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> |
| | | <a-button |
| | | type="text" |
| | | class="button" |
| | | style="color: #2a2a2b" |
| | | @click="handleClick()" |
| | | > |
| | | <template #icon> |
| | | <icon-edit /> |
| | | </template> |
| | | 修改名称 |
| | | </a-button> |
| | | <!-- <a-divider style="margin: 10px 0" />--> |
| | | </template> |
| | | </a-popover> |
| | | <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>--> |
| | | <!-- <a-button--> |
| | | <!-- type="text"--> |
| | | <!-- class="button"--> |
| | | <!-- style="color: #2a2a2b"--> |
| | | <!-- @click="handleClick()"--> |
| | | <!-- >--> |
| | | <!-- <template #icon>--> |
| | | <!-- <icon-edit />--> |
| | | <!-- </template>--> |
| | | <!-- 修改名称--> |
| | | <!-- </a-button>--> |
| | | <!-- <!– <a-divider style="margin: 10px 0" />–>--> |
| | | <!-- </template>--> |
| | | <!-- </a-popover>--> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | > |
| | | </a-textarea> |
| | | </template> |
| | | <template #actions> |
| | | <div class="action" |
| | | @click="stopChat" |
| | | style="background: var(--color-bg-2);color: var(--color-primary-light-4);" v-if="displayedText != ''"> |
| | | <icon-record-stop /> |
| | | 停止生成 |
| | | </div> |
| | | </template> |
| | | <!-- <template #actions>--> |
| | | <!-- <div class="action"--> |
| | | <!-- @click="stopChat"--> |
| | | <!-- style="background: var(--color-bg-2);color: var(--color-primary-light-4);" v-if="displayedText != ''">--> |
| | | <!-- <icon-record-stop />--> |
| | | <!-- 停止生成--> |
| | | <!-- </div>--> |
| | | <!-- </template>--> |
| | | </a-comment> |
| | | </div> |
| | | <!-- <div class="chartStart" v-if="isStart" @click="startChat" |
| | |
| | | |
| | | const handleSubmit = async({values, errors}) => { |
| | | if(errors) return; |
| | | agentObj.name = agentTitle.value; |
| | | const { code, data } = await addSessionApi(agentObj); |
| | | if (data) { |
| | | Message.success("修改成功"); |
| | | handleCancel() |
| | | queryAgentSessionDetail(agentObj.id); |
| | | } |
| | | // agentObj.name = agentTitle.value; |
| | | // agentObj.conversation_id = agentObj.id; |
| | | console.log(agentObj, 'agentObj'); |
| | | |
| | | |
| | | // let chatData = { |
| | | // id:agentObj.id, |
| | | // conversation_id:agentObj.id, |
| | | // name: agentTitle.value |
| | | // } |
| | | // const { code, data } = await addSessionApi(chatData); |
| | | // if (data) { |
| | | // Message.success("修改成功"); |
| | | // handleCancel() |
| | | // queryAgentSessionDetail(agentObj.id); |
| | | // } |
| | | } |
| | | |
| | | const handleClick = () => { |
| | |
| | | // Message.success("已停止"); |
| | | // queryNewSessionDetail(activeSessionId.value); |
| | | // } |
| | | loading.value = false; |
| | | chatDis.value = false; |
| | | isStopChat.value = true; |
| | | console.log('stopChat'); |
| | | console.log(displayedText.value, 'displayedText'); |
| | |
| | | |
| | | .btn-send { |
| | | position: absolute !important; |
| | | right: 10px; |
| | | right: 4px; |
| | | top: 80px; |
| | | z-index: 10; |
| | | } |