no message

This commit is contained in:
wangdongbo 2026-02-12 10:30:59 +08:00
parent efe1b2994e
commit abbcc3874d
2 changed files with 19 additions and 18 deletions

View File

@ -1,5 +1,8 @@
<template> <template>
<view class="input-section" :style="{ bottom: props.keyboardHeight + 'px' }"> <view class="input-section" :style="{ bottom: props.keyboardHeight + 'px' }">
<!-- AI助手按钮组 -->
<slot name="ai-assistant"></slot>
<view class="input-toolbar"> <view class="input-toolbar">
<view @click="toggleVoiceInput" class="voice-toggle-btn"> <view @click="toggleVoiceInput" class="voice-toggle-btn">
<image v-if="showVoiceInput" src="/static/jianpan.png" class="voice-toggle-icon" mode="aspectFit"></image> <image v-if="showVoiceInput" src="/static/jianpan.png" class="voice-toggle-icon" mode="aspectFit"></image>

View File

@ -135,23 +135,6 @@
@cancel="handleRejectReasonCancel" @cancel="handleRejectReasonCancel"
/> />
<!-- AI助手按钮组 -->
<AIAssistantButtons
v-if="
!isEvaluationPopupOpen &&
!showConsultAccept &&
orderStatus === 'processing'
"
ref="aiAssistantRef"
:groupId="groupId"
:patientAccountId="chatInfo.userID || ''"
:patientId="patientId"
:corpId="corpId"
@streamText="handleStreamText"
@clearInput="handleClearInput"
@generatingStateChange="handleGeneratingStateChange"
/>
<!-- 聊天输入组件 --> <!-- 聊天输入组件 -->
<ChatInput <ChatInput
v-if="!isEvaluationPopupOpen && !showConsultAccept" v-if="!isEvaluationPopupOpen && !showConsultAccept"
@ -175,7 +158,22 @@
@messageSent="() => scrollToBottom(true)" @messageSent="() => scrollToBottom(true)"
@endConsult="handleEndConsult" @endConsult="handleEndConsult"
@openConsult="handleOpenConsult" @openConsult="handleOpenConsult"
/> >
<!-- AI助手按钮组插槽 -->
<template #ai-assistant>
<AIAssistantButtons
v-if="orderStatus === 'processing'"
ref="aiAssistantRef"
:groupId="groupId"
:patientAccountId="chatInfo.userID || ''"
:patientId="patientId"
:corpId="corpId"
@streamText="handleStreamText"
@clearInput="handleClearInput"
@generatingStateChange="handleGeneratingStateChange"
/>
</template>
</ChatInput>
</view> </view>
</template> </template>