|  |  | @ -196,7 +196,7 @@ | 
			
		
	
		
			
				
					|  |  |  |       </div> | 
			
		
	
		
			
				
					|  |  |  |     </div> | 
			
		
	
		
			
				
					|  |  |  |     <shrink ref="shrinks" :arrow-type="1" @display="handleDisplay" @changeType="changeType" /> | 
			
		
	
		
			
				
					|  |  |  |     <drawer ref="drawers" :cur-type="dataType" :display.sync="display" :width="drawerWidth" :mask="true"> | 
			
		
	
		
			
				
					|  |  |  |     <drawer ref="drawers" :cur-type="dataType" :display.sync="display" :width="drawerWidth" :mask="true" @display="closeDrawer"> | 
			
		
	
		
			
				
					|  |  |  |       <!--    关键指标--> | 
			
		
	
		
			
				
					|  |  |  |       <key-indicators | 
			
		
	
		
			
				
					|  |  |  |         v-if="dataType === 1" | 
			
		
	
	
		
			
				
					|  |  | @ -289,6 +289,13 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       dataForm: {} | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   watch: { | 
			
		
	
		
			
				
					|  |  |  |     display(val) { | 
			
		
	
		
			
				
					|  |  |  |       if (val) { | 
			
		
	
		
			
				
					|  |  |  |         this.$refs.drawers.$el.style.display = 'inline-block' | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   created() { | 
			
		
	
		
			
				
					|  |  |  |     this.getPatientData() | 
			
		
	
		
			
				
					|  |  |  |     this.getTimeAxisData() | 
			
		
	
	
		
			
				
					|  |  | @ -320,11 +327,9 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       // 监听点击添加数据集,获取数据 | 
			
		
	
		
			
				
					|  |  |  |       eventBus.$off('sendForData') | 
			
		
	
		
			
				
					|  |  |  |       eventBus.$on('sendForData', data => { | 
			
		
	
		
			
				
					|  |  |  |         console.log(data) | 
			
		
	
		
			
				
					|  |  |  |         const arr = this.foreList.concat(data) | 
			
		
	
		
			
				
					|  |  |  |         const id = 'id' | 
			
		
	
		
			
				
					|  |  |  |         this.foreList = arr.reduce((all, next) => all.some((item) => item[id] == next[id]) ? all : [...all, next], []) | 
			
		
	
		
			
				
					|  |  |  |         console.log(this.foreList) | 
			
		
	
		
			
				
					|  |  |  |         this.openDataDrink() | 
			
		
	
		
			
				
					|  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
	
		
			
				
					|  |  | @ -341,6 +346,9 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     closeDrawer(val) { | 
			
		
	
		
			
				
					|  |  |  |       this.display = val | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     changeType(val) { | 
			
		
	
		
			
				
					|  |  |  |       this.dataType = val | 
			
		
	
		
			
				
					|  |  |  |       this.display = true | 
			
		
	
	
		
			
				
					|  |  | 
 |