diff --git a/src/components/360View/collection.vue b/src/components/360View/collection.vue
index 7882aa1..0613807 100644
--- a/src/components/360View/collection.vue
+++ b/src/components/360View/collection.vue
@@ -23,11 +23,11 @@
新增子级节点
- handleNode(command,node,data)">
+
+ handleNode(command,node,data)">
···
- 重命名
- 编辑
+ 重命名
删除
@@ -106,6 +106,7 @@ export default {
}
},
collectData(val) {
+ console.log(val)
if (!val.length) {
this.disabled = false
this.addParam.id = ''
@@ -132,6 +133,7 @@ export default {
// console.log(res.data)
})
},
+ // 查找当前treeId下的患者
findTreePatient() {
this.$http.get('/tree/findPatientTree', { params: {
limit: 10,
@@ -205,7 +207,7 @@ export default {
// this.remark = data.hisManagePatientEntity ? data.hisManagePatientEntity.remark : ''
// this.remarkId = data.hisManagePatientEntity ? data.hisManagePatientEntity.id : ''
},
- // 添加患者
+ // 收藏患者
handleAddPatient() {
const params = {
createDate: this.$moment().format('YYYY-MM-DD HH:mm:ss'),
@@ -214,6 +216,7 @@ export default {
remark: this.remark,
treeId: this.curNode.id
}
+ console.log(this.curNode)
this.$http.post('/tree/addPatientTree', params).then(() => {
this.editMessage = '收藏成功!'
this.$message({
@@ -284,9 +287,17 @@ export default {
},
// 删除树节点
deleteNode(node, data) {
+ // 删除患者
if (data.patientId) {
+ const param = {
+ id: data.id,
+ patientId: data.patientId,
+ platform: this.platform,
+ remark: data.remark,
+ treeId: data.treeId
+ }
this.$confirmFun('你确定要删除吗?').then(() => {
- this.$http.post('/tree/deletePatientTree', { ...data }).then(() => {
+ this.$http.post('/tree/deletePatientTree', param).then(() => {
this.$message({
message: '删除成功!',
type: 'success'
@@ -295,6 +306,7 @@ export default {
})
})
} else {
+ // 删除树节点
const params = {
doctorId: this.doctorId,
flag: '1',