From caf3e1310bba9e91b9c489f97299d64772f1ace1 Mon Sep 17 00:00:00 2001
From: bianyaqi
Date: Mon, 14 Aug 2023 15:34:52 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=9D=83=E9=99=90=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/index.html | 4 ++--
src/components/360View/collection.vue | 16 ++++++++++------
src/components/360View/medicalRecord/index.vue | 2 +-
.../outPatientRecord/leftFormList.vue | 3 ++-
4 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/public/index.html b/public/index.html
index 24877b8..13c0c29 100644
--- a/public/index.html
+++ b/public/index.html
@@ -39,8 +39,8 @@
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
<% } %>
diff --git a/src/components/360View/collection.vue b/src/components/360View/collection.vue
index df088af..aa09217 100644
--- a/src/components/360View/collection.vue
+++ b/src/components/360View/collection.vue
@@ -253,12 +253,16 @@ export default {
jzNumber: this.jzNumber
}
this.editMessage = '收藏成功!'
- this.$http.post('/tree/addPatientTree', params).then(() => {
- this.$message({
- message: this.editMessage,
- type: 'success'
- })
- this.queryPatientRemarks()
+ this.$http.post('/tree/addPatientTree', params).then(res => {
+ if (res.data.code === 0) {
+ this.$message({
+ message: this.editMessage,
+ type: 'success'
+ })
+ this.queryPatientRemarks()
+ } else {
+ this.$message.error(res.data.msg)
+ }
})
},
// 新增节点
diff --git a/src/components/360View/medicalRecord/index.vue b/src/components/360View/medicalRecord/index.vue
index 3cb0e17..e4f0337 100644
--- a/src/components/360View/medicalRecord/index.vue
+++ b/src/components/360View/medicalRecord/index.vue
@@ -9,7 +9,7 @@
ref="leftFormList"
:patient-id="patientId"
:is-search="isSearch"
- :only-read="onlyRead||!isCreator"
+ :only-read="onlyRead"
:is-platform="isPlatform"
:form-list="formList"
:cur-index="curIndex"
diff --git a/src/components/360View/medicalRecord/outPatientRecord/leftFormList.vue b/src/components/360View/medicalRecord/outPatientRecord/leftFormList.vue
index e053d76..531746d 100644
--- a/src/components/360View/medicalRecord/outPatientRecord/leftFormList.vue
+++ b/src/components/360View/medicalRecord/outPatientRecord/leftFormList.vue
@@ -9,7 +9,7 @@
{{ item.name }}
-
+
@@ -54,6 +54,7 @@ export default {
return {
formType: '治疗',
defaultChecked: true,
+ isCreator: true,
formTypeList: [
{
type: '治疗',