From c40d55c2aab80cec31d76bb24eaf73939297897d Mon Sep 17 00:00:00 2001 From: chenxf Date: Tue, 6 Jan 2026 20:28:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(force-notice):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=99=84=E4=BB=B6=E9=A2=84=E8=A7=88=E5=8A=9F=E8=83=BD=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E5=AD=97=E6=AE=B5=E5=90=8D=E5=A4=A7=E5=B0=8F=E5=86=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复了 forceNotice 模块中多个页面的 previewFile 方法中字段名大小写不一致的问题, 统一将 attachmentId、bizSeqNo、attachType 等字段名修改为小写形式 attachmentid、 bizseq、attachtype,确保附件预览功能正常工作。 --- src/views/forceNotice/force/handle.vue | 2 +- src/views/forceNotice/inclusion/handle.vue | 2 +- src/views/forceNotice/liccan/handle.vue | 2 +- src/views/forceNotice/recovery/handle.vue | 2 +- src/views/forceNotice/remove/handle.vue | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/forceNotice/force/handle.vue b/src/views/forceNotice/force/handle.vue index ee7b268..45af18c 100644 --- a/src/views/forceNotice/force/handle.vue +++ b/src/views/forceNotice/force/handle.vue @@ -697,7 +697,7 @@ export default { }) }, previewFile(file) { - window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentId || file?.response?.data?.attachmentId}&bizSeqNo=${file.bizSeqNo}&attachType=${file.attachType}`, '_blank') + window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank') }, getUsersWithPermission(isUpper) { const ps = [] diff --git a/src/views/forceNotice/inclusion/handle.vue b/src/views/forceNotice/inclusion/handle.vue index 0a034ac..171d28b 100644 --- a/src/views/forceNotice/inclusion/handle.vue +++ b/src/views/forceNotice/inclusion/handle.vue @@ -671,7 +671,7 @@ export default { }) }, previewFile(file) { - window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentId || file?.response?.data?.attachmentId}&bizSeqNo=${file.bizSeqNo}&attachType=${file.attachType}`, '_blank') + window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank') }, getUsersWithPermission(isUpper) { const ps = [] diff --git a/src/views/forceNotice/liccan/handle.vue b/src/views/forceNotice/liccan/handle.vue index d38bd34..a6cd35c 100644 --- a/src/views/forceNotice/liccan/handle.vue +++ b/src/views/forceNotice/liccan/handle.vue @@ -533,7 +533,7 @@ export default { }) }, previewFile(file) { - window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentId || file?.response?.data?.attachmentId}&bizSeqNo=${file.bizSeqNo}&attachType=${file.attachType}`, '_blank') + window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank') }, getUsersWithPermission(isUpper) { const ps = [] diff --git a/src/views/forceNotice/recovery/handle.vue b/src/views/forceNotice/recovery/handle.vue index 782a1e3..378b093 100644 --- a/src/views/forceNotice/recovery/handle.vue +++ b/src/views/forceNotice/recovery/handle.vue @@ -587,7 +587,7 @@ export default { }) }, previewFile(file) { - window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentId || file?.response?.data?.attachmentId}&bizSeqNo=${file.bizSeqNo}&attachType=${file.attachType}`, '_blank') + window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank') }, getUsersWithPermission(isUpper) { const ps = [] diff --git a/src/views/forceNotice/remove/handle.vue b/src/views/forceNotice/remove/handle.vue index f101700..7a879b7 100644 --- a/src/views/forceNotice/remove/handle.vue +++ b/src/views/forceNotice/remove/handle.vue @@ -581,7 +581,7 @@ export default { }) }, previewFile(file) { - window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentId || file?.response?.data?.attachmentId}&bizSeqNo=${file.bizSeqNo}&attachType=${file.attachType}`, '_blank') + window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank') }, getUsersWithPermission(isUpper) { const ps = []