|
@@ -577,6 +577,7 @@ export default {
|
|
this.$store.commit("SET_PATENT_PARAMS", queryParams);
|
|
this.$store.commit("SET_PATENT_PARAMS", queryParams);
|
|
this.$store.commit("SET_PATENT_RECORDS", records);
|
|
this.$store.commit("SET_PATENT_RECORDS", records);
|
|
this.getImageAndStatus()
|
|
this.getImageAndStatus()
|
|
|
|
+ this.getPatentSimilarMess()
|
|
this.loading = false;
|
|
this.loading = false;
|
|
if(response.data.redisKey && !this.condition.redisKey){
|
|
if(response.data.redisKey && !this.condition.redisKey){
|
|
this.condition.redisKey = response.data.redisKey
|
|
this.condition.redisKey = response.data.redisKey
|
|
@@ -621,6 +622,41 @@ export default {
|
|
})
|
|
})
|
|
|
|
|
|
},
|
|
},
|
|
|
|
+ //获取专利相似度
|
|
|
|
+ getPatentSimilarMess(){
|
|
|
|
+ if(this.tableData.length == 0 || !this.noveltySearch){
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ var params = {
|
|
|
|
+ projectId:this.projectId,
|
|
|
|
+ patentScoreDTOList:[]
|
|
|
|
+ }
|
|
|
|
+ this.tableData.forEach(item=>{
|
|
|
|
+ var obj = {
|
|
|
|
+ patentNo:item.patentNo,
|
|
|
|
+ appNo:item.appNo,
|
|
|
|
+ rowApplicationNo:item.rowApplicationNo,
|
|
|
|
+ publicNo:item.publicNo,
|
|
|
|
+ grantNo:item.grantNo
|
|
|
|
+ }
|
|
|
|
+ params.patentScoreDTOList.push(obj)
|
|
|
|
+ })
|
|
|
|
+ this.$api.getPatentSimilarMess(params).then(response=>{
|
|
|
|
+ if(response.code == 200){
|
|
|
|
+ var data = response.data.patentScoreDTOList
|
|
|
|
+ for(var i = 0;i<this.tableData.length;i++){
|
|
|
|
+ var item = this.tableData[i]
|
|
|
|
+ var index = data.findIndex(j=>{
|
|
|
|
+ return j.patentNo == item.patentNo
|
|
|
|
+ })
|
|
|
|
+ if(index!=-1){
|
|
|
|
+ this.$set(item, 'score', data[index].score.toFixed(4))
|
|
|
|
+ data.splice(index,1)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
handleSelect(data) {
|
|
handleSelect(data) {
|
|
// this.queryParams.selected = data
|
|
// this.queryParams.selected = data
|
|
},
|
|
},
|