|
@@ -115,6 +115,15 @@
|
|
<vabOnlyOffice :option='result_file.option'></vabOnlyOffice>
|
|
<vabOnlyOffice :option='result_file.option'></vabOnlyOffice>
|
|
</template>
|
|
</template>
|
|
<!-- 结果 -->
|
|
<!-- 结果 -->
|
|
|
|
+ <template v-else-if="result && result.code == 1001">
|
|
|
|
+ <div>
|
|
|
|
+ <div style="font-size:16px" v-html="result.data"></div>
|
|
|
|
+ <div>
|
|
|
|
+ <el-link type="primary" @click="openErrorTip">点击上传</el-link>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </template>
|
|
<template v-else-if="result">
|
|
<template v-else-if="result">
|
|
<div class="answer_warp">
|
|
<div class="answer_warp">
|
|
<div v-for="(item,index) in formateAIAnswer(this.result)" :key="index">
|
|
<div v-for="(item,index) in formateAIAnswer(this.result)" :key="index">
|
|
@@ -384,6 +393,7 @@ export default {
|
|
},
|
|
},
|
|
//切换会话
|
|
//切换会话
|
|
changeConversation(obj,sign){
|
|
changeConversation(obj,sign){
|
|
|
|
+ this.add = false
|
|
if(obj.id == this.currentConversation.id){
|
|
if(obj.id == this.currentConversation.id){
|
|
this.currentConversation = obj
|
|
this.currentConversation = obj
|
|
if(sign && !this.reLoadSearch){
|
|
if(sign && !this.reLoadSearch){
|
|
@@ -466,6 +476,7 @@ export default {
|
|
this.$set(this,'result',html)
|
|
this.$set(this,'result',html)
|
|
}
|
|
}
|
|
}else if(answer_data.code == 1001){
|
|
}else if(answer_data.code == 1001){
|
|
|
|
+ this.result = answer_data
|
|
this.$refs.errorTip.open(answer_data.data)
|
|
this.$refs.errorTip.open(answer_data.data)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -475,6 +486,9 @@ export default {
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ openErrorTip(){
|
|
|
|
+ this.$refs.errorTip.open(this.result.data)
|
|
|
|
+ },
|
|
//上传文件
|
|
//上传文件
|
|
onChange(file){
|
|
onChange(file){
|
|
let formData = new FormData()
|
|
let formData = new FormData()
|