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){