| | |
| | | maxRows: 5, |
| | | }" |
| | | /> |
| | | <div class="btn-send"> |
| | | <!-- <icon-send size="32" /> --> |
| | | <div style="width: 100%;display: flex;justify-content: space-between"> |
| | | <span></span> |
| | | <a-button |
| | | :disabled="chatDis" |
| | | @click="sentClick" |
| | |
| | | </a-button |
| | | > |
| | | </div> |
| | | <!-- <div class="btn-send">--> |
| | | <!-- <!– <icon-send size="32" /> –>--> |
| | | <!-- <a-button--> |
| | | <!-- :disabled="chatDis"--> |
| | | <!-- @click="sentClick"--> |
| | | <!-- type="text"--> |
| | | <!-- style="border-radius: 24px"--> |
| | | <!-- :loading="loading"--> |
| | | <!-- >--> |
| | | <!-- <icon-send size="32" style="color: #0960bd;"/>--> |
| | | <!-- </a-button--> |
| | | <!-- >--> |
| | | <!-- </div>--> |
| | | </div> |
| | | <a-modal v-model:visible="visible" title="修改名称" @before-open="handleOpened" @cancel="handleCancel" :footer="false" title-align="start"> |
| | | <a-form ref="formRef" :rules="rules" :model="agentObj" @submit="handleSubmit" > |
| | |
| | | // agentObj.conversation_id = agentObj.id; |
| | | console.log(agentObj, 'agentObj'); |
| | | let chatData = { |
| | | id:agentObj.id, |
| | | conversation_id:agentObj.id, |
| | | id:activeSessionId.value, |
| | | conversation_id:activeSessionId.value, |
| | | name: agentTitle.value |
| | | } |
| | | const { code, data } = await addSessionApi(chatData); |
| | | if (data) { |
| | | Message.success("修改成功"); |
| | | handleCancel() |
| | | queryAgentSessionDetail(agentObj.id); |
| | | // queryAgentSessionDetail(agentObj.id); |
| | | } |
| | | } |
| | | |
| | |
| | | Object.assign(agentObj, session); |
| | | agentObj.id = session.dialog_id; |
| | | activeSessionId.value = session.id; |
| | | agentTitle.value = session.name; |
| | | console.log(agentTitle.value, '会话名称'); |
| | | const { code, data } = await getSessionDetailsApi(session.id); |
| | | if (code == 200) { |
| | | sessionDetailList.value = data.message.messages; |
| | |
| | | createNewAgent(data); |
| | | }); |
| | | EventBus.on('queryAgentSessionDetail', (data) => { |
| | | Object.assign(agentObj, data); |
| | | isHistory.value = true; |
| | | querySessionDetail(data); |
| | | }); |