From 91c56f0c21a46e8e1d3232a7ef684b03c624ce15 Mon Sep 17 00:00:00 2001 From: bianyaqi Date: Thu, 30 Mar 2023 17:20:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=97=85=E4=BE=8B=E6=94=B6=E9=9B=86=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E9=97=AE=E9=A2=98=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/360View/collection.vue | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) 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 @@ 新增子级节点 - + + ··· - 重命名 - 编辑 + 重命名 删除 @@ -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',