|  | @ -106,7 +106,6 @@ export default { | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     collectData(val) { |  |  |     collectData(val) { | 
		
	
		
			
				|  |  |       console.log(val) |  |  |  | 
		
	
		
			
				|  |  |       if (!val.length) { |  |  |       if (!val.length) { | 
		
	
		
			
				|  |  |         this.disabled = false |  |  |         this.disabled = false | 
		
	
		
			
				|  |  |         this.addParam.id = '' |  |  |         this.addParam.id = '' | 
		
	
	
		
			
				|  | @ -209,6 +208,8 @@ export default { | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 收藏患者 |  |  |     // 收藏患者 | 
		
	
		
			
				|  |  |     handleAddPatient() { |  |  |     handleAddPatient() { | 
		
	
		
			
				|  |  |  |  |  |       // 添加患者 | 
		
	
		
			
				|  |  |  |  |  |       if (!this.curNode.patientId) { | 
		
	
		
			
				|  |  |         const params = { |  |  |         const params = { | 
		
	
		
			
				|  |  |           createDate: this.$moment().format('YYYY-MM-DD HH:mm:ss'), |  |  |           createDate: this.$moment().format('YYYY-MM-DD HH:mm:ss'), | 
		
	
		
			
				|  |  |           patientId: this.patientId, |  |  |           patientId: this.patientId, | 
		
	
	
		
			
				|  | @ -216,7 +217,6 @@ export default { | 
		
	
		
			
				|  |  |           remark: this.remark, |  |  |           remark: this.remark, | 
		
	
		
			
				|  |  |           treeId: this.curNode.id |  |  |           treeId: this.curNode.id | 
		
	
		
			
				|  |  |         } |  |  |         } | 
		
	
		
			
				|  |  |       console.log(this.curNode) |  |  |  | 
		
	
		
			
				|  |  |         this.$http.post('/tree/addPatientTree', params).then(() => { |  |  |         this.$http.post('/tree/addPatientTree', params).then(() => { | 
		
	
		
			
				|  |  |           this.editMessage = '收藏成功!' |  |  |           this.editMessage = '收藏成功!' | 
		
	
		
			
				|  |  |           this.$message({ |  |  |           this.$message({ | 
		
	
	
		
			
				|  | @ -225,6 +225,24 @@ export default { | 
		
	
		
			
				|  |  |           }) |  |  |           }) | 
		
	
		
			
				|  |  |           this.findTree() |  |  |           this.findTree() | 
		
	
		
			
				|  |  |         }) |  |  |         }) | 
		
	
		
			
				|  |  |  |  |  |       } else { | 
		
	
		
			
				|  |  |  |  |  |         // 修改患者 | 
		
	
		
			
				|  |  |  |  |  |         const params = { | 
		
	
		
			
				|  |  |  |  |  |           patientId: this.curNode.patientId, | 
		
	
		
			
				|  |  |  |  |  |           platform: this.platform, | 
		
	
		
			
				|  |  |  |  |  |           remark: this.remark, | 
		
	
		
			
				|  |  |  |  |  |           treeId: this.curNode.treeId, | 
		
	
		
			
				|  |  |  |  |  |           id: this.curNode.id | 
		
	
		
			
				|  |  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  |  |         this.$http.post('/tree/addPatientTree', params).then(() => { | 
		
	
		
			
				|  |  |  |  |  |           this.editMessage = '修改成功!' | 
		
	
		
			
				|  |  |  |  |  |           this.$message({ | 
		
	
		
			
				|  |  |  |  |  |             message: this.editMessage, | 
		
	
		
			
				|  |  |  |  |  |             type: 'success' | 
		
	
		
			
				|  |  |  |  |  |           }) | 
		
	
		
			
				|  |  |  |  |  |           this.findTree() | 
		
	
		
			
				|  |  |  |  |  |         }) | 
		
	
		
			
				|  |  |  |  |  |       } | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 新增节点 |  |  |     // 新增节点 | 
		
	
		
			
				|  |  |     addNode(command, node, data) { |  |  |     addNode(command, node, data) { | 
		
	
	
		
			
				|  | 
 |