Feat(云灵AI):县域AI和平台AI逻辑区分

This commit is contained in:
lifizer
2026-06-02 10:50:02 +08:00
parent 758d3a2127
commit e05ceb0f68
9 changed files with 311 additions and 231 deletions
+9 -5
View File
@@ -112,6 +112,10 @@ export default {
keyboardHeight: {
type: Number,
default: 0
},
voiceException: {
type: String,
default: '没有听清您说了什么,请再说一遍'
}
},
data() {
@@ -262,11 +266,11 @@ export default {
fail: err => {
console.log(err)
uni.hideLoading()
_this.$toast('没有听清您说了什么,请再说一遍')
_this.$toast(_this.voiceException)
}
})
} else {
_this.$toast('没有听清您说了什么,请再说一遍')
_this.$toast(_this.voiceException)
}
})
}
@@ -282,7 +286,7 @@ export default {
_this.getTransResultReq()
}).catch(() => {
uni.hideLoading()
_this.$toast('没有听清您说了什么,请再说一遍')
_this.$toast(_this.voiceException)
})
},
getTransResultReq() {
@@ -296,7 +300,7 @@ export default {
uni.hideLoading()
_this.clearIntervalFn()
if (data === '__NULL__') {
_this.$toast('没有听清您说了什么,请再说一遍')
_this.$toast(_this.voiceException)
} else {
if (data.length > 0) {
const prompt = data[0].Text
@@ -308,7 +312,7 @@ export default {
}
}).catch(() => {
uni.hideLoading()
_this.$toast('没有听清您说了什么,请再说一遍')
_this.$toast(_this.voiceException)
})
}, 1000)
},
+18 -3
View File
@@ -112,7 +112,8 @@
<script>
import {
getChatList,
deleteChatListByType
deleteChatListByType,
getCountyAiChatList
} from '@/api/chat/index'
export default {
name: 'AiHistoryList',
@@ -125,6 +126,10 @@ export default {
formModule: {
type: String,
default: ''
},
countyId: {
type: String,
default: ''
}
},
data() {
@@ -142,7 +147,17 @@ export default {
this.getChatListReq()
},
getChatListReq() {
getChatList().then(res => {
let reqFn = null
let params = {}
if (this.countyId) {
reqFn = getCountyAiChatList
params = {
countyId: this.countyId
}
} else {
reqFn = getChatList
}
reqFn(params).then(res => {
const { success, data } = res
if (success) {
this.todayList = data['今天'] || []
@@ -160,7 +175,7 @@ export default {
})
},
historyItemClick(item) {
const paramsStr = `?chatNumber=${item.chatNumber}&title=${item.title}&click=1`
const paramsStr = `?chatNumber=${item.chatNumber}&title=${item.title}&click=1&countyId=${this.countyId}`
if (!this.formModule) {
uni.navigateTo({
url: '/aiChat/views/history' + paramsStr