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 },