Feat(云灵AI):县域AI和平台AI逻辑区分
This commit is contained in:
@@ -365,6 +365,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
v-if="!countyId"
|
||||
:class="{
|
||||
'focus': onFocus
|
||||
}"
|
||||
@@ -411,6 +412,7 @@
|
||||
ref="bottomSend"
|
||||
:loading="loading"
|
||||
:keyboard-height="keyboardHeight"
|
||||
:voice-exception="exceptionConfig.voice_exception"
|
||||
@send="streamReq"
|
||||
@history="historyViewHandle"
|
||||
@focus="inputFocusHandle"
|
||||
@@ -418,10 +420,12 @@
|
||||
<AiHistoryList
|
||||
ref="historyView"
|
||||
:status-bar-height="statusBarHeight"
|
||||
:county-id="countyId"
|
||||
form-module="history"
|
||||
@enter-history="audioStopHandle"
|
||||
/>
|
||||
<ProductWindow
|
||||
v-if="!countyId"
|
||||
ref="attrWindow"
|
||||
:attr="attr"
|
||||
:cart-num="cart_num"
|
||||
@@ -445,7 +449,8 @@ import BottomSend from '../components/bottomSend.vue'
|
||||
import OrderItem from '../components/orderItem.vue'
|
||||
import ProductWindow from '@/components/ProductWindow'
|
||||
import {
|
||||
historyChatMessage
|
||||
historyChatMessage,
|
||||
getCountyAiHistoryChatMessage
|
||||
} from '@/api/chat/index'
|
||||
import { formatAiMsgContent } from '../utils/aiChat'
|
||||
export default {
|
||||
@@ -459,19 +464,27 @@ export default {
|
||||
mixins: [chatMixinsV2, goCartMixin],
|
||||
data() {
|
||||
return {
|
||||
pageTitle: ''
|
||||
pageTitle: '',
|
||||
countyId: ''
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
this.chatNumber = options.chatNumber
|
||||
this.pageTitle = options.title
|
||||
this.pageTitle = options.title || ''
|
||||
this.countyId = options.countyId || ''
|
||||
this.pageTitle = this.pageTitle.length > 8 ? (this.pageTitle.substring(0, 8) + '...') : this.pageTitle
|
||||
this.init()
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
this.loading = true
|
||||
historyChatMessage({
|
||||
let reqFn = null
|
||||
if (this.countyId) {
|
||||
reqFn = getCountyAiHistoryChatMessage
|
||||
} else {
|
||||
reqFn = historyChatMessage
|
||||
}
|
||||
reqFn({
|
||||
chatNumber: this.chatNumber
|
||||
}).then(res => {
|
||||
const { success, data = [] } = res
|
||||
|
||||
Reference in New Issue
Block a user