From 7cae2d5b26074e128c4b518eeace0fad04ac605f Mon Sep 17 00:00:00 2001 From: bianyaqi Date: Thu, 3 Aug 2023 11:38:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E5=85=89=E6=A1=A3=E6=A1=88=E9=9D=9E?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E4=BA=BA=E4=B8=8D=E8=83=BD=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/360View/opticalFile/index.vue | 35 ++++++++++++++++---- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/src/components/360View/opticalFile/index.vue b/src/components/360View/opticalFile/index.vue index ae62b94..1fc79ce 100644 --- a/src/components/360View/opticalFile/index.vue +++ b/src/components/360View/opticalFile/index.vue @@ -11,7 +11,7 @@ -
+
常用表单 @@ -51,22 +51,41 @@ v-if="name === '双眼视功能检查报告单'" ref="eyesVis" :case-id="id" - :only-read="onlyRead" + :only-read="onlyRead || !isCreator" :is-platform="isPlatform" :patient-id="patientId" @del="deleteForm" /> - + + -
@@ -109,6 +128,7 @@ export default { return { id: '', name: '', + isCreator: true, isPlatform: true, defaultChecked: [], curIndex: 0, @@ -125,6 +145,8 @@ export default { }, methods: { handleForm(index, item) { + const user = JSON.parse(window.sessionStorage.getItem('qg-userData')) + this.isCreator = item.doctorCode === user.employeeId // 点击自身不保存 if (this.curIndex === index) { return @@ -216,8 +238,9 @@ export default { this.curIndex = 0 this.id = this.formList[0].id this.name = this.formList[0].name + const item = this.formList[0] this.isPlatform = this.isSearch === this.formList[0].platform - this.handleForm(this.curIndex, { name: this.name, id: this.id }) + this.handleForm(this.curIndex, item) } else { this.id = '' this.name = ''