|  | @ -1,13 +1,12 @@ | 
		
	
		
			
				|  |  | <template> |  |  | <template> | 
		
	
		
			
				|  |  |   <div class="collection"> |  |  |   <div class="collection"> | 
		
	
		
			
				|  |  |     <div class="collection_title">个人收藏</div> |  |  |     <div class="collection_title">个人收藏</div> | 
		
	
		
			
				|  |  |     <div style="flex: 1"> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |     <div style="flex: 1" class="collect_context"> | 
		
	
		
			
				|  |  |       <el-button v-if="!collectData.length" size="mini" @click="dialogFormVisible = true">新增节点</el-button> |  |  |       <el-button v-if="!collectData.length" size="mini" @click="dialogFormVisible = true">新增节点</el-button> | 
		
	
		
			
				|  |  |       <el-tree |  |  |       <el-tree | 
		
	
		
			
				|  |  |         v-else |  |  |         v-else | 
		
	
		
			
				|  |  |         :data="collectData" |  |  |         :data="collectData" | 
		
	
		
			
				|  |  |         node-key="id" |  |  |         node-key="id" | 
		
	
		
			
				|  |  |         default-expand-all |  |  |  | 
		
	
		
			
				|  |  |         :props="defaultProps" |  |  |         :props="defaultProps" | 
		
	
		
			
				|  |  |         :expand-on-click-node="false" |  |  |         :expand-on-click-node="false" | 
		
	
		
			
				|  |  |       > |  |  |       > | 
		
	
	
		
			
				|  | @ -116,12 +115,32 @@ export default { | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |   async created() { |  |  |   async created() { | 
		
	
		
			
				|  |  |     this.initPatient() |  |  |     this.initPatient() | 
		
	
		
			
				|  |  |  |  |  |     this.findCurPatientRemark() | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |   methods: { |  |  |   methods: { | 
		
	
		
			
				|  |  |     // 初始化获取或者相关信息 |  |  |     // 初始化获取或者相关信息 | 
		
	
		
			
				|  |  |     initPatient() { |  |  |     initPatient() { | 
		
	
		
			
				|  |  |       this.findTree() |  |  |       this.findTree() | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |  |  |  |     // 获取当前患者的备注 | 
		
	
		
			
				|  |  |  |  |  |     findCurPatientRemark() { | 
		
	
		
			
				|  |  |  |  |  |       this.$http.get('tree/findPatientRemark', { | 
		
	
		
			
				|  |  |  |  |  |         patient: this.patientId, | 
		
	
		
			
				|  |  |  |  |  |         platform: this.platform | 
		
	
		
			
				|  |  |  |  |  |       }).then(res => { | 
		
	
		
			
				|  |  |  |  |  |         console.log(res.data) | 
		
	
		
			
				|  |  |  |  |  |       }) | 
		
	
		
			
				|  |  |  |  |  |     }, | 
		
	
		
			
				|  |  |  |  |  |     findTreePatient() { | 
		
	
		
			
				|  |  |  |  |  |       this.$http.get('/tree/findPatientTree', { | 
		
	
		
			
				|  |  |  |  |  |         limit: 10, | 
		
	
		
			
				|  |  |  |  |  |         page: 1, | 
		
	
		
			
				|  |  |  |  |  |         platform: this.platform, | 
		
	
		
			
				|  |  |  |  |  |         treeId: this.curNode.id | 
		
	
		
			
				|  |  |  |  |  |       }).then(res => { | 
		
	
		
			
				|  |  |  |  |  |         console.log(res) | 
		
	
		
			
				|  |  |  |  |  |       }) | 
		
	
		
			
				|  |  |  |  |  |     }, | 
		
	
		
			
				|  |  |     // 获取当前或者最新备注 |  |  |     // 获取当前或者最新备注 | 
		
	
		
			
				|  |  |     async queryPatientRemarks() { |  |  |     async queryPatientRemarks() { | 
		
	
		
			
				|  |  |       const { data } = await this.$http.get('/tree/findTreeIsExistPatient', { |  |  |       const { data } = await this.$http.get('/tree/findTreeIsExistPatient', { | 
		
	
	
		
			
				|  | @ -174,6 +193,7 @@ export default { | 
		
	
		
			
				|  |  |     levelClick(data) { |  |  |     levelClick(data) { | 
		
	
		
			
				|  |  |       this.curNode = data |  |  |       this.curNode = data | 
		
	
		
			
				|  |  |       this.remark = data.remark || '' |  |  |       this.remark = data.remark || '' | 
		
	
		
			
				|  |  |  |  |  |       this.findTreePatient() | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     searchRemark(data) { |  |  |     searchRemark(data) { | 
		
	
		
			
				|  |  |       // this.treeId = data.id |  |  |       // this.treeId = data.id | 
		
	
	
		
			
				|  | @ -329,4 +349,8 @@ export default { | 
		
	
		
			
				|  |  |     height: 164px; |  |  |     height: 164px; | 
		
	
		
			
				|  |  |   } |  |  |   } | 
		
	
		
			
				|  |  | } |  |  | } | 
		
	
		
			
				|  |  |  |  |  | .collect_context{ | 
		
	
		
			
				|  |  |  |  |  |   overflow: hidden; | 
		
	
		
			
				|  |  |  |  |  |   overflow-y: scroll; | 
		
	
		
			
				|  |  |  |  |  | } | 
		
	
		
			
				|  |  | </style> |  |  | </style> | 
		
	
	
		
			
				|  | 
 |