|
|
@ -1,13 +1,12 @@ |
|
|
|
<template> |
|
|
|
<div class="collection"> |
|
|
|
<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-tree |
|
|
|
v-else |
|
|
|
:data="collectData" |
|
|
|
node-key="id" |
|
|
|
default-expand-all |
|
|
|
:props="defaultProps" |
|
|
|
:expand-on-click-node="false" |
|
|
|
> |
|
|
@ -116,12 +115,32 @@ export default { |
|
|
|
}, |
|
|
|
async created() { |
|
|
|
this.initPatient() |
|
|
|
this.findCurPatientRemark() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 初始化获取或者相关信息 |
|
|
|
initPatient() { |
|
|
|
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() { |
|
|
|
const { data } = await this.$http.get('/tree/findTreeIsExistPatient', { |
|
|
@ -174,6 +193,7 @@ export default { |
|
|
|
levelClick(data) { |
|
|
|
this.curNode = data |
|
|
|
this.remark = data.remark || '' |
|
|
|
this.findTreePatient() |
|
|
|
}, |
|
|
|
searchRemark(data) { |
|
|
|
// this.treeId = data.id |
|
|
@ -329,4 +349,8 @@ export default { |
|
|
|
height: 164px; |
|
|
|
} |
|
|
|
} |
|
|
|
.collect_context{ |
|
|
|
overflow: hidden; |
|
|
|
overflow-y: scroll; |
|
|
|
} |
|
|
|
</style> |
|
|
|