From faaaf8f28f182823c3946732c1699ba0b9560ff9 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 15 Apr 2025 17:39:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=84=E4=BB=B6=E6=95=B0=E9=87=8F=E4=B8=BA0?= =?UTF-8?q?=E6=97=B6=E4=B8=8D=E6=89=93=E5=BC=80=E9=A2=84=E8=A7=88=E5=BC=B9?= =?UTF-8?q?=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/SignatureTemplate/attachmentPreview.vue | 2 +- .../trials-panel/attachments/attachment-management/index.vue | 1 + .../trials/trials-panel/attachments/self-attachment/index.vue | 1 + src/views/trials/trials-workbench/components/needSignSysDoc.vue | 1 + .../trials/trials-workbench/components/needSignedSysDoc.vue | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview.vue b/src/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview.vue index 1857675e..3f030790 100644 --- a/src/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview.vue +++ b/src/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview.vue @@ -141,7 +141,7 @@ export default { this.loading = false if (res.IsSuccess) { this.list = res.Result.CurrentPageData - this.rowData = this.list[0] + this.rowData = this.list[0] || {} } } catch (err) { this.loading = false diff --git a/src/views/trials/trials-panel/attachments/attachment-management/index.vue b/src/views/trials/trials-panel/attachments/attachment-management/index.vue index f837f48f..f20878a2 100644 --- a/src/views/trials/trials-panel/attachments/attachment-management/index.vue +++ b/src/views/trials/trials-panel/attachments/attachment-management/index.vue @@ -300,6 +300,7 @@ export default { }, methods: { openAttachment(row) { + if (!row.AttachmentCount) return false this.SystemDocumentId = row.Id this.perview_visible = true }, diff --git a/src/views/trials/trials-panel/attachments/self-attachment/index.vue b/src/views/trials/trials-panel/attachments/self-attachment/index.vue index 46b40941..63f4cbd9 100644 --- a/src/views/trials/trials-panel/attachments/self-attachment/index.vue +++ b/src/views/trials/trials-panel/attachments/self-attachment/index.vue @@ -194,6 +194,7 @@ export default { }, methods: { openAttachment(row) { + if (!row.AttachmentCount) return false this.SystemDocumentId = row.Id this.perview_visible = true }, diff --git a/src/views/trials/trials-workbench/components/needSignSysDoc.vue b/src/views/trials/trials-workbench/components/needSignSysDoc.vue index 04e0dcdc..f2da2642 100644 --- a/src/views/trials/trials-workbench/components/needSignSysDoc.vue +++ b/src/views/trials/trials-workbench/components/needSignSysDoc.vue @@ -159,6 +159,7 @@ export default { }, methods: { openAttachment(row) { + if (!row.AttachmentCount) return false this.SystemDocumentId = row.Id this.perview_visible = true }, diff --git a/src/views/trials/trials-workbench/components/needSignedSysDoc.vue b/src/views/trials/trials-workbench/components/needSignedSysDoc.vue index a3554d70..a96db294 100644 --- a/src/views/trials/trials-workbench/components/needSignedSysDoc.vue +++ b/src/views/trials/trials-workbench/components/needSignedSysDoc.vue @@ -139,6 +139,7 @@ export default { }, methods: { openAttachment(row) { + if (!row.AttachmentCount) return false this.SystemDocumentId = row.Id this.perview_visible = true },