|
|
@ -208,41 +208,35 @@ export default { |
|
|
|
}, |
|
|
|
// 收藏患者 |
|
|
|
handleAddPatient() { |
|
|
|
// 添加患者 |
|
|
|
let params = {} |
|
|
|
if (!this.curNode.patientId) { |
|
|
|
const params = { |
|
|
|
// 添加患者 |
|
|
|
params = { |
|
|
|
createDate: this.$moment().format('YYYY-MM-DD HH:mm:ss'), |
|
|
|
patientId: this.patientId, |
|
|
|
platform: this.platform, |
|
|
|
remark: this.remark, |
|
|
|
treeId: this.curNode.id |
|
|
|
} |
|
|
|
this.$http.post('/tree/addPatientTree', params).then(() => { |
|
|
|
this.editMessage = '收藏成功!' |
|
|
|
this.$message({ |
|
|
|
message: this.editMessage, |
|
|
|
type: 'success' |
|
|
|
}) |
|
|
|
this.findTree() |
|
|
|
}) |
|
|
|
this.editMessage = '收藏成功!' |
|
|
|
} else { |
|
|
|
// 修改患者 |
|
|
|
const params = { |
|
|
|
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() |
|
|
|
}) |
|
|
|
this.editMessage = '修改成功!' |
|
|
|
} |
|
|
|
this.$http.post('/tree/addPatientTree', params).then(() => { |
|
|
|
this.$message({ |
|
|
|
message: this.editMessage, |
|
|
|
type: 'success' |
|
|
|
}) |
|
|
|
this.findTree() |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 新增节点 |
|
|
|
addNode(command, node, data) { |
|
|
|