zhuliu 3 months ago
parent
commit
16285989f5

+ 14 - 0
src/views/AITools/OADefense/OADefense1.vue

@@ -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()

+ 1 - 1
src/views/AITools/OADefense/dialog/errorTip.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
     <div>
     <div>
-      <el-dialog title="文件缺少提示" v-draggable :visible.sync="visible" width="500px" :before-close="handleClose" :close-on-click-modal="false" :modal-append-to-body="false">
+      <el-dialog title="文件缺少提示" :visible.sync="visible" width="500px" :before-close="handleClose" :close-on-click-modal="false" :modal-append-to-body="false">
           <div>
           <div>
             <div style="font-size:16px" v-html="tip"></div>
             <div style="font-size:16px" v-html="tip"></div>
             <div style="padding: 10px 0;">
             <div style="padding: 10px 0;">

+ 2 - 0
src/views/AITools/OADefense/mixins/index1.js

@@ -88,6 +88,7 @@ export default {
                             try{
                             try{
                                 let answer_json = JSON.parse(answer)
                                 let answer_json = JSON.parse(answer)
                                 if(answer_json.code == 1001){//缺少专利文件
                                 if(answer_json.code == 1001){//缺少专利文件
+                                    this.result = answer_json
                                     this.$refs.errorTip.open(answer_json.data)
                                     this.$refs.errorTip.open(answer_json.data)
                                 }else if(answer_json.code == 200){
                                 }else if(answer_json.code == 200){
                                     this.queryConfessionSession(false,false,true) 
                                     this.queryConfessionSession(false,false,true) 
@@ -114,6 +115,7 @@ export default {
                                         try{
                                         try{
                                             let answer_json = JSON.parse(answer)
                                             let answer_json = JSON.parse(answer)
                                             if(answer_json.code == 1001){//缺少专利文件
                                             if(answer_json.code == 1001){//缺少专利文件
+                                                this.result = answer_json
                                                 this.$refs.errorTip.open(answer_json.data)
                                                 this.$refs.errorTip.open(answer_json.data)
                                             }else if(answer_json.code == 200){
                                             }else if(answer_json.code == 200){
                                                 this.queryConfessionSession(false,false,true) 
                                                 this.queryConfessionSession(false,false,true)