对话
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<Talk v-if="!tabIndex && !showDetail" />
|
||||
<Record v-if="tabIndex && !showDetail" @toDetail="toDetail" />
|
||||
<Record v-if="tabIndex && !showDetail" @toDetail="toDetail" ref="Record" />
|
||||
<!-- <Detail v-if="showDetail" :params="params" @back="back" /> -->
|
||||
</div>
|
||||
</template>
|
||||
@@ -59,6 +59,11 @@ export default {
|
||||
this.showDetail = false
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
if(this.tabIndex == 1) {
|
||||
this.$refs.Record.nextPage()
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -67,6 +67,7 @@ export default {
|
||||
if(!this.user.token) {
|
||||
return this.$u.toast("请先进行登录")
|
||||
}
|
||||
if(this.current > this.pages) return
|
||||
this.$loading()
|
||||
this.$http.post(`/app/appaicopilotinfo/listHistory?current=${this.current}&size=10&content=${this.searchVal}`).then(res => {
|
||||
if(res.code == 0 && res.data.records.length) {
|
||||
@@ -95,6 +96,7 @@ export default {
|
||||
},
|
||||
getSearchList() {
|
||||
this.current = 1
|
||||
this.pages = 2
|
||||
this.getHistoryList()
|
||||
},
|
||||
handerClear() {
|
||||
@@ -117,6 +119,10 @@ export default {
|
||||
})
|
||||
}).catch(() => {
|
||||
})
|
||||
},
|
||||
nextPage() {
|
||||
this.current ++
|
||||
this.getHistoryList()
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
@@ -315,6 +315,7 @@ export default {
|
||||
confirmType(val) {
|
||||
this.aiConfigId = val[0].value
|
||||
this.aiConfigName = val[0].label
|
||||
this.messageList = []
|
||||
},
|
||||
getAiTypeList() {
|
||||
this.$http.post(`/app/appaiconfiginfo/list?status=1`).then(res => {
|
||||
@@ -326,7 +327,7 @@ export default {
|
||||
this.typeList = res.data.records
|
||||
this.aiConfigId = this.typeList[0].dictValue
|
||||
this.aiConfigName = this.typeList[0].dictName
|
||||
this.getHistoryList()
|
||||
// this.getHistoryList()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user