|
@@ -31,7 +31,7 @@
|
|
|
<div class="height_100">
|
|
|
<component ref="patentViewList" :is="viewSelected" :outside="true" :noveltySearch="noveltySearch" :column="columnList" :tableData="tableData" @clickPatentNo="handleClick" :canSort="condition.component != 'patentNoSearch'?true:false"
|
|
|
@select-change="handleSelect" :selected.sync="queryParams.selected" :queryParams="queryParams" :patentNoList.sync="patentNoList" :refresh='true'
|
|
|
- :view-field="patentViewField" @on-sort="handleSort" @addSelect="getChoosePatentNo" @saveRemark="saveRemark"></component>
|
|
|
+ :view-field="patentViewField" @on-sort="handleSort" @addSelect="getChoosePatentNo" :projectId="projectId" :contrastFileList="saveRemarkList" @saveRemark="saveRemark"></component>
|
|
|
</div>
|
|
|
</el-main>
|
|
|
<el-footer class="workspace-content-patent-page foot-total">
|
|
@@ -190,14 +190,28 @@ export default {
|
|
|
async mounted() {
|
|
|
this.columnList = await this.$commonJS.getCustomField('patent',{ projectId: 0, taskId: null })
|
|
|
await this.getList();
|
|
|
+ if(this.noveltySearch){
|
|
|
+ this.queryComparePatent()
|
|
|
+ }
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ //查询对比文件
|
|
|
+ queryComparePatent(){
|
|
|
+ var params = {
|
|
|
+ projectId:this.projectId
|
|
|
+ }
|
|
|
+ this.$api.queryComparePatent(params).then(response=>{
|
|
|
+ if(response.code == 200){
|
|
|
+ this.saveRemarkList = response.data.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
reporting(){
|
|
|
this.$refs.reportTemplateDialog.open(this.projectId)
|
|
|
},
|
|
|
saveRemark(data){
|
|
|
- this.saveRemarkList.push(data)
|
|
|
+ this.saveRemarkList.unshift(data)
|
|
|
},
|
|
|
//保存检索式
|
|
|
saveSearchCondition(){
|