|
@@ -3,7 +3,7 @@
|
|
<conversationRecords v-show="showMenu" name="OA答辩" :show_add="false" :conversation="currentConversation" :confessionSessionList="confessionSessionList" @addConversation="addConversation" @changeConversation="changeConversation" @updateConversation="queryConfessionSession" ></conversationRecords>
|
|
<conversationRecords v-show="showMenu" name="OA答辩" :show_add="false" :conversation="currentConversation" :confessionSessionList="confessionSessionList" @addConversation="addConversation" @changeConversation="changeConversation" @updateConversation="queryConfessionSession" ></conversationRecords>
|
|
|
|
|
|
<!-- 左侧文件展示 -->
|
|
<!-- 左侧文件展示 -->
|
|
- <div class="left" v-show="showLeft">
|
|
|
|
|
|
+ <div class="left customize_file" v-show="showLeft">
|
|
<div class="head">
|
|
<div class="head">
|
|
<div class="head_left">
|
|
<div class="head_left">
|
|
<div class="margin-right_10">
|
|
<div class="margin-right_10">
|
|
@@ -37,8 +37,8 @@
|
|
</div>
|
|
</div>
|
|
<!-- 输入 -->
|
|
<!-- 输入 -->
|
|
<template v-if="add">
|
|
<template v-if="add">
|
|
- <div>
|
|
|
|
- <p>审查意见书:</p>
|
|
|
|
|
|
+ <div >
|
|
|
|
+ <!-- <p>审查意见书:</p>
|
|
<div>
|
|
<div>
|
|
<el-upload
|
|
<el-upload
|
|
ref="upload_file"
|
|
ref="upload_file"
|
|
@@ -63,12 +63,160 @@
|
|
1.如果上传了相关文件则优先使用上传的文件,如果不上传则系统会自动获取文件
|
|
1.如果上传了相关文件则优先使用上传的文件,如果不上传则系统会自动获取文件
|
|
<br>
|
|
<br>
|
|
2.上传的申请文件要包含本申请号码,对比文件包含对比文件序号或者名称
|
|
2.上传的申请文件要包含本申请号码,对比文件包含对比文件序号或者名称
|
|
- <!-- <br>
|
|
|
|
- 3. 扫描件暂时无法识别,请上传非扫描件 -->
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<myUpload :file-list="patent_fileUrls" @on-change="onchangeFile" @on-remove="onRemove" style="height: 180px;" :autoUpload="true"></myUpload>
|
|
<myUpload :file-list="patent_fileUrls" @on-change="onchangeFile" @on-remove="onRemove" style="height: 180px;" :autoUpload="true"></myUpload>
|
|
|
|
+ </div> -->
|
|
|
|
+ <div style="height:calc(100vh - 210px);overflow-y: auto;overflow-x:hidden">
|
|
|
|
+ <div style="display:flex;align-items: center;justify-content:space-between">
|
|
|
|
+ <p class="file_title"><i class="el-icon-star-on"></i>本次需要答复的审查意见通知书</p>
|
|
|
|
+ <div>
|
|
|
|
+ <el-button size="mini" class="margin-right_10" type="primary" @click="batch_upload">批量上传</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="upload_file">
|
|
|
|
+ <div v-if="notice_file.guid" class="file_show">
|
|
|
|
+ <myTooltip :content="notice_file.name ? notice_file.name : notice_file.originalName">
|
|
|
|
+ <div class="noWrap file_name">
|
|
|
|
+ <i class="el-icon-document" style="margin-right: 10px"></i>
|
|
|
|
+ <span class="name">{{notice_file.name ? notice_file.name : notice_file.originalName}}</span>
|
|
|
|
+ </div>
|
|
|
|
+ </myTooltip>
|
|
|
|
+ <div class="type">{{ notice_file.guid ? "已上传" : "待上传" }}</div>
|
|
|
|
+ <div class="icon" @click="notice_file = {}">
|
|
|
|
+ <i class="el-icon-close"></i>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <el-upload
|
|
|
|
+ v-else
|
|
|
|
+ ref="upload_file"
|
|
|
|
+ class="upload-demo"
|
|
|
|
+ drag
|
|
|
|
+ action="#"
|
|
|
|
+ :auto-upload="false"
|
|
|
|
+ :limit="1"
|
|
|
|
+ :on-change="(file)=>onChange(file,'notice_file')"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ >
|
|
|
|
+ <i class="el-icon-upload"></i>
|
|
|
|
+ <div class="el-upload__text">
|
|
|
|
+ <div><em>点击上传</em></div>
|
|
|
|
+ <div>或将文件拖到此处上传</div>
|
|
|
|
+ </div>
|
|
|
|
+ </el-upload>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="margin:25px 0;">
|
|
|
|
+ <el-divider content-position="left">相关文件(选填)</el-divider>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <p class="file_title">本申请文件</p>
|
|
|
|
+ <div class="upload_file">
|
|
|
|
+ <div v-if="relevant_file.app_file.guid" class="file_show">
|
|
|
|
+ <myTooltip :content="relevant_file.app_file.name ? relevant_file.app_file.name : relevant_file.app_file.originalName">
|
|
|
|
+ <div class="noWrap file_name">
|
|
|
|
+ <i class="el-icon-document" style="margin-right: 10px"></i>
|
|
|
|
+ <span class="name">{{relevant_file.app_file.name ? relevant_file.app_file.name : relevant_file.app_file.originalName}}</span>
|
|
|
|
+ </div>
|
|
|
|
+ </myTooltip>
|
|
|
|
+ <div class="type">{{ relevant_file.app_file.guid ? "已上传" : "待上传" }}</div>
|
|
|
|
+ <div class="icon" @click="relevant_file.app_file = {}">
|
|
|
|
+ <i class="el-icon-close"></i>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <el-upload
|
|
|
|
+ v-else
|
|
|
|
+ ref="upload_file"
|
|
|
|
+ class="upload-demo"
|
|
|
|
+ drag
|
|
|
|
+ action="#"
|
|
|
|
+ :auto-upload="false"
|
|
|
|
+ :limit="1"
|
|
|
|
+ :on-change="(file)=>onChange(file,'relevant_file.app_file')"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ >
|
|
|
|
+ <i class="el-icon-upload"></i>
|
|
|
|
+ <div class="el-upload__text">
|
|
|
|
+ <div><em>点击上传</em></div>
|
|
|
|
+ <div>或将文件拖到此处上传</div>
|
|
|
|
+ </div>
|
|
|
|
+ </el-upload>
|
|
|
|
+ </div>
|
|
|
|
+ <p class="file_title">上一次OA的修改对照页(若有)</p>
|
|
|
|
+ <div class="upload_file">
|
|
|
|
+ <div v-if="relevant_file.modify_file.guid" class="file_show">
|
|
|
|
+ <myTooltip :content="relevant_file.modify_file.name ? relevant_file.modify_file.name : relevant_file.modify_file.originalName">
|
|
|
|
+ <div class="noWrap file_name">
|
|
|
|
+ <i class="el-icon-document" style="margin-right: 10px"></i>
|
|
|
|
+ <span class="name">{{relevant_file.modify_file.name ? relevant_file.modify_file.name : relevant_file.modify_file.originalName}}</span>
|
|
|
|
+ </div>
|
|
|
|
+ </myTooltip>
|
|
|
|
+ <div class="type">{{ relevant_file.modify_file.guid ? "已上传" : "待上传" }}</div>
|
|
|
|
+ <div class="icon" @click="relevant_file.modify_file = {}">
|
|
|
|
+ <i class="el-icon-close"></i>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <el-upload
|
|
|
|
+ v-else
|
|
|
|
+ ref="upload_file"
|
|
|
|
+ class="upload-demo"
|
|
|
|
+ drag
|
|
|
|
+ action="#"
|
|
|
|
+ :auto-upload="false"
|
|
|
|
+ :limit="1"
|
|
|
|
+ :on-change="(file)=>onChange(file,'relevant_file.modify_file')"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ >
|
|
|
|
+ <i class="el-icon-upload"></i>
|
|
|
|
+ <div class="el-upload__text">
|
|
|
|
+ <div><em>点击上传</em></div>
|
|
|
|
+ <div>或将文件拖到此处上传</div>
|
|
|
|
+ </div>
|
|
|
|
+ </el-upload>
|
|
|
|
+ </div>
|
|
|
|
+ <template v-if="relevant_file.contrast_file">
|
|
|
|
+ <div>
|
|
|
|
+ <div v-for="contrast_file in relevant_file.contrast_file" :key="'D'+contrast_file.order">
|
|
|
|
+ <p class="file_title">对比文件D{{ contrast_file.order }}</p>
|
|
|
|
+ <div class="upload_file">
|
|
|
|
+ <div v-if="contrast_file.file.guid" class="file_show">
|
|
|
|
+ <myTooltip :content="contrast_file.file.name ? contrast_file.file.name : contrast_file.file.originalName">
|
|
|
|
+ <div class="noWrap file_name">
|
|
|
|
+ <i class="el-icon-document" style="margin-right: 10px"></i>
|
|
|
|
+ <span class="name">{{contrast_file.file.name ? contrast_file.file.name : contrast_file.file.originalName}}</span>
|
|
|
|
+ </div>
|
|
|
|
+ </myTooltip>
|
|
|
|
+ <div class="type">{{ contrast_file.file.guid ? "已上传" : "待上传" }}</div>
|
|
|
|
+ <div class="icon" @click="contrast_file.file = {}">
|
|
|
|
+ <i class="el-icon-close"></i>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <el-upload
|
|
|
|
+ v-else
|
|
|
|
+ ref="upload_file"
|
|
|
|
+ class="upload-demo"
|
|
|
|
+ drag
|
|
|
|
+ action="#"
|
|
|
|
+ :auto-upload="false"
|
|
|
|
+ :limit="1"
|
|
|
|
+ :on-change="(file)=>onChange(file,'file',contrast_file)"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ >
|
|
|
|
+ <i class="el-icon-upload"></i>
|
|
|
|
+ <div class="el-upload__text">
|
|
|
|
+ <div><em>点击上传</em></div>
|
|
|
|
+ <div>或将文件拖到此处上传</div>
|
|
|
|
+ </div>
|
|
|
|
+ </el-upload>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="addContrastFile">
|
|
|
|
+ <el-button size="medium" @click="add_contrast_file">添加 + </el-button>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
</div>
|
|
</div>
|
|
<hr style="margin:15px 0;">
|
|
<hr style="margin:15px 0;">
|
|
<div class="run">
|
|
<div class="run">
|
|
@@ -156,6 +304,8 @@
|
|
</div>
|
|
</div>
|
|
<!-- 错误提示以及上传文件 -->
|
|
<!-- 错误提示以及上传文件 -->
|
|
<errorTipDialog ref="errorTip" @submit="reLoadSubmit"></errorTipDialog>
|
|
<errorTipDialog ref="errorTip" @submit="reLoadSubmit"></errorTipDialog>
|
|
|
|
+ <!-- 批量上传文件 -->
|
|
|
|
+ <batchFileDialog ref="batchFile" :sign="1" @get_file_obj="get_file_obj"></batchFileDialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -167,11 +317,13 @@ import {renderMarkdown} from '@/utils/markdown'
|
|
import { downLoad2 } from '@/utils'
|
|
import { downLoad2 } from '@/utils'
|
|
import { scrollToBottom } from '../components/mixins/scrollToBottom'
|
|
import { scrollToBottom } from '../components/mixins/scrollToBottom'
|
|
import errorTipDialog from './dialog/errorTip.vue'
|
|
import errorTipDialog from './dialog/errorTip.vue'
|
|
|
|
+import batchFileDialog from './dialog/batchFile.vue';
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
conversationRecords,
|
|
conversationRecords,
|
|
vabOnlyOffice,
|
|
vabOnlyOffice,
|
|
- errorTipDialog
|
|
|
|
|
|
+ errorTipDialog,
|
|
|
|
+ batchFileDialog
|
|
},
|
|
},
|
|
props: {},
|
|
props: {},
|
|
mixins:[mixin,scrollToBottom],
|
|
mixins:[mixin,scrollToBottom],
|
|
@@ -202,6 +354,24 @@ export default {
|
|
reLoadSearch:false,//重新生成OA答辩
|
|
reLoadSearch:false,//重新生成OA答辩
|
|
add:true,//添加审查通知书
|
|
add:true,//添加审查通知书
|
|
notice_file:{},//审查通知书文件
|
|
notice_file:{},//审查通知书文件
|
|
|
|
+ relevant_file:{
|
|
|
|
+ app_file:{},
|
|
|
|
+ modify_file:{},
|
|
|
|
+ contrast_file:[
|
|
|
|
+ {
|
|
|
|
+ order:1,
|
|
|
|
+ file:{}
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ order:2,
|
|
|
|
+ file:{}
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ order:3,
|
|
|
|
+ file:{}
|
|
|
|
+ },
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
patent_fileUrls:[],//专利文件地址
|
|
patent_fileUrls:[],//专利文件地址
|
|
result_file:{},//结果文件
|
|
result_file:{},//结果文件
|
|
app_file:{},//申请文件
|
|
app_file:{},//申请文件
|
|
@@ -225,20 +395,72 @@ export default {
|
|
async getInit(){
|
|
async getInit(){
|
|
this.queryConfessionSession()
|
|
this.queryConfessionSession()
|
|
},
|
|
},
|
|
- //再次提交
|
|
|
|
- reLoadSubmit(data){
|
|
|
|
- if(!data || data.length==0){
|
|
|
|
- return
|
|
|
|
|
|
+ add_contrast_file(){
|
|
|
|
+ let order1 = this.relevant_file.contrast_file[this.relevant_file.contrast_file.length-1].order
|
|
|
|
+ this.relevant_file.contrast_file.push(
|
|
|
|
+ {
|
|
|
|
+ order:order1 + 1,
|
|
|
|
+ file:{}
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ },
|
|
|
|
+ //批量上传
|
|
|
|
+ batch_upload(){
|
|
|
|
+ this.$refs.batchFile.open()
|
|
|
|
+ },
|
|
|
|
+ get_file_obj(data){
|
|
|
|
+ if(data.notice_file){
|
|
|
|
+ this.$set(this,'notice_file',data.notice_file)
|
|
}
|
|
}
|
|
- for(let i = 0;i<data.length;i++){
|
|
|
|
- let name = data[i].name
|
|
|
|
- let index = this.patent_fileUrls.findIndex(item=>{
|
|
|
|
- return item.name == name
|
|
|
|
- })
|
|
|
|
- if(index == -1){
|
|
|
|
- this.patent_fileUrls.push(data[i])
|
|
|
|
|
|
+ if(data.app_file){
|
|
|
|
+ this.$set(this.relevant_file,'app_file',data.app_file)
|
|
|
|
+ }
|
|
|
|
+ if(data.modify_file){
|
|
|
|
+ this.$set(this.relevant_file,'modify_file',data.modify_file)
|
|
|
|
+ }
|
|
|
|
+ if(data.contrast_file && data.contrast_file.length>0){
|
|
|
|
+ let contrast_file = this.relevant_file.contrast_file
|
|
|
|
+ for(let i = 0;i<data.contrast_file.length;i++){
|
|
|
|
+ let item = data.contrast_file[i]
|
|
|
|
+ let order = item.order
|
|
|
|
+ let obj = contrast_file.find(file=>{
|
|
|
|
+ return file.order == order
|
|
|
|
+ })
|
|
|
|
+ if(obj){
|
|
|
|
+ obj.file = item.file
|
|
|
|
+ }else{
|
|
|
|
+ let order1 = contrast_file[contrast_file.length-1].order
|
|
|
|
+ if(order > order1 + 1){
|
|
|
|
+ for(let y = order1 + 1;y < order;y++){
|
|
|
|
+ contrast_file.push(
|
|
|
|
+ {
|
|
|
|
+ order:y,
|
|
|
|
+ file:{}
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ contrast_file.push(item)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ //再次提交
|
|
|
|
+ reLoadSubmit(data){
|
|
|
|
+ // if(!data || data.length==0){
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+ // for(let i = 0;i<data.length;i++){
|
|
|
|
+ // let name = data[i].name
|
|
|
|
+ // let index = this.patent_fileUrls.findIndex(item=>{
|
|
|
|
+ // return item.name == name
|
|
|
|
+ // })
|
|
|
|
+ // if(index == -1){
|
|
|
|
+ // this.patent_fileUrls.push(data[i])
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ this.get_file_obj(data)
|
|
let content = this.currentConversation.content
|
|
let content = this.currentConversation.content
|
|
var params = {
|
|
var params = {
|
|
confessionSessionId:this.currentConversation.id,
|
|
confessionSessionId:this.currentConversation.id,
|
|
@@ -247,30 +469,39 @@ export default {
|
|
params.content = JSON.stringify(
|
|
params.content = JSON.stringify(
|
|
{
|
|
{
|
|
query:{
|
|
query:{
|
|
- patent_fileUrls:this.patent_fileUrls,
|
|
|
|
|
|
+ // patent_fileUrls:this.patent_fileUrls,
|
|
|
|
+ relevant_file:this.relevant_file,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
)
|
|
)
|
|
}else{
|
|
}else{
|
|
try{
|
|
try{
|
|
- let data = JSON.parse(content)
|
|
|
|
- if(data.data && data.data.code == 1001){
|
|
|
|
- data.data = {}
|
|
|
|
|
|
+ let data1 = JSON.parse(content)
|
|
|
|
+ if(data1.data && data1.data.code == 1001){
|
|
|
|
+ data1.data = {}
|
|
}
|
|
}
|
|
- if(data.query && data.query.patent_fileUrls){
|
|
|
|
- data.query.patent_fileUrls = this.patent_fileUrls
|
|
|
|
|
|
+ // if(data1.query && data1.query.patent_fileUrls){
|
|
|
|
+ // data1.query.patent_fileUrls = this.patent_fileUrls
|
|
|
|
+ // }else{
|
|
|
|
+ // data1.query = {
|
|
|
|
+ // patent_fileUrls:this.patent_fileUrls
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ if(data1.query && data1.query.relevant_file){
|
|
|
|
+ data1.query.relevant_file = this.relevant_file
|
|
}else{
|
|
}else{
|
|
- data.query = {
|
|
|
|
- patent_fileUrls:this.patent_fileUrls
|
|
|
|
|
|
+ data1.query = {
|
|
|
|
+ relevant_file:this.relevant_file
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- params.content = JSON.stringify(data)
|
|
|
|
|
|
+ params.content = JSON.stringify(data1)
|
|
|
|
|
|
}catch(e){
|
|
}catch(e){
|
|
params.content = JSON.stringify(
|
|
params.content = JSON.stringify(
|
|
{
|
|
{
|
|
query:{
|
|
query:{
|
|
- patent_fileUrls:this.patent_fileUrls,
|
|
|
|
|
|
+ // patent_fileUrls:this.patent_fileUrls,
|
|
|
|
+ relevant_file:this.relevant_file
|
|
}
|
|
}
|
|
}
|
|
}
|
|
)
|
|
)
|
|
@@ -336,7 +567,8 @@ export default {
|
|
content:JSON.stringify(
|
|
content:JSON.stringify(
|
|
{
|
|
{
|
|
query:{
|
|
query:{
|
|
- patent_fileUrls:this.patent_fileUrls,
|
|
|
|
|
|
+ // patent_fileUrls:this.patent_fileUrls,
|
|
|
|
+ relevant_file:this.relevant_file,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
),
|
|
),
|
|
@@ -356,10 +588,12 @@ export default {
|
|
},
|
|
},
|
|
//添加会话
|
|
//添加会话
|
|
addConversation(){
|
|
addConversation(){
|
|
|
|
+ this.$set(this,'currentConversation',{})
|
|
this.$set(this,'confession',{})
|
|
this.$set(this,'confession',{})
|
|
this.$set(this,'add',true)
|
|
this.$set(this,'add',true)
|
|
this.$set(this,'notice_file',{})
|
|
this.$set(this,'notice_file',{})
|
|
- this.$set(this,'patent_fileUrls',[])
|
|
|
|
|
|
+ // this.$set(this,'patent_fileUrls',[])
|
|
|
|
+ this.set_relevant_file()
|
|
this.$set(this,'app_file',{})
|
|
this.$set(this,'app_file',{})
|
|
this.$set(this,'contrast_file',[])
|
|
this.$set(this,'contrast_file',[])
|
|
this.$set(this,'result_file',{})
|
|
this.$set(this,'result_file',{})
|
|
@@ -367,6 +601,29 @@ export default {
|
|
this.$set(this,'result',null)
|
|
this.$set(this,'result',null)
|
|
|
|
|
|
},
|
|
},
|
|
|
|
+ //设置相关文件初始化
|
|
|
|
+ set_relevant_file(){
|
|
|
|
+ this.$set(this,'relevant_file',
|
|
|
|
+ {
|
|
|
|
+ app_file:{},
|
|
|
|
+ modify_file:{},
|
|
|
|
+ contrast_file:[
|
|
|
|
+ {
|
|
|
|
+ order:1,
|
|
|
|
+ file:{}
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ order:2,
|
|
|
|
+ file:{}
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ order:3,
|
|
|
|
+ file:{}
|
|
|
|
+ },
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ },
|
|
//切换左侧展示的文件
|
|
//切换左侧展示的文件
|
|
handleOptionClick(obj,type){
|
|
handleOptionClick(obj,type){
|
|
switch(type){
|
|
switch(type){
|
|
@@ -458,18 +715,23 @@ export default {
|
|
}
|
|
}
|
|
this.getResultOption()
|
|
this.getResultOption()
|
|
this.$set(this,'result',null)
|
|
this.$set(this,'result',null)
|
|
- this.$set(this,'patent_fileUrls',[])
|
|
|
|
|
|
+ // this.$set(this,'patent_fileUrls',[])
|
|
|
|
+ this.set_relevant_file()
|
|
this.contrast_file = []
|
|
this.contrast_file = []
|
|
this.app_file = {}
|
|
this.app_file = {}
|
|
let content = obj.content
|
|
let content = obj.content
|
|
if(!content){
|
|
if(!content){
|
|
- this.$set(this,'patent_fileUrls',[])
|
|
|
|
|
|
+ // this.$set(this,'patent_fileUrls',[])
|
|
|
|
+ this.set_relevant_file()
|
|
return
|
|
return
|
|
}
|
|
}
|
|
try{
|
|
try{
|
|
let data = JSON.parse(content)
|
|
let data = JSON.parse(content)
|
|
- if(data.query && data.query.patent_fileUrls){
|
|
|
|
- this.$set(this,'patent_fileUrls',data.query.patent_fileUrls)
|
|
|
|
|
|
+ // if(data.query && data.query.patent_fileUrls){
|
|
|
|
+ // this.$set(this,'patent_fileUrls',data.query.patent_fileUrls)
|
|
|
|
+ // }
|
|
|
|
+ if(data.query && data.query.relevant_file){
|
|
|
|
+ this.$set(this,'relevant_file',data.query.relevant_file)
|
|
}
|
|
}
|
|
if(data.answer){
|
|
if(data.answer){
|
|
this.$set(this,'result',data.answer)
|
|
this.$set(this,'result',data.answer)
|
|
@@ -493,7 +755,7 @@ export default {
|
|
}
|
|
}
|
|
}else if(answer_data.code == 1001){
|
|
}else if(answer_data.code == 1001){
|
|
this.result = answer_data
|
|
this.result = answer_data
|
|
- this.$refs.errorTip.open(answer_data.data)
|
|
|
|
|
|
+ this.$refs.errorTip.open(answer_data)
|
|
}else if(answer_data.code == 1002){
|
|
}else if(answer_data.code == 1002){
|
|
this.result = answer_data
|
|
this.result = answer_data
|
|
}
|
|
}
|
|
@@ -505,15 +767,32 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
openErrorTip(){
|
|
openErrorTip(){
|
|
- this.$refs.errorTip.open(this.result.data)
|
|
|
|
|
|
+ this.$refs.errorTip.open(this.result)
|
|
|
|
+ },
|
|
|
|
+ setData(row,field,value){
|
|
|
|
+ var fieldArray = field.split('.')
|
|
|
|
+ let current = row || this;
|
|
|
|
+ // 遍历路径中的每一部分,直到最后一个属性的父对象
|
|
|
|
+ for (let i = 0; i < fieldArray.length - 1; i++) {
|
|
|
|
+ // 确保当前对象有下一个属性,否则创建一个空对象(或你需要的任何默认值)
|
|
|
|
+ if (!current.hasOwnProperty(fieldArray[i])) {
|
|
|
|
+ current[fieldArray[i]] = {};
|
|
|
|
+ }
|
|
|
|
+ current = current[fieldArray[i]];
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 给最后一个属性赋值
|
|
|
|
+ current[fieldArray[fieldArray.length - 1]] = value;
|
|
},
|
|
},
|
|
//上传文件
|
|
//上传文件
|
|
- onChange(file){
|
|
|
|
|
|
+ onChange(file,field,row){
|
|
let formData = new FormData()
|
|
let formData = new FormData()
|
|
formData.append('sourceId',this.$constants.sourceId)
|
|
formData.append('sourceId',this.$constants.sourceId)
|
|
formData.append('files',file.raw)
|
|
formData.append('files',file.raw)
|
|
-
|
|
|
|
- var notice_file = file.raw
|
|
|
|
|
|
+
|
|
|
|
+ var notice_file = {
|
|
|
|
+ name:file.raw.name
|
|
|
|
+ }
|
|
var message = this.$message({
|
|
var message = this.$message({
|
|
message: '文件上传中...',
|
|
message: '文件上传中...',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
@@ -523,10 +802,10 @@ export default {
|
|
if(response.code == 200){
|
|
if(response.code == 200){
|
|
let guid = response.data[0]
|
|
let guid = response.data[0]
|
|
notice_file.guid = guid
|
|
notice_file.guid = guid
|
|
- this.$set(this,'notice_file',notice_file)
|
|
|
|
|
|
+ // this.$set(this,field,notice_file)
|
|
|
|
+ this.setData(row,field,notice_file)
|
|
message.close()
|
|
message.close()
|
|
this.$message.success('文件上传成功')
|
|
this.$message.success('文件上传成功')
|
|
- this.$refs.upload_file.clearFiles()
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -615,15 +894,63 @@ export default {
|
|
</script>
|
|
</script>
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
.OADefense{
|
|
.OADefense{
|
|
- .upload-demo{
|
|
|
|
- .el-upload{
|
|
|
|
- width: 100% !important;
|
|
|
|
|
|
+ .file_title{
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ i{
|
|
|
|
+ color: red !important;
|
|
}
|
|
}
|
|
-
|
|
|
|
- .el-upload-dragger {
|
|
|
|
- width: 100% !important;
|
|
|
|
|
|
+ }
|
|
|
|
+ .file_show{
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ line-height: 100px;
|
|
|
|
+ .file_name{
|
|
|
|
+ width: calc(100% - 90px);
|
|
|
|
+ }
|
|
|
|
+ .type {
|
|
|
|
+ min-width:75px;
|
|
|
|
+ display: block;
|
|
|
|
+ color: #57a5f7;
|
|
|
|
+ }
|
|
|
|
+ .icon {
|
|
|
|
+ display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .file_show:hover {
|
|
|
|
+ background: #f4f4f4;
|
|
|
|
+ .name {
|
|
|
|
+ color: #57a5f7;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ }
|
|
|
|
+ .type {
|
|
|
|
+ min-width:75px;
|
|
|
|
+ display: none;
|
|
|
|
+ }
|
|
|
|
+ .icon {
|
|
|
|
+ display: block;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .customize_file{
|
|
|
|
+ .upload-demo{
|
|
|
|
+ .el-upload{
|
|
|
|
+ width: 100% !important;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .el-upload-dragger {
|
|
|
|
+ width: 100% !important;
|
|
|
|
+ height:100px !important;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ .el-icon-upload{
|
|
|
|
+ font-size: 40px !important;
|
|
|
|
+ margin: 0 25px !important;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
</style>
|
|
</style>
|
|
@@ -654,6 +981,12 @@ export default {
|
|
font-size: 20px;
|
|
font-size: 20px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .addContrastFile{
|
|
|
|
+ margin-top: 10px;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ width: 100%;
|
|
|
|
+ }
|
|
.run{
|
|
.run{
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|