|
@@ -143,7 +143,7 @@ export default{
|
|
|
var that = this
|
|
|
var compareRecord = this.groupBy(this.dataObj.compareRecord,'patentNo')
|
|
|
var patents = Object.keys(compareRecord)
|
|
|
- patents.forEach(async item => {
|
|
|
+ patents.forEach(async (item,index) => {
|
|
|
//获取专利信息
|
|
|
var compareRecord1 = {
|
|
|
patentNo:item,
|
|
@@ -164,7 +164,9 @@ export default{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- var obj = {}
|
|
|
+ var obj = {
|
|
|
+ index:index+1
|
|
|
+ }
|
|
|
column.forEach(co=>{
|
|
|
var field = co.key
|
|
|
obj[field] = that.$commonJS.getColumnData(compareRecord1,co)
|
|
@@ -174,12 +176,12 @@ export default{
|
|
|
});
|
|
|
this.$set(this.reportData,'compareRecord',data)
|
|
|
}else{
|
|
|
- this.$set(this.reportData,'compareRecord',[{}])
|
|
|
+ this.$set(this.reportData,'compareRecord',[{index:1}])
|
|
|
}
|
|
|
this.hasCopy[key] = true
|
|
|
}
|
|
|
if(this.reportData.compareRecord.length == 0){
|
|
|
- return this.reportData.compareRecord.push({})
|
|
|
+ return this.reportData.compareRecord.push({index:1})
|
|
|
}
|
|
|
return this.reportData.compareRecord
|
|
|
},
|