zhuliu 1 년 전
부모
커밋
167316e5fd
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      src/views/noveltySearch/components/exportReport/components/mixins.js

+ 8 - 0
src/views/noveltySearch/components/exportReport/components/mixins.js

@@ -93,6 +93,11 @@ export default{
             if(property){
                 return this.reportData[field][property];
             }else{
+                if(field == 'compareLiterature' || field == 'searchRecord'){
+                    if(this.reportData[field].length==0){
+                        this.reportData[field].push({})
+                    }
+                }
                 return this.reportData[field]
             }
             
@@ -155,6 +160,9 @@ export default{
                 }
                 this.hasCopy[key] = true
             }
+            if(this.reportData.compareRecord.length == 0){
+                return this.reportData.compareRecord.push({})
+            }
             return this.reportData.compareRecord
         },
         delCompareRecord(data,index){